File size: 2,528 Bytes
5fa443c
 
 
 
 
 
 
50eb941
5fa443c
 
 
 
2ef5a2e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5fa443c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
title: RAG MedMind
emoji: 👁
colorFrom: pink
colorTo: blue
sdk: streamlit
sdk_version: 1.33.0
app_file: medmind.py
pinned: false
license: mit
---

# MedMind: AI-Powered Medical Chatbot

MedMind is an advanced Retrieval Augmented Generation (RAG) chatbot designed to provide reliable and informative responses to your medical inquiries. 

## Features

* **Answers General Medical Questions:** Utilizes a curated medical knowledge base and advanced language models to answer a wide range of health-related questions.
* **Summarizes Research Articles:** Retrieves and summarizes relevant research articles from PubMed, making complex scientific information more accessible.
* **Offers Additional Insights:** Provides context and insights from its knowledge base to enhance understanding.
* **Safe Web Searches:** Performs safe web searches using the Google Search API, ensuring the safety and relevance of the results.
* **Hallucination Evaluation:** Employs a model to minimize the risk of generating fabricated information.

## Technology Stack

* **Streamlit:** For building the user interface.
* **LlamaIndex:** For indexing and querying data.
* **Vectara:** As a vector database for storing and retrieving medical knowledge. 
* **TogetherLLM:** Large language model for generating responses and summaries.
* **LangChain:** For building question-answering chains.
* **Chroma:** For indexing and querying uploaded documents.
* **Hugging Face Transformers:** For embeddings and hallucination evaluation. 
* **PubMed API:** For searching and retrieving research articles.
* **Google Search API:** For performing safe web searches.

## Limitations

* Not a substitute for professional medical advice.
* Information is for general knowledge and educational purposes only.
* Under development and may occasionally provide inaccurate or incomplete information.
* Potential for hallucinations, especially for complex queries. 

## Installation and Running 

1. **Clone the repository:** `git clone https://github.com/your-username/MedMind.git`
2. **Install dependencies:** `pip install -r requirements.txt`
3. **Set up environment variables:** Refer to the `.env.example` file and create a `.env` file with your API keys.
4. **Run the Streamlit app:** `streamlit run medmind.py`


## Contributing

Contributions are welcome! Please refer to the contributing guidelines.

## License

This project is licensed under the MIT License.

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference