Collection
org.llm4s.rag.permissions.Collection
final case class Collection(id: Int, path: CollectionPath, parentPath: Option[CollectionPath], queryableBy: Set[PrincipalId], isLeaf: Boolean, metadata: Map[String, String])
A collection in the search index hierarchy.
Collections organize documents and define access permissions. They form a tree structure where:
- Parent collections can have their own queryable_by permissions
- Sub-collections inherit parent permissions and can add further restrictions
- Documents can only be added to leaf collections
Value parameters
- id
-
Database primary key
- isLeaf
-
True if this is a leaf collection (can contain documents)
- metadata
-
Optional key-value metadata for the collection
- parentPath
-
The parent collection path, if not a root collection
- path
-
The unique collection path (e.g., "confluence/EN")
- queryableBy
-
Set of principal IDs that can query this collection (empty = public)
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article