Skip to content

Commit 96fee53

Browse files
committed
Adding samples
1 parent 6d1e0a8 commit 96fee53

File tree

6 files changed

+5118
-0
lines changed

6 files changed

+5118
-0
lines changed

Python/CosmosDB-MongoDB-vCore-Integrations/LangChain-AzureCognitiveSearch-AzureOpenAI.ipynb

Lines changed: 2312 additions & 0 deletions
Large diffs are not rendered by default.

Python/CosmosDB-MongoDB-vCore-Integrations/LangChain-CosmosDBMongovCoreVectorSearch-AzureOpenAI.ipynb

Lines changed: 785 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Notebooks for Retrieval Augmented Generation with CosmosDB for MongoDB vCore and Azure Cognitive Search using different integrations
2+
This folder contains end-to-end walk through of how to perform
3+
Retrieval Augmented Generation (RAG) with Azure Cosmos DB for MongoDB
4+
vCore and Azure Cognitive Search in a small demo.
5+
6+
All the samples use abstracts of papers(PDF format) presented at
7+
the Computer Vision and Pattern Recognition Conference 2019 (CVPR19).
8+
9+
1. LangChain + Azure Cosmos MongoDB vCore + Azure Open AI
10+
2. LangChain + Azure Cognitive Search + Azure Open AI
11+
3. Semantic Kernel + Azure Cognitive Search + Azure Open AI

Python/CosmosDB-MongoDB-vCore-Integrations/SemanticKernel-AzureCognitiveSearch-AzureOpenAI.ipynb

Lines changed: 751 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
AZCOSMOS_API=mongo
2+
AZCOSMOS_CONNSTR=<Mongo_vCore_Connection_String>
3+
OPENAI_API_KEY=
4+
OPENAI_API_TYPE = "azure"
5+
OPENAI_API_VERSION = "2023-05-15"
6+
OPENAI_API_BASE = <Your_Open_Ai_Endpoint>
7+
OPENAI_EMBEDDINGS_MODEL_NAME = "text-embedding-ada-002"
8+
OPENAI_EMBEDDINGS_MODEL_DEPLOYMENT = "smart-agent-embedding-ada"
9+
OPENAI_COMPELETIONS_MODEL_NAME = "gpt-3.5-turbo"
10+
OPENAI_COMPELETIONS_MODEL_DEPLOYMENT = "smart-agent-completions-gpt35"
11+
COG_SEARCH_ENDPOINT=<Your_Cognitive_Search_Endpoint>
12+
COG_SEARCH_KEY=

Python/CosmosDB-NoSQL-Integrations/LangChain-CosmosDBNoSQL-AzureOpenAI.ipynb

Lines changed: 1247 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)