How saatvika04/course_eligibility_reasoner works
This repository provides a course-eligibility knowledge-base module, two reasoning paths, and a command-line query workflow, with a separate evaluation and benchmarking workflow. The CLI loads and checks a knowledge base, invokes forward or backward reasoning, and presents an eligibility verdict and trace. Predicate conversion and KB validation are distinct internal layers. The README documents the standalone stub prover and KB generation; source excerpts show evaluation, metrics, and plotting calls. Some benchmark details and data-file internals were not sampled, so their relationships are limited to explicit references.
Main entry points: evaluate.py Evaluation runner · cli.py Eligibility CLI · kb_loader.py KB load and validation · reasoning_engine.py Forward and backward reasoning
Components 14
Knowledge base
- KB load and validation
kb_loader.py - Demo knowledge base
data/knowledge_base.json - Synthetic KB generation
generate_kb.py
Reasoning
- Predicate conversion
to_predicates.py - Forward and backward reasoning
reasoning_engine.py - Stub backward prover
stub_engine.py
Evaluation and benchmarks
- Labelled eligibility cases
evaluation_cases.py - Evaluation runner
evaluate.py - Benchmark runner
benchmark.py - Timing and result metrics
metrics.py - Benchmark plots
plot_results.py - Evaluation and benchmark CSVs
results
User interface
- Eligibility CLI
cli.py
Other components
- Course query user
Connections 15
- Course query user → Eligibility CLI: submits query
README.md - Eligibility CLI → KB load and validation: loads and checks
cli.py - Eligibility CLI → Forward and backward reasoning: invokes algorithm
cli.py - Eligibility CLI → KB load and validation: checks cycles
cli.py - Demo knowledge base → KB load and validation: loaded as KB
README.md - Forward and backward reasoning → Predicate conversion: converts KB
reasoning_engine.py - Stub backward prover → Predicate conversion: converts KB
stub_engine.py - Synthetic KB generation → KB load and validation: saves through
generate_kb.py - Evaluation runner → Labelled eligibility cases: builds cases
evaluate.py - Evaluation runner → Forward and backward reasoning: runs algorithms
evaluate.py - Evaluation runner → Benchmark runner: runs benchmarks
evaluate.py - Evaluation runner → Timing and result metrics: measures calls
evaluate.py - Evaluation runner → Benchmark plots: generates plots
evaluate.py - Evaluation runner → Evaluation and benchmark CSVs: writes results
- Benchmark plots → Evaluation and benchmark CSVs: reads benchmark CSV
plot_results.py