{
  "schema_version": 1,
  "repository": "https://github.com/khoj-ai/khoj",
  "commit": "ae229ca894c0b80ad84664afcfdde523b5e87057",
  "source_archive": "https://codeload.github.com/khoj-ai/khoj/tar.gz/ae229ca894c0b80ad84664afcfdde523b5e87057",
  "archive_sha256": "0f5f46ed6a15fa635db10cbdbf99455ece1103a31dee301b8be8457a38cd277a",
  "source_file": {
    "path": "tests/evals/eval.py",
    "sha256": "2eafdac88e4e1487302a4260d595295ca45dd997019aa62a657114831dd758df",
    "url": "https://github.com/khoj-ai/khoj/blob/ae229ca894c0b80ad84664afcfdde523b5e87057/tests/evals/eval.py"
  },
  "objective_sources": [
    "https://github.com/khoj-ai/khoj/blob/ae229ca894c0b80ad84664afcfdde523b5e87057/README.md#overview",
    "https://github.com/khoj-ai/khoj/blob/ae229ca894c0b80ad84664afcfdde523b5e87057/tests/evals/eval.py#L393"
  ],
  "licence": {
    "name": "GNU Affero General Public License v3",
    "url": "https://github.com/khoj-ai/khoj/blob/ae229ca894c0b80ad84664afcfdde523b5e87057/LICENSE"
  },
  "sdk": "evaluation-workflow-sdk",
  "initial_public_sdk_version": "0.4.0",
  "release_candidate_version": "0.7.1",
  "report_date": "2026-10-30",
  "context_origin": "Automatically extracted by the installed 0.7.1 SDK from the pinned archive. No TaskBrief, --task-context or manual requirements were supplied.",
  "generation": "All displayed findings are generated by the shared SDK rules. No finding was hand-edited, added or omitted from the generated report.",
  "review": "An AI reviewer read every displayed finding against the pinned source before publication. This is not a founder review, customer testimonial, measured benchmark or endorsement by Khoj.",
  "execution": "Only the Keemlo scanner was executed. Target application code, target dependencies and target evaluations were not imported, installed or executed. No model API calls were made.",
  "measurement": "No runtime quality, latency or cost improvement has been measured in this example.",
  "findings": [
    {
      "title": "Retrieval relevance",
      "line": 428,
      "symbol": "evaluate_response_for_ir",
      "verified_source_lines": [
        393,
        428
      ],
      "observed": "Precision, recall and F1 are computed at lines409-411. The returned scalar is recall at line428. The selected evaluator result is stored as evaluation_decision at lines540-549 and averaged at lines680-681.",
      "interpretation": "Returning more unrelated documents does not lower recall when the expected documents remain retrieved.",
      "limit": "Precision and F1 are preserved in the textual explanation at lines413-418. Do not claim they are entirely absent or that the application actually has low-quality retrieval.",
      "source_url": "https://github.com/khoj-ai/khoj/blob/ae229ca894c0b80ad84664afcfdde523b5e87057/tests/evals/eval.py#L409"
    },
    {
      "title": "Model-based judging",
      "line": 470,
      "symbol": "evaluate_response_with_gemini",
      "verified_source_lines": [
        466,
        516
      ],
      "observed": "The evaluation prompt contains query, agent_response and ground_truth. The agent_references parameter is not used in the body. A request sends that prompt to a Gemini generateContent endpoint at lines482-494.",
      "interpretation": "The prompt checks agreement with a reference answer but does not directly check support in the provided source references.",
      "limit": "This is a limit relative to a grounded-answer product objective, not proof of an incorrect benchmark metric. Reference-answer agreement remains a valid measure.",
      "source_url": "https://github.com/khoj-ai/khoj/blob/ae229ca894c0b80ad84664afcfdde523b5e87057/tests/evals/eval.py#L466"
    },
    {
      "title": "Answer matching",
      "line": 450,
      "symbol": "evaluate_response_with_mcq_match",
      "verified_source_lines": [
        434,
        460
      ],
      "observed": "The first pattern matches Answer: [A-D]. re.search takes the first match. The loop extracts group1 and breaks before looking at later patterns or later answers.",
      "interpretation": "An authored hypothetical response Answer: A. Correction: Answer: B is matched from A. This follows directly from source and Python regex semantics; it is not an observed model output.",
      "source_url": "https://github.com/khoj-ai/khoj/blob/ae229ca894c0b80ad84664afcfdde523b5e87057/tests/evals/eval.py#L440"
    },
    {
      "title": "Reported evaluation score",
      "line": 680,
      "symbol": "main",
      "verified_source_lines": [
        678,
        697
      ],
      "observed": "Rows with missing evaluation_decision are dropped before mean at lines680-681. Missing decisions can result from evaluator exceptions at lines514-516 or empty agent responses at lines535-538. Raw rows are saved at lines705-707.",
      "interpretation": "The mean applies only to scored cases. Failure rate and scored count need to accompany that score when comparing system configurations.",
      "limit": "Raw missing decisions are not deleted from the original results. The report does not measure error frequency or assert difficult requests actually failed.",
      "source_url": "https://github.com/khoj-ai/khoj/blob/ae229ca894c0b80ad84664afcfdde523b5e87057/tests/evals/eval.py#L680"
    }
  ],
  "scan": {
    "python_files_analysed": 250,
    "total_files_analysed": 261,
    "skipped_files": 441,
    "credential_paths_skipped": 5,
    "unsupported_file_types": 436,
    "truncated": false,
    "parse_errors": 0,
    "inventory_mode": "filesystem",
    "exclusion_note": "Five credential paths and 436 unsupported file types were excluded. Filesystem mode does not apply Git ignore rules. The previous source snapshot counted 433 unsupported files; no additional Python analysis was claimed from that difference."
  },
  "public_install_verified": {
    "python": "3.12.14",
    "source": "https://keemlo.com/downloads/evaluation_workflow_sdk-0.4.0-py3-none-any.whl",
    "result": "Installed in fresh venv with zero runtime dependency packages. CLI --help and a complete Khoj JSON/HTML scan succeeded."
  },
  "release_wheel_sha256": "6a677c631e4708a213d33fe0d52956f791f818e5adc74acc9f03a52e2ef05364",
  "sdk_source_hashes": {
    "src/evaluation_sdk/__init__.py": "f22a5c635e25271165b733b41c025380cc0a50c829751f6b59d433b2145b2cdb",
    "src/evaluation_sdk/discovery/__init__.py": "98ace6520eb45e0ecf2201acb40b7c93e302bacb22aa3d396b4c5f55f35ec3e2",
    "src/evaluation_sdk/discovery/behaviour.py": "0c96b940520afc1a15b911b65ab4ded24223dfbbf0c9fde23836c1116fb3b7b8",
    "src/evaluation_sdk/discovery/cli.py": "54e0eac36110a88900d546e9f6bc41367fad4c720dbb7fb1596e9d78af9d7ebb",
    "src/evaluation_sdk/discovery/evaluation_findings.py": "ec66820e831e18bddb61511e86cf12fc65efd96022c8448ec68ba1ebba02678d",
    "src/evaluation_sdk/discovery/inventory.py": "384739ae26f8852c137414a269edccb091f3590ba6b1b36a6d78998fc13e8040",
    "src/evaluation_sdk/discovery/models.py": "fe9e0af31f27f61f179ccaa3dce46c1750eccc6cb646e0a0e3dfee0cced11e1f",
    "src/evaluation_sdk/discovery/python_analysis.py": "4cde5f8bed061d24ee025a9674425240cf30d0560aba3398c0305deefbecefcc",
    "src/evaluation_sdk/discovery/quality.py": "c138cafecd9cf1a11922157cf8a3a3fc61889c07f63d8681a79010fc7b0b69d1",
    "src/evaluation_sdk/discovery/report_delivery.py": "fb0a33f9f011e2f0cb4e44983d1326ee9610ac05eb464370abdc93098e2606bc",
    "src/evaluation_sdk/discovery/report_html.py": "6271371a6b67a4aa2bba62ce9e9f3f90ba7b431f6a6aa55260f260b6d94563ba",
    "src/evaluation_sdk/discovery/reporting.py": "0d51bb90b3f0526d859f1c0074d3b33595ec9a7e4845702ecd8e4fb1e6e226f6",
    "src/evaluation_sdk/discovery/task_context.py": "5e3bc013091b6b8cd8564edc85b59aff9858743138c345fe492f9ab27c297580",
    "pyproject.toml": "a671460dcc58ff543a943d6d066cffad0e079806313d25b5f0d044901f842c1e",
    "README.md": "de7c40ce7399a9b2d1c2b8c363e41d0e38a0a95746fa7b32f122ec16c1830b26"
  },
  "artifacts": {
    "report.json": "ae1125e23daa73f17f99c8b7767ae602e890c3afa6a5099d2951ca0028d98116",
    "discovery.json": "dad532abd997c40a10de61300e29765e0c85eba5e8cb86b82925e6dcdd00e09a",
    "report.html": "03242a6964be99a18cf1297e2729c4b483472a166a8ff6b9ab439d3688411c65",
    "review-points.json": "63213d53d31186b68a2f8ee3c68a43665ecbaae737a3f633e436b1b2fc89d102"
  },
  "release_install_verified": {
    "version": "0.7.1",
    "distribution": "0.7.1",
    "result": "Wheel installed without dependencies into an isolated Python 3.11 environment. CLI JSON and connected HTML scans completed without supplied task context; no target code or model calls executed."
  },
  "context_primary_evidence": [
    {
      "path": "README.md",
      "line": 38
    },
    {
      "path": "README.md",
      "line": 44
    },
    {
      "path": "README.md",
      "line": 47
    }
  ],
  "context_limitations": "The bounded extractor retained 41 task records, including component or setup declarations. They are source declarations, not verified runtime contracts. All four displayed findings were checked against the pinned source.",
  "change_from_previous_example": "Regenerated with installed SDK 0.7.1 from the same verified source archive. Same four source findings, ordered with conceptual limitations first. Updated headline, footer and attachment encoding. Prior source report and provenance are preserved in examples/evaluation-review/archive/0.5.1.",
  "published_versions_preserved": {
    "0.4.0": "941249c7152c9a6b5e3eff876a16bb90e3a9dd5d297e6a2f5e1af706292acc1d",
    "0.4.1": "b32a36f94e01d459dc286228b1eab6a3ac347aec9255c31ccc7f59125763172d",
    "0.5.0": "b8c4993a2f460f2b08a46999f4aa3c3a20340a9a48b8f70f2c1c1b663f4a04b1"
  },
  "report_template_version": "0.7.2",
  "presentation_update": "SDK 0.7.2 prevents footer buttons stretching in passive attachments. The source scan and findings remain those generated by SDK 0.7.1."
}
