prorm API Reference
    Preparing search index...

    Class ChromaStore

    ChromaStore wraps a chromadb ChromaClient and exposes Chroma's collection management plus the embedding data-plane operations (add/query/get/delete) as a typed, promise-based API.

    Implements

    Index
    name: "chroma" = 'chroma'

    The name of the store (e.g. 'mongodb', 'redis', 'dynamodb')

    library: "chromadb" = 'chromadb'

    The client library being used

    • Create a new collection. Fails if a collection with name already exists.

      Parameters

      • name: string
      • options: CollectionOptions = {}

      Returns Promise<ChromaCollectionLike>

    • Get an existing collection, creating it if it doesn't exist. Idempotent.

      Parameters

      • name: string
      • options: CollectionOptions = {}

      Returns Promise<ChromaCollectionLike>

    • Delete a collection and all of its embeddings.

      Parameters

      • name: string

      Returns Promise<unknown>

    • Add embeddings to a collection. ids/embeddings (and optional metadatas/documents) are index-aligned parallel arrays - the i-th id/embedding/metadata/document all describe the same record.

      Parameters

      • collection: string
      • params: AddEmbeddingsParams

      Returns Promise<unknown>

    • Find, for each query embedding, the nResults closest records in a collection (optionally narrowed by a metadata where filter). Returns the driver's raw response ({ ids, distances, metadatas, documents, ... }, each an array-per-query-embedding).

      Parameters

      • collection: string
      • params: QueryEmbeddingsParams

      Returns Promise<unknown>

    • Fetch records by id (and/or a metadata where filter) from a collection.

      Parameters

      • collection: string
      • params: GetEmbeddingsParams

      Returns Promise<unknown>

    • Delete records from a collection by id (and/or a metadata where filter).

      Parameters

      • collection: string
      • params: DeleteEmbeddingsParams

      Returns Promise<unknown>