Skip to main content

Class: ChromaVectorStore

Extends

Constructors

new ChromaVectorStore()

new ChromaVectorStore(init): ChromaVectorStore

Parameters

init: object & VectorStoreBaseParams

Returns

ChromaVectorStore

Overrides

BaseVectorStore.constructor

Defined in

packages/llamaindex/src/vector-store/ChromaVectorStore.ts:56

Properties

embedModel

embedModel: BaseEmbedding

Inherited from

BaseVectorStore.embedModel

Defined in

packages/llamaindex/src/vector-store/types.ts:89


flatMetadata

flatMetadata: boolean = true

Defined in

packages/llamaindex/src/vector-store/ChromaVectorStore.ts:50


isEmbeddingQuery?

optional isEmbeddingQuery: boolean

Inherited from

BaseVectorStore.isEmbeddingQuery

Defined in

packages/llamaindex/src/vector-store/types.ts:91


storesText

storesText: boolean = true

Overrides

BaseVectorStore.storesText

Defined in

packages/llamaindex/src/vector-store/ChromaVectorStore.ts:49


textKey

textKey: string

Defined in

packages/llamaindex/src/vector-store/ChromaVectorStore.ts:51

Methods

add()

add(nodes): Promise<string[]>

Parameters

nodes: BaseNode<Metadata>[]

Returns

Promise<string[]>

Overrides

BaseVectorStore.add

Defined in

packages/llamaindex/src/vector-store/ChromaVectorStore.ts:95


client()

client(): ChromaClient

Returns

ChromaClient

Overrides

BaseVectorStore.client

Defined in

packages/llamaindex/src/vector-store/ChromaVectorStore.ts:69


delete()

delete(refDocId, deleteOptions?): Promise<void>

Parameters

refDocId: string

deleteOptions?: ChromaDeleteOptions

Returns

Promise<void>

Overrides

BaseVectorStore.delete

Defined in

packages/llamaindex/src/vector-store/ChromaVectorStore.ts:106


getCollection()

getCollection(): Promise<Collection>

Returns

Promise<Collection>

Defined in

packages/llamaindex/src/vector-store/ChromaVectorStore.ts:73


query()

query(query, options?): Promise<VectorStoreQueryResult>

Parameters

query: VectorStoreQuery

options?: ChromaQueryOptions

Returns

Promise<VectorStoreQueryResult>

Overrides

BaseVectorStore.query

Defined in

packages/llamaindex/src/vector-store/ChromaVectorStore.ts:191