Skip to content

API that generates text about my personal career using Mistral_7B LLM and RAG with LangChain

License

Notifications You must be signed in to change notification settings

TMarafon/Mistral_7B_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

title emoji colorFrom colorTo sdk pinned license
Mistral 7b API
🐢
purple
pink
docker
false
mit

Mistral_7B + RAG API

This project consists on an API hosted on HuggingFace Spaces that generates text using the amazing Mistral 7B model.

Tech stack:

  • LangChain: LLM orchestration, document loader, splitter, RAG
  • FastAPI: API end-points
  • HuggingFace: LLM, Embeddings, API hosting
  • ChromaDB: Vector DB

Parameters (best combination):

  • Text splitter: RecursiveCharacterTextSplitter(chunk_size=850, chunk_overlap=200)
  • LLM: mistralai/Mistral-7B-Instruct-v0.1("temperature":0.1, "max_new_tokens":300)
  • Retriever: similarity search, top k=4, "score_threshold": .95
  • chain_type: stuff

Demo:

https://tmarafon2-mistral-7b-api.hf.space/

About

API that generates text about my personal career using Mistral_7B LLM and RAG with LangChain

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published