What if your application could manage operational data and understand the meaning behind it using a single database?

Imagine building an intelligent customer support platform.

Customers submit support tickets, report payment failures, ask technical questions, and request assistance.

Your application stores all this information in Amazon DynamoDB. It works perfectly for retrieving customer profiles, updating ticket statuses, and managing support records.

But then a customer asks:

I'm experiencing the same payment problem I had last month. Can you find the previous solution?

The previous ticket exists in your database, but the customer is using different words from the original report.

A traditional database query does not automatically understand that two differently worded sentences can describe the same problem.

You need semantic search.

Traditionally, developers solved this by maintaining two separate databases: one for operational records and another for vector embeddings.

That introduced synchronization pipelines, additional infrastructure, and more operational complexity.

Amazon DynamoDB native vector search changes this architecture.

By combining DynamoDB with Amazon Bedrock, developers can store operational records and vector embeddings together, then perform semantic retrieval without automatically requiring a separate vector database.

Let's explore how to build this architecture.

1. Understanding the Unified Architecture

The architecture combines three important AWS services.

Amazon DynamoDB: Operational and Vector Storage

Amazon DynamoDB is a fully managed NoSQL database designed for scalable, low-latency application workloads.

It supports operational operations such as customer lookups, order management, support ticket updates, and application state management.

With native vector search, DynamoDB can also store embeddings as item attributes and search them using vector indexes.

This allows one database to support both traditional application access patterns and semantic similarity search.

Amazon Bedrock: Embedding Generation and AI

Amazon Bedrock provides access to foundation models through managed APIs.

For this architecture, Amazon Titan Text Embeddings V2 can convert text into numerical vectors.

These embeddings represent semantic relationships between text.

Amazon Bedrock can also provide the foundation model used to generate natural-language responses from retrieved information.

AWS Lambda: Application Integration

AWS Lambda connects the application, DynamoDB, and Bedrock.

It can generate embeddings, perform vector searches, retrieve operational records, and provide tools to AI agents.

DynamoDB Streams can also trigger an embedding-generation workflow when records are created or updated.

2. Traditional Architecture vs. Unified Architecture

In a traditional implementation, operational records and embeddings are stored separately.

 Application | v AWS Lambda | +--------+--------+ | | v v Amazon DynamoDB Embedding Model Operational Data | v Vector Database | v Semantic Search | v Retrieve Context | v Amazon Bedrock | v AI Response 

The application must synchronize records between the operational database and vector database.

Now consider the unified architecture.

 Application | v AWS Lambda | +--------+--------+ | | v v Operational Semantic Operations Search | | +--------+--------+ | v Amazon DynamoDB +------------------------+ | Operational Records | | Customer Information | | Support Tickets | | Metadata | | Vector Embeddings | | Native Vector Index | +------------------------+ | v Retrieved Context | v Amazon Bedrock | v AI Response 

DynamoDB now serves as both the operational data store and the vector retrieval layer.

AWS announced general availability of native DynamoDB vector search on August 5, 2026.

The capability supports approximate nearest neighbor (ANN) search and is designed for large-scale workloads.

AWS reports single-digit millisecond latency and 99%+ recall for its native vector search capability. Actual performance depends on workload characteristics and configuration.

3. Designing the DynamoDB Data Model

Let's build a practical example using a customer support application.

A support ticket contains its title, description, category, status, customer reference, and resolution.

The same item can also contain its vector embedding.

Example DynamoDB item:

{ "ticket_id": "TICKET-1001", "customer_id": "CUSTOMER-501", "category": "payments", "title": "Payment transaction failed", "content": "Customer experienced a payment failure during checkout.", "status": "resolved", "resolution": "Payment gateway configuration was corrected.", "embedding": [0.021, -0.014, 0.087, 0.032], "created_at": "2026-11-30T08:00:00Z", "updated_at": "2026-11-30T08:30:00Z" } 

The vector values are illustrative, not actual model-generated output.

The item contains both business attributes and semantic information.

The application can retrieve a ticket using its primary key, update its status, or access its customer reference using standard DynamoDB operations.

At the same time, the embedding can be indexed for similarity search.

Understanding the Vector Index

A DynamoDB vector index defines the vector attribute, dimensions, distance function, search schema, and projected attributes.

For example:

Vector Attribute: embedding Dimensions: 1024 Distance Function: COSINE Projection: INCLUDE 

The embedding dimensions must match the output of the selected embedding model.

DynamoDB supports vector dimensions up to 4,096.

Vector indexes also support search-schema attributes that can scope searches, such as a tenant identifier or category.

This is especially useful for multi-tenant applications and systems that need to retrieve information within a particular business context.

4. Generating Embeddings with Amazon Bedrock

The next step is converting application content into embeddings.

For this example, we can use Amazon Titan Text Embeddings V2.

The model identifier is:

amazon.titan-embed-text-v2:0 

Titan Text Embeddings V2 supports configurable output dimensions of 1,024, 512, or 256.

Here is a simplified Python example using Boto3:

