https://github.com/omarmdiab/private-files-chatbot
Chat with your local Documents (PDF, CSV, DOCX, TXT, PPTX)
https://github.com/omarmdiab/private-files-chatbot
chatbot langchain llm
Last synced: 11 months ago
JSON representation
Chat with your local Documents (PDF, CSV, DOCX, TXT, PPTX)
- Host: GitHub
- URL: https://github.com/omarmdiab/private-files-chatbot
- Owner: OmarMDiab
- Created: 2024-05-31T08:02:31.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-08-05T04:23:00.000Z (11 months ago)
- Last Synced: 2025-08-05T06:21:19.490Z (11 months ago)
- Topics: chatbot, langchain, llm
- Language: Python
- Homepage:
- Size: 1.44 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Private files Chatbot
Using huggingface and langchain this app offers: -
- **Model Switching:** Easily switch between different Huggingface models as per your requirements.
- **Document Chat:** Chat with your documents, including `(CSV, DOCX, PPTX, PDF)` files. Upload your documents and start querying them.
**Chat with your CSV: -**

**Chat with you PDF: -**

**Note:** You need to add an `.env` file with your huggingface api token with `(Permission: write)` or you can just run with your local model but make sure to uncomment the LlamaCpp code block in `get_conversation_chain` and pass your Model path
## Run
```bash
streamlit run Chatgbt_Ghost.py
```
## Models Used
- hkunlp/instructor-xl (For Embeddings)
- google/flan-t5-xxl
- google/flan-t5-small
- google/flan-t5-base
- mistral-7b-instruct-v0.2.Q4_K_S (For local runs using LlamaCpp)
## Some Rules
- Switching models mid conversation **resets** the chat_history (your past questions)
- Files can be embedded as **text_based files** or **CSV files** not both. This resitriction was made to improve Response accuracy.
- Chat history is Disabled with CSV files, As we are only retreiving Data So, To ensure that the retreival is at its best accuracy and not confusing the model with past prompts values.