Spaces:
Sleeping
Sleeping
Commit
·
cad5dc7
1
Parent(s):
b2258b8
- app.py +8 -0
- langchain_demo.collection_of_text_blobs.json +0 -0
app.py
CHANGED
|
@@ -16,6 +16,14 @@ import os
|
|
| 16 |
DESCRIPTION = """\
|
| 17 |
# RAG - MongoDB Atlas Vector Search & OpenAI
|
| 18 |
This app is designed to provide a simple chat where to improve the answer from OpenAI with private information located in MongoDB Atlas cluster.<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
The JSON documents in MongoDB looks like:
|
| 20 |
```
|
| 21 |
{
|
|
|
|
| 16 |
DESCRIPTION = """\
|
| 17 |
# RAG - MongoDB Atlas Vector Search & OpenAI
|
| 18 |
This app is designed to provide a simple chat where to improve the answer from OpenAI with private information located in MongoDB Atlas cluster.<br>
|
| 19 |
+
|
| 20 |
+
# Prerequisites:
|
| 21 |
+
create a free DB called "langchain_demo" and a collection called "collection_of_text_blobs" in MongoDB Atlas (https://cloud.mongodb.com). After that, you have two options:
|
| 22 |
+
|
| 23 |
+
**option1**) execute locally "load_data.py" to create new documents and their embeddings in MongoDB
|
| 24 |
+
**option2**) import the JSON file "langchain_demo.collection_of_text_blobs.json"
|
| 25 |
+
|
| 26 |
+
# Dataset
|
| 27 |
The JSON documents in MongoDB looks like:
|
| 28 |
```
|
| 29 |
{
|
langchain_demo.collection_of_text_blobs.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|