Skip to content

mongodb-developer/atlas-vector-search-langchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How to Integrate LangChain with MongoDB Atlas Vector Search to realise the true potential of Retrieval Augmented Generation

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.

The Notebook shows how to

  • create a vector search index using the MongoDB Atlas GUI and
  • how can we store vector embeddings in MongoDB documents create a vector search index using the MongoDB Atlas GUI
  • perform KNN search using Approximate Nearest Neighbors algorithm which uses the Hierarchical Navigable Small World (HSNW) graphs

and also throws some light on

  • Comparing textual and fuzzy search with semantic search

    image

    image

  • LLM without the retrieval architecture

    image

  • How retrieval architecture helps when we create vector embeddings and do a vector similarity search using MongoDB Atlas Vector Search

image

Tools used

Google colab

References

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published