Skip to content

A smart AI-powered application to extract, reorganize, and interact with file content, converting it into clean Markdown format using OpenAI and Streamlit.

License

Notifications You must be signed in to change notification settings

AhmedZeyadTareq/Smart-markdown-Extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 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

Note:
Ensure Tesseract OCR is installed in your system for OCR extraction to work:

👨‍💻 Developed By

Ahmed Zeyad Tareq

  • 🎓 Master's in Artificial Intelligence Engineering
  • 📌 Data Scientist, AI Developer
  • GitHub | LinkedIn | Kaggle

Enjoy smart document interaction!

About

A smart AI-powered application to extract, reorganize, and interact with file content, converting it into clean Markdown format using OpenAI and Streamlit.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages