https://github.com/rb81/docuchat
A simple Terminal RAG app that only uses Ollama for total privacy.
https://github.com/rb81/docuchat
document-chat llama local-llm ollama privacy rag retrieval-augmented-generation
Last synced: 5 months ago
JSON representation
A simple Terminal RAG app that only uses Ollama for total privacy.
- Host: GitHub
- URL: https://github.com/rb81/docuchat
- Owner: rb81
- License: mit
- Created: 2024-07-28T10:11:25.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-16T20:38:18.000Z (over 1 year ago)
- Last Synced: 2025-02-14T11:02:43.463Z (over 1 year ago)
- Topics: document-chat, llama, local-llm, ollama, privacy, rag, retrieval-augmented-generation
- Language: Python
- Homepage:
- Size: 1.03 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DocuChat

DocuChat is a simple Terminal RAG (Retrieval-Augmented Generation) application that allows you to talk to your files in complete privacy. Using Ollama, both the embedding and inference happens locally.
## Features
- **Document Processing**: Automatically processes PDF, TXT, and DOCX files from multiple directories.
- **Source Switching**: Quickly and easily switch source folders, or access all your sources together.
- **Intelligent Indexing**: Creates and maintains an efficient index of document content for quick retrieval.
- **Natural Language Queries**: Allows users to ask questions in natural language about the content of their documents.
- **Citation Support**: Provides citations for information sources, linking responses directly to document pages.
- **Conversation Tracking**: Saves transcripts of conversations for future reference.
- **User-Friendly Interface**: Offers a clean, color-coded command-line interface for easy interaction.
## Prerequisites
- Python 3.8+
- Ollama (for running the LLM locally)
## Installation
1. Clone the repository:
```
git clone https://github.com/rb81/docuchat.git
cd docuchat
```
2. Install the required dependencies:
```
pip install -r requirements.txt
```
3. Configure the application by modifying the `config.py` file with your settings.
## Usage
1. Ensure Ollama is running with your chosen model.
2. Run the DocuChat application:
```
python main.py
```
3. Start chatting! Ask questions about your documents, and DocuChat will provide answers with relevant citations.
4. Type `/source` to switch the source folder anytime (must be configured in the `config.py` file).
5. Type `/quit` to exit the application and save your conversation transcript.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Transparency Disclaimer
[ai.collaboratedwith.me](https://ai.collaboratedwith.me) in creating this project.