Herbal Remedies Assistant is an interactive web application designed to provide users with informed answers about herbal remedies and natural medicine. The application leverages advanced natural language processing and vector search technologies to retrieve relevant information from a database of over 1000 herbal remedies.
- Interactive Query Interface: Ask questions about herbal remedies and receive detailed answers.
- Vector Search: Uses Chroma DB to find the most relevant information from the database.
- Transparency: View the source documents used to generate the answers.
- Streamlit UI: A user-friendly interface built with Streamlit.
- LangChain: For building the retrieval chain and managing prompts.
- Chroma DB: For vector storage and search capabilities.
- Streamlit: For creating the web application interface.
- Ollama LLM: For generating natural language responses.
-
Clone the repository:
git clone <repository-url> cd HerbSphere
-
Install the required Python packages:
pip install -r requirements.txt
-
Create a
.envfile in the root directory and add your LangChain API key:LANGCHAIN_API_KEY=your_api_key_here
-
Place the
herbal_remedies_1000plus.csvfile in the root directory. -
Run the application:
streamlit run app.py
- Open the application in your browser (Streamlit will provide a local URL).
- Enter your question in the text input field (e.g., "What herbs help with anxiety?").
- View the answer and the source documents for transparency.
HerbSphere/
├── app.py # Main application file
├── herbal_remedies_1000plus.csv # Herbal remedies database (not included in the repository)
├── chroma_db/ # Chroma DB vector storage
├── herbal_db/ # Additional database files
├── requirements.txt # Python dependencies
├── README.md # Project documentation
Due to the large size of the database, it is not included in this repository. You can download the database from the following link:
Contributions are welcome! If you have suggestions or improvements, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- Special thanks to the creators of LangChain, Chroma DB, and Streamlit for their amazing tools.
- Made by Mudit Thakre.