{"id":21864091,"url":"https://github.com/saritaphd/medical-chatbot-using-llama2","last_synced_at":"2026-01-30T02:51:24.289Z","repository":{"id":265010693,"uuid":"823022621","full_name":"SaritaPhD/Medical-Chatbot-using-Llama2","owner":"SaritaPhD","description":"This project is a medical chatbot powered by the open-source Llama 2 model and integrated with Pinecone for efficient vector search. The chatbot is designed to answer user queries based on information extracted from medical documents (PDFs).","archived":false,"fork":false,"pushed_at":"2024-11-28T10:47:05.000Z","size":10848,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T14:46:31.108Z","etag":null,"topics":["chatbot-application","generative-ai","langchain","llama2","llm-inference","llm-training","pinecone","python"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SaritaPhD.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":"2024-07-02T09:24:54.000Z","updated_at":"2024-11-28T10:47:09.000Z","dependencies_parsed_at":"2025-01-20T14:39:43.849Z","dependency_job_id":"77770021-9102-4de2-b44d-33a41c481eb0","html_url":"https://github.com/SaritaPhD/Medical-Chatbot-using-Llama2","commit_stats":null,"previous_names":["saritaphd/medical-chatbot-using-llama2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaritaPhD%2FMedical-Chatbot-using-Llama2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaritaPhD%2FMedical-Chatbot-using-Llama2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaritaPhD%2FMedical-Chatbot-using-Llama2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaritaPhD%2FMedical-Chatbot-using-Llama2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SaritaPhD","download_url":"https://codeload.github.com/SaritaPhD/Medical-Chatbot-using-Llama2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235720635,"owners_count":19034987,"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","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":["chatbot-application","generative-ai","langchain","llama2","llm-inference","llm-training","pinecone","python"],"created_at":"2024-11-28T04:07:26.505Z","updated_at":"2025-10-08T14:30:50.973Z","avatar_url":"https://github.com/SaritaPhD.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Medical-Chatbot-using-Llama2\n## Project Description\nThis project is a medical chatbot powered by the open-source Llama 2 model and integrated with Pinecone for efficient vector search. The chatbot is designed to answer user queries based on information extracted from medical documents (PDFs). Key features include:\n\n- Flask Web Application: Provides an interactive interface for users to input queries and receive responses.\n- Llama 2 Integration: Uses the Llama 2 model for generating natural and contextually relevant answers.\n- Pinecone Vector Database: Manages embeddings and performs efficient similarity search to retrieve relevant context for user queries.\n- Dynamic Prompting: Customizable prompt templates ensure accurate and context-driven responses.\n- Retrieval-Augmented Generation (RAG): Combines information retrieval from PDFs with generative AI to deliver precise answers.\nThis chatbot is optimized for medical use cases, enabling professionals or users to query medical documents with ease and accuracy.\n\n\n\n# How to run?\n### STEPS:\n\nClone the repository\n\n```bash\nProject repo: git clone git@github.com:SaritaPhD/Medical-Chatbot-using-Llama2.git\n```\n\n### STEP 01- Create a conda environment after opening the repository\n\n```bash\nconda create -n mchatbot python=3.8 -y\n```\n\n```bash\nconda activate mchatbot\n```\n\n### STEP 02- install the requirements\n```bash\npip install -r requirements.txt\n```\n\n\n### Create a `.env` file in the root directory and add your Pinecone credentials as follows:\n\n```ini\nPINECONE_API_KEY = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\nPINECONE_API_ENV = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n```\n\n\n### Download the quantize model from the link provided in model folder \u0026 keep the model in the model directory:\n\n```ini\n## Download the Llama 2 Model:\n\nllama-2-7b-chat.ggmlv3.q4_0.bin\n\n\n## From the following link:\nhttps://huggingface.co/TheBloke/Llama-2-7B-Chat-GGML/tree/main\n```\n\n```bash\n# run the following command\npython store_index.py\n```\n\n```bash\n# Finally run the following command\npython app.py\n```\n\nNow,\n```bash\nopen up localhost:\n```\n\n### Techstack Used:\n\n- Python\n- LangChain\n- Flask\n- Meta Llama2\n- Pinecone\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaritaphd%2Fmedical-chatbot-using-llama2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaritaphd%2Fmedical-chatbot-using-llama2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaritaphd%2Fmedical-chatbot-using-llama2/lists"}