Thanks to visit codestin.com
Credit goes to github.com

Skip to content

wilfrid51/ai-file-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 AI File Chat

A smart application for full document extraction, reorganization, and Q&A interaction — powered by OpenAI and Streamlit.

🚀 Features

  • Upload Files: Supports .pdf, .txt, .jpg, .png.
  • Smart Extraction:
    • Attempts structured extraction via MarkItDown.
    • Falls back to OCR (Tesseract) if necessary.
  • Content Reorganization:
    • Reorganizes messy extracted text into clean Markdown via OpenAI model (gpt-4.1-mini).
  • Interactive Q&A:
    • Ask direct questions about the uploaded content.
    • Receives precise and concise answers instantly.
  • Download Reorganized Files:
    • Save the cleaned-up Markdown as a .txt file.
  • User-Friendly Interface:
    • Built with Streamlit for ease of use and beautiful layout.
    • Sidebar contains author links and branding.

📂 Supported File Types

  • PDF documents (.pdf)
  • Text files (.txt)
  • Image files (.jpg, .jpeg, .png, .bmp, .tiff)

🛠️ How It Works

  1. Upload a file.
  2. Start extraction and display the extracted text.
  3. Reorganize the text into structured Markdown.
  4. Ask questions about the content.
  5. Download the reorganized content.

📎 Requirements

Install the dependencies:

pip install streamlit openai tiktoken markitdown pytesseract pymupdf pillow

Enjoy smart document interaction!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages