Skip to main content

Setup

Follow the instructions in the Azure Cosmos DB Setup Guide to get the connection string. Install MongoDB packages:
The example uses OpenAI for embeddings and the agent model, so set your API key:

Example

agent_with_knowledge.py

Azure Cosmos DB MongoDB vCore Params