Commit Graph
2 Commits
Author SHA1 Message Date
rock 88027b1a72 feat: implement working ingest + query endpoints, graceful schema handling
INGEST PIPELINE:
- Entity extraction from [[wiki links]] working 
- Fact extraction from [[Entity]] verb [[Entity]] patterns working 
- Entities saved to production DB 
- Graceful handling of schema mismatches (temporal schema optional) 

QUERY ENDPOINT:
- Temporal graph query implemented 
- Returns proper structure: entities, edges, count, query, project 
- Supports both 'query' and 'question' parameters 
- Queries execute against production DB 

E2E STATUS:
- Health endpoint:  working
- Ingest endpoint:  accepts requests, extracts entities
- Query endpoint:  returns temporal graph structure
- Database integration:  entities persisted
- Schema compatibility:  gracefully skips temporal columns if not available

Next: Apply temporal schema migration to production DB to enable edge persistence
2026-09-08 12:22:49 -07:00
rock 43778f730f refactor(handlers): extract QueryParams + IngestParams to reduce complexity
query_handler refactored:
- Extract QueryParams struct with validation
- Extract SearchMethod enum
- Extract build_search_response helper
- Extract apply_rbac_filter helper
- Extract execute_hybrid_search helper
- Complexity: 14 → 6

ingest_handler helpers:
- Extract IngestParams struct with validation
- Extract IngestParamsError with responses
- Extract IngestResponse builder

New tests (18 total):
- QueryParams validation (10 tests)
- IngestParams validation (8 tests)

Total tests: 688 (was 670)
2026-09-03 09:12:38 -07:00