CompatibilityOnly available on Node.js.
Setup
- Create an Astra DB account.
- Create a vector enabled database.
- Grab your
API Endpoint
andToken
from the Database Details. - Set up the following env vars:
ASTRA_DB_COLLECTION
is the desired name of your collection
- Install the Astra TS Client & the LangChain community package
npm
Indexing docs
Vector Types
Astra DB supportscosine
(the default), dot_product
, and euclidean
similarity search; this is defined when the
vector store is first created as part of the CreateCollectionOptions
:
Related
- Vector store conceptual guide
- Vector store how-to guides