Class: AstraDBVectorStore
Extends
Constructors
new AstraDBVectorStore()
new AstraDBVectorStore(
init
?):AstraDBVectorStore
Parameters
• init?: Partial
<AstraDBVectorStore
> & object
& VectorStoreBaseParams
Returns
Overrides
Defined in
packages/llamaindex/src/vector-store/AstraDBVectorStore.ts:39
Properties
contentKey
contentKey:
string
Defined in
packages/llamaindex/src/vector-store/AstraDBVectorStore.ts:33
embedModel
embedModel:
BaseEmbedding
Inherited from
Defined in
packages/llamaindex/src/vector-store/types.ts:89
flatMetadata
flatMetadata:
boolean
=true
Defined in
packages/llamaindex/src/vector-store/AstraDBVectorStore.ts:30
idKey
idKey:
string
Defined in
packages/llamaindex/src/vector-store/AstraDBVectorStore.ts:32
isEmbeddingQuery?
optional
isEmbeddingQuery:boolean
Inherited from
BaseVectorStore
.isEmbeddingQuery
Defined in
packages/llamaindex/src/vector-store/types.ts:91
storesText
storesText:
boolean
=true
Overrides
Defined in
packages/llamaindex/src/vector-store/AstraDBVectorStore.ts:29
Methods
add()
add(
nodes
):Promise
<string
[]>
Add your document(s) to your Astra DB collection.
Parameters
Returns
Promise
<string
[]>
an array of node ids which were added
Overrides
Defined in
packages/llamaindex/src/vector-store/AstraDBVectorStore.ts:118
client()
client():
DataAPIClient
Get an instance of your Astra DB client.
Returns
DataAPIClient
the AstraDB client
Overrides
Defined in
packages/llamaindex/src/vector-store/AstraDBVectorStore.ts:109
connect()
connect(
collection
):Promise
<void
>
Connect to an existing collection in your Astra DB vector database.
You must call this method or createAndConnect
before adding, deleting, or querying.
Parameters
• collection: string
Your existing collection's name
Returns
Promise
<void
>
Promise that resolves if the connection did not throw an error.