Skip to content

Find recipe that suits your needs. Built on top of Gemma-2B with RAG hosted on MongoDB.

License

Notifications You must be signed in to change notification settings

adbcode/recipe-rag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

recipe-rag

Find recipe that suits your needs. Built on top of Gemma-2B with RAG hosted on MongoDB. Made using the first 1k recipe from the recipe-nlg dataset.

The interface in action

How to replicate

  • The notebook was developed on Google Colab, but can be adapted for use in other environments.
  • Create MONGO_URI and HF_TOKEN environment values / secrets for your MongoDB database and Hugging Face account respectively.
  • Create a MongoDB collection for hosting the embeddings and assign a vector search index using the guide, while setting path as "embedding", similarity as "cosine" and numDimensions as 1024 to match the embedding model.
  • In a GPU environment, run the notebook and follow instructions.

TODO

  • Enrich response with the matched recipe.
  • Create a simple chat interface.

Reference

About

Find recipe that suits your needs. Built on top of Gemma-2B with RAG hosted on MongoDB.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published