{"id":18398794,"url":"https://github.com/mongodb-developer/atlas-vector-search-langchain","last_synced_at":"2025-07-29T03:05:54.037Z","repository":{"id":183430454,"uuid":"670131286","full_name":"mongodb-developer/atlas-vector-search-langchain","owner":"mongodb-developer","description":"This Repo shows how to integrate LangChain, Open AI and store embeddings in the MongoDB Atlas and run a similarity search using MongoDB Atlas Vector Search.","archived":false,"fork":false,"pushed_at":"2023-09-04T11:03:28.000Z","size":52,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-05T06:55:49.775Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mongodb-developer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-24T11:10:47.000Z","updated_at":"2025-03-29T16:00:54.000Z","dependencies_parsed_at":"2023-09-04T12:31:01.940Z","dependency_job_id":null,"html_url":"https://github.com/mongodb-developer/atlas-vector-search-langchain","commit_stats":null,"previous_names":["mongodb-developer/atlas-vector-search-langchain"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mongodb-developer/atlas-vector-search-langchain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fatlas-vector-search-langchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fatlas-vector-search-langchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fatlas-vector-search-langchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fatlas-vector-search-langchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mongodb-developer","download_url":"https://codeload.github.com/mongodb-developer/atlas-vector-search-langchain/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fatlas-vector-search-langchain/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267621581,"owners_count":24116900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T02:24:27.040Z","updated_at":"2025-07-29T03:05:53.934Z","avatar_url":"https://github.com/mongodb-developer.png","language":"Jupyter Notebook","readme":"# How to Integrate LangChain with MongoDB Atlas Vector Search to realise the true potential of Retrieval Augmented Generation\nThis Repo shows how to integrate LangChain, Open AI and store embeddings in the MongoDB Atlas and run a similarity search using MongoDB Atlas Vector Search.\n\n## The Notebook shows how to \n- create a vector search index using the MongoDB Atlas GUI and\n- how can we store vector embeddings in MongoDB documents create a vector search index using the MongoDB Atlas GUI\n- perform KNN search using Approximate Nearest Neighbors algorithm which uses the Hierarchical Navigable Small World (HSNW) graphs\n\nand also throws some light on\n- Comparing textual and fuzzy search with semantic search\n\n   ![image](https://github.com/mongodb-developer/atlas-vector-search-langchain/assets/25996527/96e8408f-b974-472c-bdef-ca8d5246230a)\n\n  ![image](https://github.com/mongodb-developer/atlas-vector-search-langchain/assets/25996527/46dccc72-b1de-4920-9507-70c799cdbe9a)\n\n\n- LLM without the retrieval architecture\n\n  ![image](https://github.com/mongodb-developer/atlas-vector-search-langchain/assets/25996527/6e8bcb24-5246-4096-a822-9bfa7337854e)\n\n- How retrieval architecture helps when we create vector embeddings and do a vector similarity search using MongoDB Atlas Vector Search \n\n![image](https://github.com/mongodb-developer/atlas-vector-search-langchain/assets/25996527/6b666534-56b3-49d9-ab24-b12fe16a31f6)\n\n## Tools used\nGoogle colab \n\n  ## References\n  - [MongoDB Atlas Vector Search](https://www.mongodb.com/products/platform/atlas-vector-search)\n  - [MongoDB Documentation for Indexing vector embeddings](https://www.mongodb.com/docs/atlas/atlas-search/field-types/knn-vector/)\n  - [MongoDB Gen AI Whitepaper](https://www.mongodb.com/collateral/embedding-generative-ai)\n  - [MongoDB Blog](https://www.mongodb.com/blog/post/going-from-zero-to-one-enterprise-ready-mongodb-llms)\n  - [LangChain Integration with MongoDB](https://python.langchain.com/docs/modules/data_connection/vectorstores/integrations/mongodb_atlas)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb-developer%2Fatlas-vector-search-langchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmongodb-developer%2Fatlas-vector-search-langchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb-developer%2Fatlas-vector-search-langchain/lists"}