TechnologyNovember 14, 2023

Preview the New Astra DB Experience: New UX, API, Clients, and Integrations for Building GenAI Apps Faster

Preethi Srinivasan
Preethi SrinivasanVice president, product management
Preview the New Astra DB Experience: New UX, API, Clients, and Integrations for Building GenAI Apps Faster
pip install astrapy
import os

from astrapy.db import AstraDB

ASTRA_DB_APPLICATION_TOKEN = os.environ.get("ASTRA_DB_APPLICATION_TOKEN")
ASTRA_DB_API_ENDPOINT= os.environ.get("ASTRA_DB_API_ENDPOINT")

# Initialization
db = AstraDB(
  token=ASTRA_DB_APPLICATION_TOKEN,
  api_endpoint=ASTRA_DB_API_ENDPOINT)

# Create collection
test_collection = db.create_collection(collection_name="vector_test", dimension=768)
from langchain.vectorstores import AstraDB
results = vstore.similarity_search("Our life is what we make of it", k=3)
Discover more
Vector Search
Share

One-stop Data API for Production GenAI

Astra DB gives JavaScript developers a complete data API and out-of-the-box integrations that make it easier to build production RAG apps with high relevancy and low latency.