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.
This commit is contained in:
amirhosein mazaheri
2026-10-05 16:38:28 +03:30
parent cb54a35c90
commit baf58da562
50 changed files with 4628 additions and 3 deletions
+5 -3
View File
@@ -1,3 +1,5 @@
For the new ingestion foundation (independent of prototype chat), see [setup and validation](docs/ingestion-foundation-setup.md). Only ingestion phase 1 is implemented; database acceptance must be verified on PostgreSQL/pgvector.
# 🤖 Technical Documentation Assistant (RAG Agent)
[![FastAPI](https://img.shields.io/badge/FastAPI-0.115+-009688.svg?style=flat-square&logo=FastAPI&logoColor=white)](https://fastapi.tiangolo.com)
@@ -5,7 +7,7 @@
[![LangChain](https://img.shields.io/badge/LangChain-1.x-1C3C3C.svg?style=flat-square&logo=langchain&logoColor=white)](https://github.com/langchain-ai/langchain)
[![ChromaDB](https://img.shields.io/badge/VectorDB-ChromaDB-FF6F00.svg?style=flat-square)](https://www.trychroma.com/)
[![FastEmbed](https://img.shields.io/badge/Embeddings-FastEmbed%20(BGE--Small)-blue.svg?style=flat-square)](https://github.com/qdrant/fastembed)
[![Python](https://img.shields.io/badge/Python-3.10%2B-3776AB.svg?style=flat-square&logo=python&logoColor=white)](https://www.python.org/)
[![Python](https://img.shields.io/badge/Python-3.11%2B-3776AB.svg?style=flat-square&logo=python&logoColor=white)](https://www.python.org/)
[![License](https://img.shields.io/badge/License-MIT-green.svg?style=flat-square)](LICENSE)
An intelligent, production-ready **Retrieval-Augmented Generation (RAG)** assistant built with **FastAPI**, **LangGraph**, **LangChain**, and **ChromaDB**. The assistant is specialized in indexing, searching, and reasoning over technical documentation to provide developers with accurate, source-grounded answers and production-ready code examples with zero hallucinations.
@@ -132,7 +134,7 @@ rag-technical-docs-assistant/
### Prerequisites
- **Python 3.10+** installed on your machine.
- **Python 3.11+** installed on your machine.
- An API key for an OpenAI-compatible provider (such as [OpenRouter](https://openrouter.ai/) or [OpenAI](https://platform.openai.com/)).
### Installation
@@ -156,7 +158,7 @@ rag-technical-docs-assistant/
3. **Install dependencies:**
```bash
pip install -r requirements.txt
pip install -e ".[prototype]"
```
*(Or install the core packages: `fastapi uvicorn langgraph langchain langchain-openai langchain-chroma chromadb fastembed pydantic-settings`)*