Class: AstraDBVectorStore
Implements
Constructors
constructor
• new AstraDBVectorStore(init?
): AstraDBVectorStore
Parameters
Name | Type |
---|---|
init? | Partial <AstraDBVectorStore > & { params? : { endpoint : string ; namespace? : string ; token : string } } |
Returns
Defined in
packages/core/src/storage/vectorStore/AstraDBVectorStore.ts:23
Properties
astraClient
• Private
astraClient: DataAPIClient
Defined in
packages/core/src/storage/vectorStore/AstraDBVectorStore.ts:19
astraDB
• Private
astraDB: Db
Defined in
packages/core/src/storage/vectorStore/AstraDBVectorStore.ts:20
collection
• Private
collection: undefined
| Collection
<SomeDoc
>
Defined in
packages/core/src/storage/vectorStore/AstraDBVectorStore.ts:21
contentKey
• contentKey: string
Defined in
packages/core/src/storage/vectorStore/AstraDBVectorStore.ts:17
flatMetadata
• flatMetadata: boolean
= true
Defined in
packages/core/src/storage/vectorStore/AstraDBVectorStore.ts:14
idKey
• idKey: string
Defined in
packages/core/src/storage/vectorStore/AstraDBVectorStore.ts:16
storesText
• storesText: boolean
= true
Implementation of
Defined in
packages/core/src/storage/vectorStore/AstraDBVectorStore.ts:13
Methods
add
▸ add(nodes
): Promise
<string
[]>
Add your document(s) to your Astra DB collection.
Parameters
Name | Type |
---|---|
nodes | BaseNode <Metadata >[] |
Returns
Promise
<string
[]>
and array of node ids which were added
Implementation of
Defined in
packages/core/src/storage/vectorStore/AstraDBVectorStore.ts:101
client
▸ client(): DataAPIClient
Get an instance of your Astra DB client.
Returns
DataAPIClient
the AstraDB client