Using agentic AI with DynamoDB
Amazon DynamoDB is a serverless, fully managed, distributed NoSQL database with single-digit millisecond performance at any scale. DynamoDB is optimized for high-throughput workloads and you can extend its capabilities by integrating with generative AI models. Using generative AI models, you can work with data stored in DynamoDB tables in real-time and build applications that are contextually aware and highly personalized. You can also enhance the end user experience by fully leveraging your business, user, and application data to customize your generative AI solutions.
For more information about gen AI and the solutions AWS provides to build gen AI
applications, see Transform your business
with generative AI
DynamoDB also provides native vector search through
vector indexes, so you can store vector embeddings alongside your operational data and run
similarity searches with the SearchVectors API, without a separate vector
database. For more information, see Using vector indexes in DynamoDB.
Topics
Generative AI use cases for DynamoDB
DynamoDB is widely used in AI powered conversational applications, such as chatbots and
call centers built with a Foundation Model (FM)
-
Storage of application data, such as chat message history, through integrations with LangChain
, LlamaIndex , or a custom code. This context enhances the user experience by allowing the model to converse back and forth with the user. For more DynamoDB integrations with agentic AI frameworks, see AI framework connectors for DynamoDB. -
Creation of a customized user experience by leveraging business data, such as inventory, pricing, and documentation.
-
Application of user data, such as web history, past orders, and user preferences, to provide personalized answers.
For instance, an insurance company can build a chatbot using DynamoDB to provide their Retrieval-Augmented Generation (RAG) based gen AI model access to near real-time data. Examples of such data are real-time mortgage rates, product pricing, compliant/standard contract copy, user web history, and user preferences. Combining DynamoDB with RAG adds in-depth and updated information about insurance products and the user data. This enriches the prompts and answers to provide end users with an accurate, personalized, and near real-time experience.
Similarly, financial services industry customers use DynamoDB, Amazon Bedrock
knowledge bases, and Amazon Bedrock
agents
Vector search for RAG and agent memory
Generative AI applications retrieve context by meaning: a RAG application finds the
documents most relevant to a prompt, and an AI agent recalls memories similar to the
current conversation. Vector indexes bring this capability natively to DynamoDB. You store
vector embeddings as attributes on your table items, and the SearchVectors
API returns the items most similar to a query vector, ranked by similarity score. The
data an application writes is the data it searches, so there is no separate vector
database to provision and no replication pipeline to manage.
You can also define a partition key in a vector index's search schema. Each similarity search is then scoped to a single partition key value, such as a tenant ID, user ID, or agent session ID. This makes vector indexes a natural fit for multi-tenant RAG and per-user agent memory.
To get started with vector indexes, see the following topics:
Generative AI blogs for DynamoDB
The following articles offer detailed use cases, best practices, and step-by-step guides to help you leverage DynamoDB's capabilities in building advanced AI-powered applications.