Commit Graph

16 Commits

Author SHA1 Message Date
Accusys
2cfcfdd1af feat: Phase 2.6 edges migration to Qdrant (TKG-only architecture)
Phase 2.6.1: co_occurrence_edges migration
- build_co_occurrence_edges_from_qdrant()
- Qdrant embeddings → frame grouping → YOLO objects
- Result: 6679 edges (vs 6701 PostgreSQL)

Phase 2.6.2: face_face_edges migration
- build_face_face_edges_from_qdrant()
- Qdrant embeddings → frame grouping → face pairs
- mutual_gaze detection preserved
- Result: 6 edges (exact match)

Phase 2.6.3: speaker_face_edges migration
- build_speaker_face_edges_from_qdrant()
- Qdrant embeddings → trace_id frame ranges
- SPEAKS_AS edge creation

Architecture:
- All edges use Qdrant payload (no face_detections queries)
- PostgreSQL fallback for empty Qdrant
- Estimated 3.6x performance improvement

Testing:
- Playground (3003): ✓ All Phase 2.6 logs verified
- Edge counts: ✓ Close match with PostgreSQL
- Fallback: ✓ Working

Docs:
- docs_v1.0/DESIGN/TKG_PHASE2_6_EDGES_MIGRATION.md
- docs_v1.0/M4_workspace/2026-06-21_phase2_6_test.md
2026-06-21 04:47:49 +08:00
Accusys
3ad6f8740a feat: Rule2 TKG relationship chunks + Phase0-1 Qdrant integration
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
2026-06-21 00:22:41 +08:00
Accusys
e1572907ae feat: ASRX hybrid pipeline, identity history, worker fixes, checkpoint system 2026-06-02 07:13:23 +08:00
Accusys
8fdd1d741b fix: stranger_id=NULL on bind/merge; doc: add traces+mergeinto endpoints 2026-05-25 03:03:27 +08:00
Accusys
a78b5bc12b docs: add agents/search endpoint to 12_agent.md 2026-05-22 12:26:11 +08:00
Accusys
832dc2c45b docs: add bind/trace endpoint to 07_identity.md 2026-05-22 10:41:34 +08:00
Accusys
f6a24e8cb5 docs: thumbnail auto-detect + representative-frame endpoint in 08_media.md; sync wasm 2026-05-22 09:56:10 +08:00
M5Max128
2b025a014e docs: add PATCH identity endpoint doc + BCP 47 alias reference 2026-05-22 08:56:07 +08:00
Accusys
6db29fc0e8 docs: add co-occur-with endpoint to 08_media.md 2026-05-22 05:35:24 +08:00
Accusys
6378d7be89 docs: add thumbnail endpoint to 08_media.md 2026-05-22 04:58:43 +08:00
Accusys
d7e11a394f docs: add representative-face endpoint to 08_media.md 2026-05-22 04:51:16 +08:00
Accusys
8b53e815b8 docs: fix 3003 reference in pipeline module, regenerate HTML/WASM 2026-05-19 23:22:09 +08:00
Accusys
c9bcdcb56a docs: regenerate HTML/WASM docs with video vs clip comparison + timestamps 2026-05-19 12:51:10 +08:00
Accusys
3085a7d048 docs: regenerate HTML/WASM docs after adding 13_config module 2026-05-19 03:06:39 +08:00
Accusys
2335781390 docs: extract config module (13_config.md) from pipeline module 2026-05-19 03:05:45 +08:00
Accusys
6452ac5af2 feat: WASM-based doc viewer (pulldown-cmark) 2026-05-18 10:07:38 +08:00