Technology•March 26, 2024
Microsoft and DataStax Simplify Building AI Agents with Legacy Apps and Data
Announcing a new integration that enables Astra DB to function as a vector store within Microsoft’s Semantic Kernel app orchestration framework.
# import Astra DB connector import semantic_kernel as sk from semantic_kernel.connectors.memory.astradb import AstraDBMemoryStore # create Astra memory store store = AstraDBMemoryStore(ASTRA_DB_TOKEN, ASTRA_DB_ID, ASTRA_REGION, KEYSPACE, EMBEDDING_DIMENSION, SIMILARITY) #register Astra memory in Semantic Kernel Memory memory = SemanticTextMemory(storage=store, embeddings_generator=kernel.get_service("text_embedding"))