Team Ai
Apppublic

MongoDB/Haystack-MongoDB-Integration-Chat

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
2likes
README.md29 linesDownload Raw Back to root
1---2title: Haystack and MongoDB Integrated chat3emoji: 🍃4colorFrom: gray5colorTo: purple6sdk: gradio7sdk_version: 4.37.28app_file: app.py9pinned: false10license: apache-2.011---12 13This simple ChatBot is designed to communicate with MongoDB Atlas Vector Search via Haystack [integration](https://haystack.deepset.ai/integrations/mongodb). 14 15It uses OpenAI  embeddings to query the database for semantic similarity search.16 17## How to setup your own18 191. [Create an Atlas cluter](https://www.mongodb.com/docs/atlas/tutorial/deploy-free-tier-cluster/) (free clusters are available)202. Load [sample data](https://www.mongodb.com/docs/atlas/sample-data/)213. 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.haystack_embedded_movies` with 1536 dimensions.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 245. Obtain your Open AI api key256. "Duplicate" this space and input26     - `MONGO_CONNECTION_STRING` - Your Atlas Cluster connection string27     - `OPENAI_API_KEY`- Open AI API key28 29Build and query the chat!