Pular para o conteúdo principal

Class: ChromaVectorStore

Extends

Implements

Constructors

new ChromaVectorStore()

new ChromaVectorStore(init): ChromaVectorStore

Parameters

init: object & Partial <IEmbedModel>

Returns

ChromaVectorStore

Overrides

VectorStoreBase . constructor

Source

packages/llamaindex/src/storage/vectorStore/ChromaVectorStore.ts:44

Properties

chromaClient

private chromaClient: ChromaClient

Source

packages/llamaindex/src/storage/vectorStore/ChromaVectorStore.ts:40


collection

private collection: null | Collection = null

Source

packages/llamaindex/src/storage/vectorStore/ChromaVectorStore.ts:41


collectionName

private collectionName: string

Source

packages/llamaindex/src/storage/vectorStore/ChromaVectorStore.ts:42


embedModel

embedModel: BaseEmbedding

Inherited from

VectorStoreBase . embedModel

Source

packages/llamaindex/src/storage/vectorStore/types.ts:86


flatMetadata

flatMetadata: boolean = true

Source

packages/llamaindex/src/storage/vectorStore/ChromaVectorStore.ts:38


storesText

storesText: boolean = true

Implementation of

VectorStoreNoEmbedModel . storesText

Source

packages/llamaindex/src/storage/vectorStore/ChromaVectorStore.ts:37


textKey

textKey: string

Source

packages/llamaindex/src/storage/vectorStore/ChromaVectorStore.ts:39

Methods

add()

add(nodes): Promise<string[]>

Parameters

nodes: BaseNode <Metadata>[]

Returns

Promise<string[]>

Implementation of

VectorStoreNoEmbedModel . add

Source

packages/llamaindex/src/storage/vectorStore/ChromaVectorStore.ts:83


client()

client(): ChromaClient

Returns

ChromaClient

Implementation of

VectorStoreNoEmbedModel . client

Source

packages/llamaindex/src/storage/vectorStore/ChromaVectorStore.ts:57


delete()

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

Parameters

refDocId: string

deleteOptions?: ChromaDeleteOptions

Returns

Promise<void>

Implementation of

VectorStoreNoEmbedModel . delete

Source

packages/llamaindex/src/storage/vectorStore/ChromaVectorStore.ts:94


getCollection()

getCollection(): Promise<Collection>

Returns

Promise<Collection>

Source

packages/llamaindex/src/storage/vectorStore/ChromaVectorStore.ts:61


getDataToInsert()

private getDataToInsert(nodes): AddParams

Parameters

nodes: BaseNode <Metadata>[]

Returns

AddParams

Source

packages/llamaindex/src/storage/vectorStore/ChromaVectorStore.ts:71


query()

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

Parameters

query: VectorStoreQuery

options?: ChromaQueryOptions

Returns

Promise <VectorStoreQueryResult>

Implementation of

VectorStoreNoEmbedModel . query

Source

packages/llamaindex/src/storage/vectorStore/ChromaVectorStore.ts:106