Setup
Follow the instructions in the Azure Cosmos DB Setup Guide to get the connection string. Install MongoDB packages:Example
agent_with_knowledge.py
MongoDB Params
collection_name
: The name of the collection in the database.db_url
: The connection string for the MongoDB database.search_index_name
: The name of the search index to use.cosmos_compatibility
: Set toTrue
for Azure Cosmos DB compatibility.
Developer Resources
- View Cookbook (Sync)