import boto3 import json bedrock = boto3.client( "bedrock-runtime", region_name="us-east-1" ) def generate_embedding(text): response = bedrock.invoke_model( modelId="amazon.titan-embed-text-v2:0", body=json.dumps({ "inputText": text, "dimensions": 1024, "normalize": True }), contentType="application/json", accept="application/json" ) result = json.loads( response["body"].read() ) return result["embedding"] 

The function sends text to Amazon Bedrock and returns its numerical representation.

For production applications, validate the model response, handle throttling and service errors, and keep the embedding model and dimensions consistent between ingestion and query generation.

If the embedding configuration changes, existing vectors may need to be regenerated to maintain compatibility.

5. Automating Embedding Generation with DynamoDB Streams

Generating embeddings manually for every record is not a scalable approach.

DynamoDB Streams can automate this process.

Enable DynamoDB Streams with NEW_AND_OLD_IMAGES.

When a support ticket is created or its searchable content changes, a Lambda function can receive the stream event, generate a new embedding, and update the same DynamoDB item.

The workflow:

New Support Ticket | v Amazon DynamoDB | v DynamoDB Streams | v AWS Lambda | v Amazon Bedrock Titan Embeddings | v Generate Vector | v Update DynamoDB Item | v DynamoDB Vector Index 

The vector index is maintained by DynamoDB as the indexed item data changes.

This eliminates the need to synchronize embeddings into an external vector database.

Important production consideration: Updating an item from a Streams-triggered Lambda can generate another stream event. Compare the old and new searchable content, or track an embedding version, to avoid repeatedly processing embedding-only updates.

The pipeline should also handle duplicate events, retries, throttling, and failed embedding requests.

Make embedding generation idempotent so that retries do not create inconsistent application state.

6. Performing Semantic Search with SearchVectors

Now imagine a customer submits this question:

My online payment keeps getting rejected during checkout.

The application generates an embedding for the query using the same model and configuration used for stored content.

It then calls DynamoDB's SearchVectors API.

DynamoDB performs approximate nearest neighbor search against the configured vector index and returns the most similar items.

The search flow:

Customer Query | v Generate Query Embedding | v Amazon Bedrock | v DynamoDB SearchVectors | v Find Similar Vectors | v Retrieve Matching Records | v Return Relevant Context 

The SearchVectors API supports a TopK parameter ranging from 1 to 100.

The API also supports search conditions based on attributes declared in the vector index search schema.

For example, a support application may want to scope searches to a particular tenant or category.

A simplified conceptual implementation:

# Semantic search workflow: # # 1. Generate an embedding for the user's query. # 2. Call DynamoDB SearchVectors with: # TableName # IndexName # SearchVector # TopK # 3. Optionally provide search conditions # and a projection expression. # 4. Process the returned SearchResults. # # The exact request structure and AttributeValue # serialization should follow the current # DynamoDB SearchVectors API documentation. 

One important distinction: vector search is not the same as a normal DynamoDB Query operation.

It uses the dedicated SearchVectors API.

Similarity scores also depend on the configured distance function. For cosine distance and Euclidean distance, lower scores indicate greater similarity. For dot product, higher scores indicate greater similarity.

Always interpret scores according to the selected metric.

7. Connecting Semantic Retrieval with RAG

Finding similar records is only part of the solution.

The application needs to convert retrieved information into a useful response.

This is where Retrieval-Augmented Generation (RAG) becomes valuable.

A typical RAG workflow has three stages.

Ingestion: Application content is converted into embeddings and stored alongside operational records in DynamoDB.

Retrieval: A user's question is converted into an embedding, and DynamoDB retrieves semantically similar records.

Generation: Retrieved information is provided to a foundation model through Amazon Bedrock to generate a grounded response.

For example, the search results may include:

Ticket ID: TICKET-1001 Issue: Payment transaction failed during checkout. Resolution: Payment gateway configuration was corrected. Status: Resolved. 

The application passes this context to a foundation model through Amazon Bedrock.

The model can generate a response such as:

"Similar payment failures were previously resolved by correcting the payment gateway configuration. Your issue may have a related cause. Support should verify the current gateway status before making changes."

The response uses retrieved application data rather than relying entirely on the model's internal knowledge.

This is the central idea behind RAG.

8. Building an AI Agent with DynamoDB and Bedrock

The architecture becomes even more powerful when we introduce an AI agent.

An Amazon Bedrock Agent can interpret user requests and invoke application operations through action groups backed by AWS Lambda.

The application can expose operational tools for retrieving tickets, checking statuses, and updating support records.

It can also expose a semantic retrieval tool that generates query embeddings and calls DynamoDB SearchVectors.

Imagine a customer asks:

Find similar payment issues and check whether my existing support ticket has been resolved.

The agent can retrieve historical cases through semantic search and check the current ticket status using a standard DynamoDB operation.

It then combines the results into a contextual response.

 Customer | v API Gateway | v AWS Lambda | v Amazon Bedrock Agent | +--------+--------+ | | v v Operational Semantic Action Group Action Group | | v v DynamoDB CRUD Bedrock Embedding | v DynamoDB SearchVectors | v Relevant Support Data | +------------+ | v Bedrock Foundation Model | v Contextual Response 

