Prerequisites
Before installing DocMind, ensure you have:- Python 3.13 or higher
- pip package manager
- Git (optional, for cloning the repository)
Installation Steps
Install Dependencies
DocMind uses Poetry for dependency management. The core dependencies are defined in Install using pip:
pyproject.toml:pyproject.toml
Set Up Project Structure
DocMind follows this structure:All files should be in the same directory for proper imports.
Dependency Details
LangGraph (>=1.0.7)
LangGraph (>=1.0.7)
LangGraph is the core orchestration framework for DocMind. It provides:
- StateGraph: State management across workflow nodes
- Conditional routing: Retry logic based on judge verdicts
- Async execution: Efficient async/await patterns
workflow.py:6-34 to build the document intelligence workflow.Pytest (>=9.0.2)
Pytest (>=9.0.2)
Pytest is used for the comprehensive test suite covering:
- Strategic retrieval tests (Test Set A)
- LLM-as-Judge evaluation tests (Test Set B)
- End-to-end workflow tests (Test Set C)
Troubleshooting
Common Issues
Import errors with relative imports Ensure all files are in the same directory. The project uses relative imports:starter.py
Next Steps
Running Queries
Learn how to run queries and interpret results
Testing
Run the comprehensive test suite