How advanced-ml-engineering/portfolio-rag-api works
This repository is currently a FastAPI backend skeleton for the “Ask About Me” portfolio RAG assistant. Its implemented user-to-result workflow is a health request routed through the app to live Qdrant and DynamoDB checks, with an optional G4F check, then a typed health response. The README also documents planned ingestion, cited chat, and admin capabilities; those are shown as planned subsystems, not implemented call paths. Source excerpts support the health relationships; planned links are dashed and unverified.
Main entry points: routers/health.py Health endpoint · services/health.py Dependency checks · routers Chat endpoint · main.py FastAPI app
Components 20
API runtime
- Vercel entrypoint
api/index.py - FastAPI app
app/main.py - Application settings
app/config.py
Health checks
- Health endpoint
app/routers/health.py - Dependency checks
app/services/health.py - Health response models
app/schemas.py - Cached service clients
app/services/clients.py - G4F wrapper
app/services/llm.py
RAG capabilities
- GitHub repositories
- Ingestion
app/services - Chunking and indexing
app/services - Document metadata
app/services - Chat endpoint
app/routers - Context retrieval
app/services - Cited answer
app/schemas.py
Administration
- Admin login and endpoints
app/routers
Other components
- API caller
- Qdrant Cloud
- DynamoDB
- G4F provider
Connections 23
- API caller → Vercel entrypoint: requests
api/index.py - Vercel entrypoint → FastAPI app: loads app
api/index.py - FastAPI app → Health endpoint: registers router
app/main.py - FastAPI app → Application settings: loads settings
app/main.py - Health endpoint → Dependency checks: runs checks
app/routers/health.py - Health endpoint → Application settings: reads settings
app/routers/health.py - Health endpoint → Health response models: returns model
app/routers/health.py - Dependency checks → Application settings: reads settings
app/services/health.py - Dependency checks → Cached service clients: gets clients
app/services/health.py - Cached service clients → Qdrant Cloud: checks collections
- Cached service clients → DynamoDB: describes table
- Dependency checks → G4F wrapper: checks deeply
app/services/health.py - G4F wrapper → G4F provider: requests completion
app/services/llm.py - GitHub repositories → Ingestion: supplies repositories
README.md - Ingestion → Chunking and indexing: chunks documents
README.md - Chunking and indexing → Qdrant Cloud: upserts vectors
README.md - Ingestion → Document metadata: stores metadata
README.md - API caller → Chat endpoint: asks question
README.md - Chat endpoint → Context retrieval: retrieves context
README.md - Context retrieval → Qdrant Cloud: searches vectors
README.md - Chat endpoint → G4F wrapper: generates answer
README.md - Chat endpoint → Cited answer: returns citations
README.md - API caller → Admin login and endpoints: admin requests
README.md