DocQuery is an AI-powered document platform to extract, analyze, and retrieve information from documents efficiently.
- Python FastAPI
- Uvicorn (Application Server)
- Tesseract OCR
- LangChain and Ollama for LLM inference
- RecursiveCharacterTextSplitter for document chunking
- Hugging Face Embedding Model:
all-MiniLM-L6-v2 - ChromaDB for vector storage
- Flutter
Create a virtual environment:
python -m venv .venv.venv\Scripts\activate.batsource .venv/bin/activateInstall the required Python packages:
pip install -r requirements.txtDocQuery uses Tesseract OCR to extract text from images and scanned documents.
If Tesseract is installed and available in your system PATH, the application will detect it automatically.
Installation Instructions
macOS
brew install tesseractLinux
sudo apt update -y
sudo apt install tesseract-ocrWindows
Install Tesseract using the official installer:
https://github.com/UB-Mannheim/tesseract/wiki
After installation, ensure that the Tesseract installation directory is added to your system PATH.
If you prefer to use a specific Tesseract installation, create a .env file inside the backend/ directory and specify the executable path:
tesseract_path="C:\Path\To\Your\tesseract.exe"Confirm that Tesseract is installed correctly by running:
tesseract --versionFor API usage examples and integration details, refer to Documentation
This project is licensed under the MIT License. See the LICENSE file for details.