Skip to content

feat: delete knowledge-graph layer (phase 3 — pyoxigraph/spaCy removed) - #89

Merged
arshadansari27 merged 2 commits into
mainfrom
phase3-graph-delete
Jun 24, 2026
Merged

feat: delete knowledge-graph layer (phase 3 — pyoxigraph/spaCy removed)#89
arshadansari27 merged 2 commits into
mainfrom
phase3-graph-delete

Conversation

@arshadansari27

Copy link
Copy Markdown
Owner

Phase 3 of the no-graph redesign: delete the now-dead graph layer entirely.

Removed: pyoxigraph triple store, spaCy NLP, ontology bootstrap/registry/namespaces, reasoning/inference, triple-extraction (ExtractionClient), coreference, the triple-processing ingest pipeline, outbox drainer, maintenance normalizer, and the graph API endpoints (knowledge/claims/contradictions/changes). pyoxigraph, spacy, python-igraph dropped from deps; spaCy model download dropped from the Dockerfile.

Kept (chunk-only RAG): content/chunk store (pgvector+hybrid), chunking, parsing, EmbeddingClient, search, chunk-only ask synthesis, eval harness, ontology/uri.py (pure URI helper).

Reviewer note: the spawning agent skipped its own gates and left the app non-importable (broken admin/stats.py), the ingest path crashing on stores.entities, the RAG prompt builder referencing knowledge_triples, and the Dockerfile still downloading spaCy. All fixed here. Verified locally: 305 tests pass, ruff check+format clean, app imports, docker image builds (~11s, much slimmer).

🤖 Generated with Claude Code

…kerfile/tests

Fork left the app non-importable and the image unbuildable; this completes it:
- admin/stats.py rewritten (counts+content-items only; SPARQL endpoints removed)
- api/content.py ingest path no longer references deleted stores.entities/extraction
- run_ingestion signature trimmed to (job_id, content_id, chunk_records, stores, embedding_client)
- clients/rag.py prompt builder is chunk-only (no triples/contradictions)
- health/admin entity routes stubbed; eval/runner chunk-only
- Dockerfile: drop spaCy model download (spaCy removed from deps)
- tests: delete graph-only suites, fix surviving ingest/ask/health/stats/config tests

Gates: 305 passed, ruff clean, app imports, docker image builds.
@arshadansari27
arshadansari27 merged commit 62fc388 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