The agent can now combine structured database operations with semantic retrieval through a unified data layer.

For sensitive or irreversible operations, authorization checks and human approval should remain in place.

9. Performance, Scaling, and Cost Optimization

A unified architecture can simplify operations, but it still requires careful engineering.

Choose Appropriate Embedding Dimensions

Titan Text Embeddings V2 supports 1,024, 512, and 256 dimensions.

Higher dimensions may capture more information, but they also affect storage and search requirements.

Evaluate retrieval quality before selecting a smaller embedding size.

Design the Search Partition Key Carefully

DynamoDB vector indexes support a search schema that can scope searches using a partition key.

A multi-tenant application may use tenant_id, while an agent memory system may use a user or session identifier.

Choose attributes that align with actual search patterns and distribute workload effectively.

Project Only Required Attributes

The SearchVectors API returns projected attributes from the vector index.

Avoid returning large records when the application only needs a ticket ID, title, category, and resolution.

Use a reasonable TopK value and retrieve additional details separately when needed.

Monitor Embedding Generation

Track Lambda errors, stream processing delays, Bedrock throttling, and failed embedding updates.

A record whose embedding generation fails should not silently remain unavailable to semantic search.

Understand Capacity and Pricing

DynamoDB vector indexes require on-demand capacity mode.

Evaluate vector search metering, vector storage, embedding model inference, Lambda execution, and operational reads and writes together.

A single database does not automatically mean every workload will be cheaper. Measure actual traffic and retrieval requirements before choosing the architecture.

10. When Should You Still Use a Dedicated Vector Database?

Native DynamoDB vector search is compelling when operational records already live in DynamoDB and the application needs semantic retrieval over that data.

However, it is not a replacement for every search technology.

Amazon OpenSearch Service may be more appropriate when an application requires advanced full-text search, fuzzy matching, or sophisticated hybrid lexical and semantic retrieval.

Amazon Aurora PostgreSQL with pgvector can be a strong choice when relational queries and vector similarity need to coexist.

The right architecture depends on the workload, filtering requirements, query patterns, and operational needs.

The goal is not to use one database for everything.

The goal is to avoid unnecessary complexity while selecting the right technology for each requirement.

11. Real-World Use Cases

Intelligent Customer Support

Store support tickets, customer records, resolutions, and embeddings together. Retrieve previous issues using natural-language queries.

AI Agent Memory

Store conversation summaries, decisions, and relevant facts as operational records with embeddings. Retrieve useful memories based on semantic similarity.

Product Recommendations

Represent product descriptions and relevant attributes as embeddings. Find similar products while keeping product information in the same operational data layer.

Enterprise Knowledge Discovery

Store internal knowledge records, technical notes, and documentation context. Allow employees to discover relevant information without knowing exact keywords.

Personalized Applications

Combine customer attributes and application events with semantic representations to retrieve contextually relevant information for recommendations and assistance.

12. Security and Governance

A unified database does not remove the need for strong security controls.

Use IAM roles with least-privilege permissions for Lambda, Bedrock, and DynamoDB.

Encrypt data at rest and use TLS for data in transit.

For multi-tenant applications, enforce tenant isolation in the application authorization layer. A vector search partition key is not, by itself, a security boundary.

Avoid exposing sensitive customer information in prompts or retrieved context unless the requesting user is authorized to access it.

Monitor access patterns and application activity through appropriate AWS monitoring and audit services.

For production AI agents, apply validation and approval controls before allowing sensitive or irreversible actions.

Conclusion: One Database, Two Powerful Capabilities

Modern applications increasingly need to combine transactional data with AI-powered discovery.

Traditionally, this required separate operational and vector databases, synchronization pipelines, and additional infrastructure.

With native vector search in Amazon DynamoDB, developers can store operational records and their embeddings together.

Amazon Bedrock provides the embedding models and foundation models needed to build semantic retrieval and intelligent application experiences.

DynamoDB Streams and AWS Lambda help automate embedding generation when application content changes.

Together, these services create a unified architecture for operational workloads, semantic search, RAG, and AI agents.

The biggest opportunity is not simply eliminating a database.

It is reducing the distance between application data and the intelligence built on top of it.

Your operational database can now become part of your AI retrieval layer.

Official AWS Resources

Amazon DynamoDB Native Vector Search Announcement

Build Semantic Search with Native Vector Support in Amazon DynamoDB

Using Vector Indexes in DynamoDB

DynamoDB SearchVectors API Reference

Amazon Titan Text Embeddings V2 Documentation

Amazon Bedrock Documentation

Discussion

Would you use DynamoDB as both your operational database and vector search engine for an AI-powered application, or would you still prefer a dedicated vector database?

Share your architecture choices and experiences in the comments.

AWS #AmazonDynamoDB #AmazonBedrock #VectorSearch #SemanticSearch #GenerativeAI #RAG #AIAgents