org.llm4s.rag.permissions.pg
Members list
Type members
Classlikes
Statistics from a schema migration.
Statistics from a schema migration.
Value parameters
- defaultCollectionId
-
ID of the default collection
- indexesCreated
-
Number of indexes created
- tablesCreated
-
Number of tables created
- vectorsMigrated
-
Number of vectors migrated to the default collection
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
PostgreSQL implementation of CollectionStore.
PostgreSQL implementation of CollectionStore.
Manages the collection hierarchy with permission inheritance.
Value parameters
- getConnection
-
Function to obtain a database connection
- vectorTableName
-
Name of the vectors table (for document/chunk counts)
Attributes
- Supertypes
PostgreSQL implementation of PrincipalStore.
PostgreSQL implementation of PrincipalStore.
Uses the llm4s_principals table to map external identifiers to internal integer IDs:
- User IDs are positive (from SERIAL auto-increment)
- Group IDs are negative (from llm4s_group_id_seq sequence)
Value parameters
- getConnection
-
Function to obtain a database connection
Attributes
- Supertypes
Manages the PostgreSQL schema for permission-based RAG.
Manages the PostgreSQL schema for permission-based RAG.
Creates and maintains the database tables required for:
- Principal ID mapping (users and groups to integers)
- Collection hierarchy with permissions
- Extended vectors table with collection_id and readable_by
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PgSchemaManager.type
PostgreSQL implementation of SearchIndex with permission-based filtering.
PostgreSQL implementation of SearchIndex with permission-based filtering.
Uses HikariCP for connection pooling and pgvector for efficient vector similarity search.
The implementation:
- Extends the vectors table with collection_id and readable_by columns
- Uses GIN indexes for efficient array containment queries
- Applies two-level permission filtering (collection + document)
Value parameters
- dataSource
-
HikariCP data source for connection pooling
- vectorTableName
-
Name of the vectors table
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PgSearchIndex.type