Commit Graph
13 Commits
Author SHA1 Message Date
amirhosein mazaheri 39ed0422c5 feat(ingestion): implement Phase 4 chunking and vector embedding generation
- Add heading and paragraph-preserving chunking algorithms with bounded overlap
- Implement OpenAI embeddings client adapter with explicit token limits and batching
- Implement stage_document pipeline with strict operational limits and memory protections
- Add unit and integration tests covering chunking boundaries, timeouts, and vector generation
2026-10-07 16:21:17 +03:30
amirhosein mazaheri 5ef02d39a9 feat(ingestion): implement Phase 3 text extraction, OCR, and human review
- Add direct text, DOCX, and PDF text extraction with visual OCR fallback
- Implement Gemini and OpenRouter vision adapters with strict bounded retry
- Implement extraction envelopes, artifacts, and Unicode/Persian normalization
- Add human review workflow, candidate staging, and review repositories
- Add migration 0003_extraction_review for audit events and review tracking
- Add comprehensive unit and integration tests covering extraction and review contracts
2026-10-07 16:21:01 +03:30
amirhosein mazaheri b036912293 feat(ingestion): implement Phase 2 multi-format intake and raw storage
- Add format validation and inspection for PDF, DOCX, Markdown, Text, HTML, and images
- Implement secure decompression defenses (zip bombs, ratio checks) and image dimension limits
- Implement FileStore with content-addressable storage and intake repositories
- Add unit and integration tests for document intake, format sniffing, and storage roots
- Include sample acceptance document fixtures in data/documents/
2026-10-07 16:20:41 +03:30
amirhosein mazaheri 0a998ac94a feat(ingestion): extend domain types, ports, and configuration for ingestion pipeline
- Add ExtractedBlock, ExtractionEnvelope, and StagedDocument data models in types.py
- Define ingestion repository, file store, vision, and extraction ports in ports.py
- Extend IngestionSettings with limits, policies, vision, and embedding configuration
- Update database compatibility verification to support worker and review schema revisions
- Add PyMuPDF, Pillow, defusedxml, and tiktoken dependencies to pyproject.toml
2026-10-07 16:20:19 +03:30
amirhosein mazaheri ca8833dd2f docs: restructure documentation hierarchy and update agent reference map
- Organize architecture, specifications, plans, and guides into dedicated subdirectories under docs/
- Remove legacy and duplicate documents from data/documents/
- Update AGENTS.md, README.md, and agent skills to target canonical docs paths
2026-10-07 16:19:24 +03:30
amirhosein mazaheri baf58da562 feat(ingestion): add Phase 1 database and application foundation
Add the scoped PostgreSQL/pgvector schema, independent ingestion settings and ports, embedding profile checks, and trusted administrator bootstrap.

Include repository contracts and guidance, organized provider-free and PostgreSQL tests, deployment setup, and byte-preserving migration attributes.

Validation: 163 tests passed; all 48 PostgreSQL cases passed with pgvector Python 0.5.0 and 0.3.6. No production schema or historical metadata was changed.
2026-10-05 16:38:28 +03:30
11linear11 cb54a35c90 doc update 2026-08-31 07:13:50 -04:00
11linear11 15089dc0fe feat(api): add api rout chat 2026-08-31 06:56:30 -04:00
11linear11 d89b8e500e feat(rout): add router 2026-08-31 03:57:50 -04:00
11linear11 8387804442 feat(exec): add exec.py 2026-08-30 14:09:52 -04:00
11linear11 0d30af2d12 feat(retriever_tool): add retriever tool for agent 2026-08-30 10:32:38 -04:00
11linear11 52dfcd39a1 feat(retriever): implement doc processing and FastEmbed vector store indexing 2026-08-30 09:02:24 -04:00
Amir hossein MazaheriandGitHub d63786112d Initial commit 2026-08-28 09:21:00 -04:00