Spaces:
Sleeping
Sleeping
| title: TestMongoDBMovies | |
| emoji: π | |
| colorFrom: gray | |
| colorTo: purple | |
| sdk: gradio | |
| sdk_version: 4.15.0 | |
| app_file: app.py | |
| pinned: false | |
| license: apache-2.0 | |
| This simple ChatBot is designed to communicate with MongoDB Atlas Vector Search movies data set. | |
| It uses OpenAI ada embeddings to query the database for semantic similarity search. | |
| ## How to setup | |
| 1. [Create an Atlas cluter](https://www.mongodb.com/docs/atlas/tutorial/deploy-free-tier-cluster/) (free clusters are available) | |
| 2. Load [sample data](https://www.mongodb.com/docs/atlas/sample-data/) | |
| 3. Deploy the relevant Vector Index on `sample_mflix.embedded_movies` | |
| - [Whitelist](https://www.mongodb.com/docs/atlas/security/ip-access-list/#std-label-access-list) access from everywhere (`0.0.0.0/0`) | |
| - Locate your [cluster connection](https://www.mongodb.com/docs/atlas/tutorial/connect-to-your-cluster/) URI | |
| 5. Obtain your Open AI api key | |
| 6. "Duplicate" this space and input | |
| - `MONGODB_ATLAS_CLUSTER_URI` - Your Atlas Cluster connection string | |
| - `OPENAI_API_KEY`- Open AI API key | |
| Build and query the chat! | |