#
This is the official hub for demos, code, tutorials, videos, and documentation for using Azure Cosmos DB to build fast, scalable, and cost-effective AI applications.
Documentation
Introduction
Azure Cosmos DB for NoSQL
- Vector Search in Azure Cosmos DB for NoSQL
- Vector Indexing
- Managing Vector Indexes
- How to get started C#, Python, JavaScript, Java
vCore-based Azure Cosmos DB for MongoDB
Integrations
Azure Cosmos DB for NoSQL
vCore-based Azure Cosmos DB for MongoDB
Developer Blog Articles
- Introducing Vector Database capabilities in Azure Cosmos DB for NoSQL
- Vector Database in vCore-based Azure Cosmos DB for MongoDB now GA!
Code Samples
Azure Cosmos DB for NoSQL
- Build a Copilot sample app
- This sample application shows how to build a Generative-AI application using Azure Cosmos DB for NoSQL using its new vector search capabilities and Azure OpenAI Service and Semantic Kernel. The sample provides practical guidance on many concepts you will need to design and build these types of applications.
- Azure App Service
- C#, Native SDK, Semantic Kernel
- Sample App
- Hands on Lab
- This sample application shows how to build a Generative-AI application using Azure Cosmos DB for NoSQL using its new vector search capabilities and Azure OpenAI Service and Semantic Kernel. The sample provides practical guidance on many concepts you will need to design and build these types of applications.
- Build a Copilot sample app - Azure Cosmos DB for MongoDB
- This sample application shows how to build a Generative-AI application using Azure Cosmos DB for MongoDB using its vector search capabilities and Azure OpenAI Service and Semantic Kernel. The sample provides practical guidance on many concepts you will need to design and build these types of applications.
- Azure App Service
- C#, Native SDK, Semantic Kernel
- Sample App
- Hands on Lab
- This sample application shows how to build a Generative-AI application using Azure Cosmos DB for MongoDB using its vector search capabilities and Azure OpenAI Service and Semantic Kernel. The sample provides practical guidance on many concepts you will need to design and build these types of applications.
- Build your own Copilot End to End Solution Accelerator
- Production Ready Reference Solution for how to build your own copilot using Azure services including: Azure Cosmos DB for NoSQL, Azure OpenAI Service, Azure Kubernetes Service or Azure Container Apps. Uses Semantic Kernel plugins for OpenAI, Cosmos DB connectors, and semantic cache. Built in C#.
- AKS or ACA, Container Registry, Managed Identity, Key Vault, Log Analytics, Azure Monitor
- Solution Accelerator
- Hackathon Workshop
- Production Ready Reference Solution for how to build your own copilot using Azure services including: Azure Cosmos DB for NoSQL, Azure OpenAI Service, Azure Kubernetes Service or Azure Container Apps. Uses Semantic Kernel plugins for OpenAI, Cosmos DB connectors, and semantic cache. Built in C#.
- Movie ChatBot for Azure Cosmos DB for NoSQL
- In this sample, we’ll demonstrate how to build a RAG (Retrieval Augmented Generation) pattern application using a subset of the popular Movie Lens 1M dataset. This sample performs RAG over movie data with vector search, stores conversational chat history, and leverages a semantic cache, all using Azure Cosmos DB and its built-in vector search capability. Azure OpenAI Service is used to generate embeddings and LLM completions.
- Jupyter Notebook
- Python
- Sample App
- In this sample, we’ll demonstrate how to build a RAG (Retrieval Augmented Generation) pattern application using a subset of the popular Movie Lens 1M dataset. This sample performs RAG over movie data with vector search, stores conversational chat history, and leverages a semantic cache, all using Azure Cosmos DB and its built-in vector search capability. Azure OpenAI Service is used to generate embeddings and LLM completions.
- LangChain integration with Azure Cosmos DB for NoSQL
- This sample shows ingesting PDF’s into Azure Cosmos DB for NoSQL and doing vector similarity search (RAG Pattern) using Langchain.
- Jupyter Notebook
- Python gradio
- Code
- This sample shows ingesting PDF’s into Azure Cosmos DB for NoSQL and doing vector similarity search (RAG Pattern) using Langchain.
- Serverless AI Chat with RAG using Langchain.js
- Build your own serverless AI Chat with Retrieval-Augmented-Generation using LangChain.js, TypeScript and Azure Cosmos DB
- TypeScript
- LangChain
- Code
- Simple Vector Search and RAG in Azure Cosmos DB for NoSQL
- Get started in this simple e2e solution using Azure OpenAI embeddings and a GPT-3.5 model for completions, and vector search in Azure Cosmos DB for NoSQL!
- Java
- Code
- Simple Vector Search and RAG in Azure Cosmos DB for NoSQL
- This sample shows how to build a ChatGPT like application in Spring and run on Azure Spring Apps with Azure Cosmos DB. The vector store in Azure Cosmos DB enables the application to use your private data to answer the questions.
- Java
- Azure Spring Apps
- Code
vCore-based Azure Cosmos DB for MongoDB
- Movie ChatBot for Azure Cosmos DB for MongoDB
- In this sample, we’ll demonstrate how to build a RAG (Retrieval Augmented Generation) pattern application using a subset of the popular Movie Lens 1M dataset. This sample performs RAG over movie data with vector search, stores conversational chat history, and leverages a semantic cache, all using Azure Cosmos DB and its built-in vector search capability. Azure OpenAI Service is used to generate embeddings and LLM completions.
- Jupyter Notebook
- Python
- Sample App
- In this sample, we’ll demonstrate how to build a RAG (Retrieval Augmented Generation) pattern application using a subset of the popular Movie Lens 1M dataset. This sample performs RAG over movie data with vector search, stores conversational chat history, and leverages a semantic cache, all using Azure Cosmos DB and its built-in vector search capability. Azure OpenAI Service is used to generate embeddings and LLM completions.
- Cosmic RAG Food app with Langchain, Azure OpenAI and Azure Cosmos DB for MongoDB (vCore)
- A Demo application for a streamlined ordering system tailored for various food categories. It allows users to request customized meals, such as “high protein dishes,” with recommendations provided from our database. Users can further customize their choices before sending their orders from the app to the restaurant, including delivery details.
- Jupyter Notebook
- Web app
- Code
- A Demo application for a streamlined ordering system tailored for various food categories. It allows users to request customized meals, such as “high protein dishes,” with recommendations provided from our database. Users can further customize their choices before sending their orders from the app to the restaurant, including delivery details.
- Advertisement generation with Azure OpenAI and vCore-based Azure Cosmos DB for MongoDB
- This project demonstrates the use of Azure Cosmos DB’s vCore’s vector similarity search and OpenAI embeddings to generate advertising content aimed at boosting sales. It is particularly tailored for a shoe retailer looking to leverage recent trends for effective advertising.
- Jupyter Notebook
- Python gradio
- Code
- This project demonstrates the use of Azure Cosmos DB’s vCore’s vector similarity search and OpenAI embeddings to generate advertising content aimed at boosting sales. It is particularly tailored for a shoe retailer looking to leverage recent trends for effective advertising.
- LangChain integration with vCore-based Azure Cosmos DB for MongoDB
- This sample shows ingesting PDF’s into Azure Cosmos DB and doing vector similarity search (RAG Pattern) using Langchain.
- Jupyter Notebook
- Gradio
- Code
- This sample shows ingesting PDF’s into Azure Cosmos DB and doing vector similarity search (RAG Pattern) using Langchain.
Graph RAG
- CosmosAIGraph: An AI-Powered Graph and Knowledge Graph Solution with Azure Cosmos DB. Combine the power of baseline (vetor search) with the contextual and relationship data captured in a knowledge graph to bring you RAG apps to the next level with Azure Cosmos DB.
- Python
- Supports both Azure Cosmos DB for NoSQL and vCore-based Azure Cosmos DB for MongoDB
- Code
Videos and other content
Azure Cosmos DB for NoSQL
- RAGHack: Scalable RAG apps with Azure Cosmos DB for NoSQL
-
[What is the database behind ChatGPT? Microsoft Mechanics](https://www.youtube.com/watch?v=6IIUtEFKJec) -
[AI Semantic Search for Your Website with Azure Cosmos DB Microsoft Mechanics](https://www.youtube.com/watch?v=3T0K61VbnFw) -
[Vector Search using 95% Less Compute with DiskANN and Azure Cosmos DB Microsoft Mechanics](https://www.youtube.com/watch?v=MlMPIYONvfQ) -
[Scalable RAG with Azure Cosmos DB and DiskANN Studio15, Microsoft Build 2024](https://www.youtube.com/watch?v=-UkHbToopc4) -
[The power of AI and Copilot for Azure Databases BRK171, Build 2024](https://www.youtube.com/watch?v=6VUfsY0kRxA) - Build Scalable Chat History and Conversational Memory into LLM Apps
-
[Azure Cosmos DB: The database for your AI apps Azure Friday](https://www.youtube.com/watch?v=YYYrz0i2-Ao) - Azure Cosmos DB with DiskANN - Quick Demo
-
[How to design and build AI applications with vector search using Azure OpenAI & Azure Cosmos DB SQLBits](https://www.youtube.com/watch?v=KuslX-Aw5sQ) - Azure Cosmos DB for NoSQL and OpenAI: Building Robust Applications with RAG pattern
- Coffee 26: Vector Search with Azure Cosmos DB: Next-generation applications made easy
- Building Generative AI Apps with Azure Cosmos DB for NoSQL
vCore-based Azure Cosmos DB for MongoDB
- RAGHack: Building RAG apps with Azure Cosmos DB for MongoDB
- What is vector search? - vCore-based Azure Cosmos DB for MongoDB
- Applying GenAI and Azure Cosmos DB for MongoDB Vector Search to Interactive Analytics & Reporting
- Build next gen intelligent retail with Azure OpenAI & vCore-based Azure Cosmos DB for MongoDB)
- LLM App Development Using PromptFlow and Azure Cosmos DB for MongoDB
- Connecting a RAG chat app to Azure Cosmos DB Building a Chat Bot using data in Azure Cosmos DB for MongoDB vCore in Azure AI Studio | Ep. 88, Cosmos DB TV
-
[Build AI-powered apps with Azure Cosmos DB for MongoDB vector search Ep. 93, Cosmos DB TV](https://www.youtube.com/watch?v=MLY5Pc_tSXw&ppD) -
[CosmosAIGraph - AI-powered Graphs and Knowledge Graphs with Azure Cosmos DB Ep. 95, Cosmos DB TV](https://www.youtube.com/watch?v=0alvRmEgIpQ) - Unlock the Power of Azure Cosmos DB for MongoDB vCore: An Interactive Session for Startups
- RAG using Semantic Kernel with Azure OpenAI and Azure Cosmos DB for MongoDB vCore