{"id":24317040,"url":"https://github.com/codewithcharan/pharmaquery","last_synced_at":"2025-07-14T10:05:09.267Z","repository":{"id":271938885,"uuid":"915042745","full_name":"CodeWithCharan/PharmaQuery","owner":"CodeWithCharan","description":"Pharmaceutical Insight Retrieval System designed to help users gain meaningful insights from research papers and documents in the pharmaceutical domain.","archived":false,"fork":false,"pushed_at":"2025-01-27T18:20:53.000Z","size":8088,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-20T16:56:19.398Z","etag":null,"topics":["chromadb","embeddings","google-generative-ai","langchain","pharmaceutical-science","python3","research","retrieval-augmented-generation","semantic-search","sentence-transformers"],"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/CodeWithCharan.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,"zenodo":null}},"created_at":"2025-01-10T20:57:47.000Z","updated_at":"2025-03-12T07:02:42.000Z","dependencies_parsed_at":"2025-04-13T16:04:44.328Z","dependency_job_id":"0267a358-ac84-4d33-8f48-eaa0a65a3204","html_url":"https://github.com/CodeWithCharan/PharmaQuery","commit_stats":null,"previous_names":["codewithcharan/pharmaquery"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CodeWithCharan/PharmaQuery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWithCharan%2FPharmaQuery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWithCharan%2FPharmaQuery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWithCharan%2FPharmaQuery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWithCharan%2FPharmaQuery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeWithCharan","download_url":"https://codeload.github.com/CodeWithCharan/PharmaQuery/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWithCharan%2FPharmaQuery/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265276930,"owners_count":23739283,"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":["chromadb","embeddings","google-generative-ai","langchain","pharmaceutical-science","python3","research","retrieval-augmented-generation","semantic-search","sentence-transformers"],"created_at":"2025-01-17T13:29:51.028Z","updated_at":"2025-07-14T10:05:09.236Z","avatar_url":"https://github.com/CodeWithCharan.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PharmaQuery\n\n## Overview\nPharmaQuery is an advanced Pharmaceutical Insight Retrieval System designed to help users gain meaningful insights from research papers and documents in the pharmaceutical domain.\n\n## PharmaQuery Architecture\n![PharmaQuery Architecture](./Images/PharmaQuery-Architecture.png)\n\n## Demo\nhttps://github.com/user-attachments/assets/c12ee305-86fe-4f71-9219-57c7f438f291\n\n## Features\n- **Natural Language Querying**: Ask complex questions about the pharmaceutical industry and get concise, accurate answers.\n- **Custom Database**: Upload your own research documents to enhance the retrieval system's knowledge base.\n- **Similarity Search**: Retrieves the most relevant documents for your query using AI embeddings.\n- **Streamlit Interface**: User-friendly interface for queries and document uploads.\n\n## Technologies Used\n- **Programming Language**: [Python 3.10+](https://www.python.org/downloads/release/python-31011/)\n- **Framework**: [LangChain](https://www.langchain.com/)\n- **Database**: [ChromaDB](https://www.trychroma.com/)\n- **Models**:\n  - Embeddings: [Google Gemini API (embedding-001)](https://ai.google.dev/gemini-api/docs/embeddings)\n  - Chat: [Google Gemini API (gemini-1.5-pro)](https://ai.google.dev/gemini-api/docs/models/gemini#gemini-1.5-pro)\n- **PDF Processing**: [PyPDFLoader](https://python.langchain.com/docs/integrations/document_loaders/pypdfloader/)\n- **Document Splitter**: [SentenceTransformersTokenTextSplitter](https://python.langchain.com/api_reference/text_splitters/sentence_transformers/langchain_text_splitters.sentence_transformers.SentenceTransformersTokenTextSplitter.html)\n\n## Requirements\n1. **Clone the Repository**:\n   ```bash\n   git clone https://github.com/CodeWithCharan/PharmaQuery.git\n   cd PharmaQuery\n   ```\n\n2. **Install Dependencies**:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. **Set Up Environment Variables**:\n   Create a `.env` file in the project root directory with the following variables:\n\n    ```bash\n    GOOGLE_API_KEY=\"your_google_gemini_api_key\"\n    ```\n\n    `Note:` Replace `your_google_gemini_api_key` with actual key.\n\n4. **Run the Application**:\n   ```bash\n   streamlit run app.py\n   ```\n\n5. **Use the Application**:\n   - Enter your query in the main interface.\n   - Optionally, upload research papers in the sidebar to enhance the database.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithcharan%2Fpharmaquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewithcharan%2Fpharmaquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithcharan%2Fpharmaquery/lists"}