Skip to content

Repository files navigation

DocuMind

AI document intelligence platform with RAG, FastAPI, async workers, and pgvector.

Architecture

  • API: FastAPI + async SQLAlchemy
  • Workers: Celery + Redis
  • Embeddings: OpenAI + Amazon Bedrock adapters with factory selection
  • Retrieval: pgvector cosine similarity via RAG pipeline
  • Evaluation: golden eval harness with faithfulness, grounding, and MRR@k

Local setup

python -m venv .venv
.venv\Scripts\activate
pip install -e ".[dev]"
cp .env.example .env
python -m pytest tests/ -q

ADRs

  • pgvector over managed vector DBs: simpler topology, same ACID guarantees.
  • Celery/Redis over Airflow: direct FastAPI integration, lower ops overhead for ingestion frequency.
  • SQLAlchemy 2.0 async ORM with explicit table inserts for SQLite compatibility.

About

AI document intelligence platform with RAG, FastAPI, Celery/Redis workers, pgvector retrieval, eval harness, Docker Compose, k8s, and GitHub Actions CI

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages