How sriganesh-123/kairix-v2 works
KAIRIX turns legacy COBOL, SQL, and SSIS artifacts into evidence-backed knowledge packages, indexes them in Neo4j and Qdrant, and supports analyst investigation through a Streamlit workbench. The graph preserves the documented seven-stage extraction workflow and the separate graph, vector, and query branches. Some subsystem relationships are based on the README rather than sampled implementation; those evidence limits are reflected in the cited paths.
Main entry points: reconciliation_engine.py Reconciliation · vector_ingestion.py Vector ingestion · parsers Deterministic parsers · artifact_reviewer.py Artifact review
Components 24
Legacy inputs
- Legacy artifacts
Knowledge engineering
- Source classification
knowledge_engineering_agent/services/source_classifier.py - Deterministic parsers
parsers - Line evidence
knowledge_engineering_agent/services/parser_evidence.py - Artifact review
knowledge_engineering_agent/services/artifact_reviewer.py - Knowledge extraction
knowledge_engineering_agent/services/knowledge_extractor.py - Reconciliation
knowledge_engineering_agent/services/reconciliation_engine.py - Canonical packages
knowledge_engineering_agent/services/canonical_builder.py - LLM provider
knowledge_engineering_agent/llm/base.py
Knowledge stores
- Graph loader
graph_layer/graph_loader.py - Relationship discovery
graph_layer/relationship_discovery_agent.py - Neo4j graph
graph_layer/neo4j_client.py - Vector ingestion
vector_layer/vector_ingestion.py - Embedding model
vector_layer/embedder.py - Qdrant index
vector_layer/qdrant_client_wrapper.py
Investigation
- Investigation agent
investigation_agent/agent.py - Structured extraction
investigation_agent/structured_extractor.py
Analyst workbench
- Streamlit app
ui/app.py - Investigation view
ui/views/investigation.py - Investigation service
ui/services/investigation_service.py - Pipeline view
ui/views/pipeline.py - Pipeline service
ui/services/pipeline_service.py - Source service
ui/services/source_service.py
Other components
- Analyst
Connections 28
- Legacy artifacts → Source classification: classifies
- Source classification → Deterministic parsers: routes to
- Deterministic parsers → Line evidence: builds evidence
- Line evidence → Artifact review: supports review
- Artifact review → Knowledge extraction: informs
- Knowledge extraction → Reconciliation: reconciles with
- Deterministic parsers → Reconciliation: supplies parser facts
knowledge_engineering_agent/services/reconciliation_engine.py - Reconciliation → Canonical packages: builds package
- Artifact review → LLM provider: uses
knowledge_engineering_agent/services/artifact_reviewer.py - Knowledge extraction → LLM provider: uses
knowledge_engineering_agent/services/knowledge_extractor.py - Reconciliation → LLM provider: requests completion
knowledge_engineering_agent/services/reconciliation_engine.py - Canonical packages → Graph loader: loads package
- Graph loader → Neo4j graph: writes graph
- Graph loader → Relationship discovery: precedes matching
- Canonical packages → Vector ingestion: indexes package
- Legacy artifacts → Vector ingestion: chunks source
- Vector ingestion → Embedding model: creates embeddings
vector_layer/vector_ingestion.py - Vector ingestion → Qdrant index: upserts vectors
vector_layer/vector_ingestion.py - Analyst → Investigation view: asks question
- Streamlit app → Investigation view: routes to
ui/app.py - Streamlit app → Pipeline view: routes to
ui/app.py - Investigation view → Investigation service: calls
ui/views/investigation.py - Investigation service → Investigation agent: queries
ui/services/investigation_service.py - Investigation service → Structured extraction: extracts sections
ui/services/investigation_service.py - Investigation agent → Neo4j graph: traverses graph
- Investigation agent → Qdrant index: searches vectors
- Pipeline view → Pipeline service: starts pipelines
ui/views/pipeline.py - Pipeline view → Source service: lists source files
ui/views/pipeline.py