Phase 0: TKG builder populate face_detections from face.json - Fix face.json parser for pose_angle format - Call store_traced_faces.py to set trace_id - Skip if trace_id already populated Phase 1: Qdrant face embeddings integration - Add FaceEmbeddingDb module (src/core/db/face_embedding_db.rs) - Create dev_face_embeddings collection (dim=512) - Store 1122 face embeddings with pose metadata - API: init_collection, batch_upsert, search_similar Rule2: TKG edges → relationship chunks - Design: RULE2_TKG_RELATIONSHIP_V1.0.md - Implementation: rule2_ingest.rs - ChunkType::Relationship added - Edge types: SPEAKS_AS, MUTUAL_GAZE, CO_OCCURS_WITH, HAS_APPEARANCE, WEARS - Auto-trigger on TKG rebuild API: - POST /api/v1/file/:file_uuid/rule2 (vectorization) - POST /api/v1/file/:file_uuid/tkg/rebuild (auto Rule2) Test: 75 relationship chunks created + vectorized
API Workspace
Purpose
This directory is the single source of truth for all API documentation modules.
Generated outputs go to ../GUIDES/ as assembled deliverable documents.
Workflow
# 1. Edit a module
vim modules/09_tmdb.md
# 2. Preview the generated output
make _build/API_ENDPOINTS.md
# 3. Check diff against current GUIDES/ content
make check
# 4. Deploy to GUIDES/
make deploy
# 5. Regenerate all
make all
Directory Structure
API_WORKSPACE/
├── modules/ ← 11 module files (01_auth ... 11_error_codes)
├── configs/ ← 7 assembly recipies (.toml)
├── narratives/ ← narrative intros for specific output files
├── _build/ ← generated output (gitignored)
├── Makefile ← build targets
├── assemble_docs.sh ← assembly engine
└── README.md
Available make Targets
| Target | Output |
|---|---|
make reference |
_build/API_REFERENCE.md |
make endpoints |
_build/API_ENDPOINTS.md |
make quickref |
_build/API_QUICK_REFERENCE.md |
make errors |
_build/API_ERROR_CODES.md |
make index |
_build/API_INDEX.md |
make marcom |
_build/API_TRAINING_MARCOM.md |
make tmdb |
_build/TMDb_User_Guide.md |
make all |
All of the above |
make deploy |
Copy _build/* → ../GUIDES/ |
make check |
diff against existing ../GUIDES/ files |
Adding a New Endpoint
- Add the endpoint to the appropriate module (e.g.,
modules/XX_files.md) - Follow the template in
modules/_template.md make all && make checkmake deploy