A LLM Agent for Medical Q&A based on LangChain.
MedicalQA for medical related questions and WebSearch(DuckDuckGo API) for general questions.
sentence-transformers/all-MiniLM-L6-v2 for Embedding and google/flan-t5-base for Generating.
Check requirements.txt for correct version of tools.
Update your own HuggingFace token HUGGINGFACEHUB_API_TOKEN = your_token_here in .env.
Add your own documents under the path "ref" in .md format.
Run python create_database.py first to create chroma database.