Skip to content

feat: embed-only ingest + chunk-only ask (no-graph redesign, phase 1+2) - #87

Merged
arshadansari27 merged 2 commits into
mainfrom
no-graph-ingest
Jun 24, 2026
Merged

feat: embed-only ingest + chunk-only ask (no-graph redesign, phase 1+2)#87
arshadansari27 merged 2 commits into
mainfrom
no-graph-ingest

Conversation

@arshadansari27

Copy link
Copy Markdown
Owner

Phases 1 & 2 of the knowledge-service lazy-RAG redesign (design spec: aegis docs/superpowers/specs/2026-06-24-ks-lazy-rag-redesign-design.md).

Phase 1 — ingest is chunk + embed only. ingestion/worker.py runs EmbedPhase and stops. NLP pre-pass, LLM triple extraction, coreference, and process/graph phases are skipped (no triple_outbox writes, no inference, no provenance). This removes the per-item extraction load.

Phase 2 — ask is chunk-only multi-doc synthesis. api/ask.py always retrieves top-k chunks and synthesizes with citations. Intent classification, graph routing, noisy-or confidence, triple evidence, and contradictions are gone. AskResponse keeps answer/sources; graph-only fields are empty stubs for backward compat.

Not deleted yet (phase 3): ExtractPhase/ProcessPhase/coreference/inference/nlp/ontology and RAGRetriever graph methods remain in the tree, just unreachable from ingest/ask. All marked with ponytail: comments.

Tests: 33/33 pass (5 graph-behavior tests updated to chunk-only expectations). ruff check clean.

Merging builds :latest but does NOT auto-deploy — deploy is a separate service update --force aegis_knowledge.

🤖 Generated with Claude Code

@arshadansari27
arshadansari27 merged commit 1789a79 into main Jun 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant