设置
请按照 Azure Cosmos DB 设置指南 中的说明获取连接字符串。 安装 MongoDB 包:示例
agent_with_knowledge.py
MongoDB 参数
collection_name
: 数据库中集合的名称。db_url
: MongoDB 数据库的连接字符串。search_index_name
: 要使用的搜索索引的名称。cosmos_compatibility
: 设置为True
以兼容 Azure Cosmos DB。
collection_name
: 数据库中集合的名称。db_url
: MongoDB 数据库的连接字符串。search_index_name
: 要使用的搜索索引的名称。cosmos_compatibility
: 设置为 True
以兼容 Azure Cosmos DB。