CollectionConfig

org.llm4s.rag.permissions.CollectionConfig
See theCollectionConfig companion object
final case class CollectionConfig(path: CollectionPath, queryableBy: Set[PrincipalId], isLeaf: Boolean, metadata: Map[String, String])

Configuration for creating a new collection.

Value parameters

isLeaf

True if this is a leaf collection (can contain documents)

metadata

Optional key-value metadata for the collection

path

The collection path to create

queryableBy

Set of principal IDs that can query this collection (empty = public)

Attributes

Companion
object
Source
Collection.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Mark this collection as a leaf (can contain documents)

Mark this collection as a leaf (can contain documents)

Attributes

Source
Collection.scala

Mark this collection as non-leaf (can only contain sub-collections)

Mark this collection as non-leaf (can only contain sub-collections)

Attributes

Source
Collection.scala

True if this collection is public (queryable by anyone)

True if this collection is public (queryable by anyone)

Attributes

Source
Collection.scala

The parent path, derived from the collection path

The parent path, derived from the collection path

Attributes

Source
Collection.scala

Add metadata to this collection

Add metadata to this collection

Attributes

Source
Collection.scala

Add multiple metadata entries

Add multiple metadata entries

Attributes

Source
Collection.scala

Add a principal to the queryableBy set

Add a principal to the queryableBy set

Attributes

Source
Collection.scala

Add multiple principals to the queryableBy set

Add multiple principals to the queryableBy set

Attributes

Source
Collection.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product