Simple RAG System
๐ฉบ Acupuncture Clinical Advisor - Retrieval-Augmented Generation (RAG)
๐ Overview
The Acupuncture Clinical Advisor is a Retrieval-Augmented Generation (RAG) application that provides evidence-based acupuncture treatment recommendations. It utilizes LangChain, FAISS, and Groq's Llama3-70B model to analyze clinical guidelines and generate structured treatment plans.
๐๏ธ Project Structure
๐ Features
Clinical Query Processing: Users can input acupuncture-related clinical questions.
PDF-based Knowledge Base: Extracts information from acupuncture guidelines.
FAISS Vector Store: Efficient retrieval of relevant knowledge.
LLM-powered Analysis: Uses Groq's Llama3-70B to generate professional responses.
Streamlit UI: Simple and interactive interface for clinical consultation.
๐ฅ Installation
1๏ธโฃ Clone the Repository
2๏ธโฃ Create a Virtual Environment
3๏ธโฃ Install Dependencies
๐ API Key Configuration
Create a .env file in the root directory and add your GROQ API key:
๐ Preparing the Knowledge Base
1๏ธโฃ Process Clinical Guidelines (PDFs)
Place your acupuncture guideline PDFs inside the
Acupuncture_PDFs/ directory. Then, run the rag_notebook.ipynb script to create a FAISS vector store:2๏ธโฃ Start the Streamlit Application
๐ Usage
Open the web UI.
Enter a clinical question related to acupuncture.
Click "Generate Treatment Plan".
View structured recommendations including:
Diagnosis criteria
Treatment protocol
Acupuncture points
Safety considerations
๐ ๏ธ Technologies Used
Python
Streamlit (UI)
LangChain (RAG pipeline)
FAISS (Vector database)
Groq Llama3-70B (LLM for response generation)
HuggingFace Sentence-Transformers (Embeddings)
PyPDFLoader (PDF processing)
๐ License
MIT License. Feel free to use and improve this project!
๐ค Contributing
If you want to contribute, fork this repository and submit a pull request. Feedback and improvements are always welcome!
๐ง Contact
For any inquiries, reach out via:
X (Twitter): @dhaivat00
Instagram: dhaivatjambudia
LinkedIn: Dhaivat Jambudia
Or open an issue on GitHub.
1 like ยท 9 views ยท Sep 15, 2025
Personal Assistant for Acupuncture Treatment for who are practicing or Studying Acupuncture and Experienced Doctors
Timeline
Aug 26, 2025 - Aug 30, 2025