mirror of
https://github.com/Shubhamsaboo/awesome-llm-apps.git
synced 2026-05-01 07:44:28 -05:00
rag_chain added to rag_tutorials
This commit is contained in:
56
rag_tutorials/rag_chain/README.md
Normal file
56
rag_tutorials/rag_chain/README.md
Normal file
@@ -0,0 +1,56 @@
|
||||
# PharmaQuery
|
||||
|
||||
## Overview
|
||||
PharmaQuery is an advanced Pharmaceutical Insight Retrieval System designed to help users gain meaningful insights from research papers and documents in the pharmaceutical domain.
|
||||
|
||||
## PharmaQuery Architecture
|
||||

|
||||
|
||||
## Features
|
||||
- **Natural Language Querying**: Ask complex questions about the pharmaceutical industry and get concise, accurate answers.
|
||||
- **Custom Database**: Upload your own research documents to enhance the retrieval system's knowledge base.
|
||||
- **Similarity Search**: Retrieves the most relevant documents for your query using AI embeddings.
|
||||
- **Streamlit Interface**: User-friendly interface for queries and document uploads.
|
||||
|
||||
## Technologies Used
|
||||
- **Programming Language**: [Python 3.10+](https://www.python.org/downloads/release/python-31011/)
|
||||
- **Framework**: [LangChain](https://www.langchain.com/)
|
||||
- **Database**: [ChromaDB](https://www.trychroma.com/)
|
||||
- **Models**:
|
||||
- Embeddings: [Google Gemini API (embedding-001)](https://ai.google.dev/gemini-api/docs/embeddings)
|
||||
- Chat: [Google Gemini API (gemini-1.5-pro)](https://ai.google.dev/gemini-api/docs/models/gemini#gemini-1.5-pro)
|
||||
- **PDF Processing**: [PyPDFLoader](https://python.langchain.com/docs/integrations/document_loaders/pypdfloader/)
|
||||
- **Document Splitter**: [SentenceTransformersTokenTextSplitter](https://python.langchain.com/api_reference/text_splitters/sentence_transformers/langchain_text_splitters.sentence_transformers.SentenceTransformersTokenTextSplitter.html)
|
||||
|
||||
## Requirements
|
||||
1. **Install Dependencies**:
|
||||
```bash
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
2. **Set Up Environment Variables**:
|
||||
Create a `.env` file in the project root directory with the following variables:
|
||||
|
||||
```bash
|
||||
GOOGLE_API_KEY="your_google_gemini_api_key"
|
||||
```
|
||||
|
||||
`Note:` Replace `your_google_gemini_api_key` with actual key.
|
||||
|
||||
3. **Run the Application**:
|
||||
```bash
|
||||
streamlit run app.py
|
||||
```
|
||||
|
||||
4. **Use the Application**:
|
||||
- Enter your query in the main interface.
|
||||
- Optionally, upload research papers in the sidebar to enhance the database.
|
||||
|
||||
## :mailbox: Connect With Me
|
||||
<img align="right" src="https://media.giphy.com/media/2HtWpp60NQ9CU/giphy.gif" alt="handshake gif" width="150">
|
||||
|
||||
<p align="left">
|
||||
<a href="https://linkedin.com/in/codewithcharan" target="blank"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/linked-in-alt.svg" alt="codewithcharan" height="30" width="40" style="margin-right: 10px" /></a>
|
||||
<a href="https://instagram.com/joyboy._.ig" target="blank"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/instagram.svg" alt="__mr.__.unique" height="30" width="40" /></a>
|
||||
<a href="https://twitter.com/Joyboy_x_" target="blank"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/twitter.svg" alt="codewithcharan" height="30" width="40" style="margin-right: 10px" /></a>
|
||||
</p>
|
||||
Reference in New Issue
Block a user