title | emoji | sdk | sdk_version | app_file | pinned |
---|---|---|---|---|---|
InkChatGPT |
📚 |
streamlit |
1.33.0 |
app.py |
true |
📚 InkChatGPT - Chat with Documents
InkChatGPT
is a Streamlit
application that allows users to upload PDF documents and engage in a conversational Q&A with a language model (LLM
) based on the content of those documents.
--
New front end via Chainlit https://github.com/vinhnx/InkChatGPT/tree/try_chainlit
--
- Upload any documents and start asking key information about it, currently supports: PDF, TXT, DOCX, EPUB
- Limit 200MB per file
- Conversational Q&A with LLM (powered by
OpenAI
'sgpt-3.5-turbo
model) HuggingFace
embeddings to generate embeddings for the document chunks withall-MiniLM-L6-v2
model.VectorDB
for document vector retrieval storage
- Python 3.7 or later
- OpenAI API key (set as an environment variable:
OPENAI_API_KEY
)
- Clone the repository:
git clone https://github.com/vinhnx/InkChatGPT.git
cd InkChatGPT
- Setup Virtual Environment We recommend setting up a virtual environment to isolate Python dependencies, ensuring project-specific packages without conflicting with system-wide installations.
python3 -m venv venv
source venv/bin/activate
- Install the required dependencies:
pip install -r requirements.txt
- Set the
OPENAI_API_KEY
environment variable with your OpenAI API key:
export OPENAI_API_KEY=YOUR_API_KEY
- Run the Streamlit app:
streamlit run app.py
- Upload PDF documents and start chatting with the LLM!
Contributions are welcome! Please open an issue or submit a pull request if you have any improvements or bug fixes.
This project is licensed under the MIT License.