Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,13 +1,29 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: π
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 4.
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
| 11 |
---
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: TestMongoDBMovies
|
| 3 |
emoji: π
|
| 4 |
+
colorFrom: gray
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.15.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
| 11 |
---
|
| 12 |
|
| 13 |
+
This simple ChatBot is designed to communicate with MongoDB Atlas Vector Search via Haystack [integration](https://haystack.deepset.ai/integrations/mongodb).
|
| 14 |
+
|
| 15 |
+
It uses OpenAI embeddings to query the database for semantic similarity search.
|
| 16 |
+
|
| 17 |
+
## How to setup your own
|
| 18 |
+
|
| 19 |
+
1. [Create an Atlas cluter](https://www.mongodb.com/docs/atlas/tutorial/deploy-free-tier-cluster/) (free clusters are available)
|
| 20 |
+
2. Load [sample data](https://www.mongodb.com/docs/atlas/sample-data/)
|
| 21 |
+
3. Deploy the relevant [Vector Index](https://www.mongodb.com/docs/atlas/atlas-vector-search/vector-search-tutorial/#create-the-atlas-vector-search-index) on `sample_mflix.embedded_movies`
|
| 22 |
+
- [Whitelist](https://www.mongodb.com/docs/atlas/security/ip-access-list/#std-label-access-list) access from everywhere (`0.0.0.0/0`)
|
| 23 |
+
- Locate your [cluster connection](https://www.mongodb.com/docs/atlas/tutorial/connect-to-your-cluster/) URI
|
| 24 |
+
5. Obtain your Open AI api key
|
| 25 |
+
6. "Duplicate" this space and input
|
| 26 |
+
- `MONGO_CONNECTION_STRING` - Your Atlas Cluster connection string
|
| 27 |
+
- `OPENAI_API_KEY`- Open AI API key
|
| 28 |
+
|
| 29 |
+
Build and query the chat!
|