Class: ChromaVectorStore
Implements
Constructors
constructor
• new ChromaVectorStore(init
): ChromaVectorStore
Parameters
Name | Type |
---|---|
init | Object |
init.chromaClientParams? | ChromaClientParams |
init.collectionName | string |
init.textKey? | string |
Returns
Defined in
packages/core/src/storage/vectorStore/ChromaVectorStore.ts:39
Properties
chromaClient
• Private
chromaClient: ChromaClient
Defined in
packages/core/src/storage/vectorStore/ChromaVectorStore.ts:35
collection
• Private
collection: null
| Collection
= null
Defined in
packages/core/src/storage/vectorStore/ChromaVectorStore.ts:36
collectionName
• Private
collectionName: string
Defined in
packages/core/src/storage/vectorStore/ChromaVectorStore.ts:37
flatMetadata
• flatMetadata: boolean
= true
Defined in
packages/core/src/storage/vectorStore/ChromaVectorStore.ts:33
storesText
• storesText: boolean
= true
Implementation of
Defined in
packages/core/src/storage/vectorStore/ChromaVectorStore.ts:32
textKey
• textKey: string
Defined in
packages/core/src/storage/vectorStore/ChromaVectorStore.ts:34
Methods
add
▸ add(nodes
): Promise
<string
[]>
Parameters
Name | Type |
---|---|
nodes | BaseNode <Metadata >[] |
Returns
Promise
<string
[]>
Implementation of
Defined in
packages/core/src/storage/vectorStore/ChromaVectorStore.ts:75
client
▸ client(): ChromaClient
Returns
ChromaClient
Implementation of
Defined in
packages/core/src/storage/vectorStore/ChromaVectorStore.ts:49
delete
▸ delete(refDocId
, deleteOptions?
): Promise
<void
>
Parameters
Name | Type |
---|---|
refDocId | string |
deleteOptions? | ChromaDeleteOptions |
Returns
Promise
<void
>
Implementation of
Defined in
packages/core/src/storage/vectorStore/ChromaVectorStore.ts:86
getCollection
▸ getCollection(): Promise
<Collection
>
Returns
Promise
<Collection
>
Defined in
packages/core/src/storage/vectorStore/ChromaVectorStore.ts:53
getDataToInsert
▸ getDataToInsert(nodes
): AddParams
Parameters
Name | Type |
---|---|
nodes | BaseNode <Metadata >[] |
Returns
AddParams
Defined in
packages/core/src/storage/vectorStore/ChromaVectorStore.ts:63
query
▸ query(query
, options?
): Promise
<VectorStoreQueryResult
>
Parameters
Name | Type |
---|---|
query | VectorStoreQuery |
options? | ChromaQueryOptions |
Returns
Promise
<VectorStoreQueryResult
>