Edit

Share via


Best practices and solutions for using AI and Azure Cosmos DB

Use Azure Cosmos DB for NoSQL as a database for your AI-powered applications so you can grow your database as your application grows. You can also rely on the speed of Azure Cosmos DB and built-in reliability to ensure that your solution is fast and available as your needs change over time.

Modernize AI applications

Implement vector search and an AI assistant by using Azure Cosmos DB for NoSQL, Azure OpenAI, Azure Kubernetes Service, and Azure AI Search.

Screenshot of an AI assistants application responding to queries about various bikes for a retail shop.

Diagram of the architecture of the application modernization solution accelerator.

Diagram illustrating a Kubernetes-backed web application using Azure AI Search, Azure OpenAI, Azure Storage, and Azure Cosmos DB and backing services. Vectors and items are persisted in Azure Cosmos DB while files are persisted in Azure Storage.

Example Link
Solution accelerator https://github.com/Azure/Vector-Search-AI-Assistant/tree/cognitive-search-vector
Hackathon https://github.com/Azure/Build-Modern-AI-Apps-Hackathon

Payment and transaction processing

Use Azure Front Door, Azure OpenAI, Azure Kubernetes Service, Azure Static Web Apps, and Azure Cosmos DB for NoSQL to implement a payment tracking process.

Diagram of the architecture of the payment processing solution accelerator.

Diagram illustrating a service that uses an Azure Static Web App and Azure Front Door as a customer interface. The solution then hosts a combination of payment APIs and worker services to process payment transactions in Azure Kubernetes Service. Finally, the Kubernetes containers store data in Azure Cosmos DB and retrieve AI completions from Azure OpenAI.

Example Link
Solution accelerator https://github.com/Azure/Real-time-Payment-Transaction-Processing-at-Scale
Hackathon https://github.com/Azure/Real-Time-Transactions-Hackathon

Medical claims transaction processing

Process complex medical claims by using a solution built with Azure Event Hubs, Azure Static Web Apps, Azure Kubernetes Service, Azure OpenAI, an Azure Cosmos DB for NoSQL.

Diagram of the architecture of the claims processing solution accelerator.

Diagram Illustrating an external system ingesting claims using Azure Event Hubs. Concurrently, agents are interesting with an Azure Static Web App. Worker Services and APIs are hosted in Azure Kubernetes Service. The containers use Azure OpenAI for completions. The containers also store data in Azure Cosmos DB for NoSQL, which is then analyzed and manged using Azure Synapse Analytics.

Example Link
Solution accelerator https://github.com/Azure/Medical-Claims-Transaction-Processing-at-scale
Hackathon https://github.com/Azure/Medical-Claims-Processing-Hackathon

Automate AI solutions

Automate the deployment of AI-powered solutions by using tools like the new Azure Developer CLI. Use this automation to create a modern developer and operations workflow.

Example Link
Chat application https://github.com/Azure-Samples/cosmosdb-chatgpt

Use Azure Cosmos DB for MongoDB vCore as a database for your AI-powered applications so you can grow your database as your application grows. You can also rely on the speed of Azure Cosmos DB and built-in reliability to ensure that your solution is fast and available as your needs change over time.

Retrieval-augmented generation

Implement the RAG pattern by using a combination of Azure Cosmos DB for MongoDB vCore, Azure OpenAI, Azure Functions, and Azure Web Apps.

Example Link
Solution accelerator https://github.com/Azure/Vector-Search-AI-Assistant-MongoDBvCore
Python notebook https://github.com/Microsoft/AzureDataRetrievalAugmentedGenerationSamples/tree/main/Python/CosmosDB-MongoDB-vCore

Next step