โœจ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

Logo

DOC TALK - AI ๐Ÿง 

DOC TALK - AI is an interactive application that allows users to chat with their documents using artificial intelligence. With this tool, you can ask questions about your files and receive instant answers, eliminating the need to manually search through them. The project is developed in Python and utilizes Streamlit to provide a user-friendly and intuitive interface.

๐Ÿš€ Features

  • ๐Ÿ“„ Supports multiple document formats (PDF, TXT, DOCX, etc.)
  • ๐Ÿ” Intelligent search within uploaded files
  • ๐Ÿง  Integration with local and cloud AI models
  • ๐ŸŒ Compatible with OpenAI GPT, Gemini AI, and more
  • ๐Ÿ’พ Stores interaction history for quick reference
  • ๐Ÿ”ง Simple and flexible configuration
  • ๐ŸŒ Easy-to-use web interface built with Streamlit

๐Ÿ“ฅ Installation

1. Clone the Repository

git clone https://github.com/paulocoutinhox/doc-talk-ai.git
cd doc-talk-ai

2. Create a Virtual Environment

python3 -m venv .venv
source .venv/bin/activate  # macOS/Linux
.venvScriptsactivate     # Windows

3. Install Dependencies

pip install -r requirements.txt

4. Run the Application

python3 -m streamlit run app.py

โš™๏ธ Configuration

1. Set Credentials for Cloud AI Models

If you want to use OpenAI GPT, Gemini AI, or other cloud models, add your API keys to the configuration file.

๐Ÿ“– See the detailed guide: ๐Ÿ“Œ Cloud Models Configuration

2. Set Custom Root Directory (Optional)

If you want to change the directory where data is stored, define the environment variable:

Linux/macOS

export DOC_TALK_AI_ROOT="/custom/path"

Windows (Command Prompt)

set DOC_TALK_AI_ROOT="C:custompath"

Windows (PowerShell)

$env:DOC_TALK_AI_ROOT="C:custompath"

๐Ÿ› ๏ธ Usage

  1. Run the Application

    python3 -m streamlit run app.py
    
  2. In the Web Interface, follow these steps:

    • Upload a document you want to interact with
    • Select an AI model (cloud or local)
    • Ask questions in natural language about the document
    • Receive AI-generated responses instantly ๐ŸŽฏ

๐Ÿ“‚ Project Structure

doc-talk-ai/
โ”‚
โ”œโ”€โ”€ README.md               # Project documentation
โ”œโ”€โ”€ app.py                  # Main entry point
โ”œโ”€โ”€ requirements.txt        # Core dependencies
โ”‚
โ”œโ”€โ”€ data/                   # Data storage
โ”‚   โ”œโ”€โ”€ chroma-db/          # Vector database
โ”‚   โ”œโ”€โ”€ uploads/            # Uploaded documents
โ”‚
โ”œโ”€โ”€ docs/                   # Additional documentation
โ”‚
โ”œโ”€โ”€ extras/                 # Additional resources
โ”‚   โ””โ”€โ”€ images/             # Logos and screenshots
โ”‚
โ”œโ”€โ”€ helpers/                # Utility functions
โ”‚   โ”œโ”€โ”€ file.py             # File handling
โ”‚   โ”œโ”€โ”€ model.py            # Model management
โ”‚   โ”œโ”€โ”€ prompt.py           # Prompt generation
โ”‚   โ””โ”€โ”€ string.py           # String utilities
โ”‚
โ”œโ”€โ”€ lang_chain/             # AI logic and document processing
โ”‚   โ””โ”€โ”€ document_chat.py    # Core logic for document interaction
โ”‚
โ”œโ”€โ”€ models/                 # AI model implementations
โ”‚   โ”œโ”€โ”€ base_model.py       # Base class for AI models
โ”‚   โ”œโ”€โ”€ gemini_model.py     # Gemini AI integration
โ”‚   โ””โ”€โ”€ openai_model.py     # OpenAI GPT integration

๐Ÿค Contributing

Want to improve the project? Follow these steps:

  1. Fork the repository
  2. Create a branch for your feature (git checkout -b my-feature)
  3. Commit your changes (git commit -m "Added new feature")
  4. Push to GitHub (git push origin my-feature)
  5. Open a Pull Request ๐Ÿš€

๐Ÿ“ž Contact

For questions or suggestions, reach out: ๐Ÿ’Œ paulocoutinhox@gmail.com ๐Ÿ”— GitHub

๐Ÿ–ผ๏ธ Screenshots

๐Ÿ“œ License

MIT

Copyright ยฉ 2025, Paulo Coutinho

Featured Templates

View More
AI Engineering
Python Bug Fixer
119 1433
AI Characters
Your Speaking Avatar
169 928
AI Characters
Sarcastic AI Chat Bot
129 1713
AI Assistants
Image to text with Claude 3
152 1366

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.