Spaces:
Sleeping

Divb30 commited on
Commit
65c53b7
·
1 Parent(s): 7659abf

trim the readme

Browse files

dropped the headline retrieval table and the quick start section, kept the analyzer numbers and pointed retrieval detail at the ablations

Files changed (1) hide show
  1. README.md +2 -38
README.md CHANGED
@@ -24,19 +24,9 @@ A retrieval-augmented assistant that pairs a **hybrid dense + sparse retriever w
24
 
25
  ## Benchmarks
26
 
27
- Retrieval quality on a 30-query labeled evaluation set (25 answerable + 5 out-of-corpus distractors) over a 5-document corpus. Each stage is an ablation adding **one** technique. Reproduce with `python eval/run_benchmarks.py`.
28
 
29
- | Configuration | MRR@5 | Recall@1 | Recall@3 | NDCG@5 |
30
- |---|:---:|:---:|:---:|:---:|
31
- | Dense only (MiniLM + FAISS) | 0.883 | 0.800 | 0.960 | 0.913 |
32
- | **+ Hybrid** (BM25 + RRF) | 0.907 | 0.840 | **1.000** | 0.930 |
33
- | **+ Cross-encoder rerank** | **1.000** | **1.000** | **1.000** | **1.000** |
34
-
35
- Adding lexical hybrid search lifts Recall@3 to a perfect 1.000; cross-encoder reranking then places the answer-bearing chunk **first** on every answerable query.
36
-
37
- > **On methodology.** The eval set is deliberately compact so the full gate runs in CI in minutes on CPU. The signal is the **relative lift each stage contributes** and the fact that these numbers are **regression-gated on every push** ([`eval/baselines.json`](eval/baselines.json)) — not an absolute SOTA claim. Relevance is scored by answer-span containment ([`evaluation.py`](src/intellicode/evaluation.py)), which stays valid when chunk boundaries change, and the five out-of-corpus queries verify the retriever *rejects* unanswerable questions rather than confidently hallucinating.
38
-
39
- **AST analyzer accuracy** — measured against an annotated ground-truth fixture with a clean-code false-positive control:
40
 
41
  | Precision | Recall | F1 | False positives on clean code |
42
  |:---:|:---:|:---:|:---:|
@@ -104,32 +94,6 @@ A companion **security scanner** flags hardcoded secrets, SQL injection, weak cr
104
 
105
  ---
106
 
107
- ## Quick start
108
-
109
- ```bash
110
- git clone https://github.com/Divyanshb30/IntelliDoc-RAG-Assistant.git
111
- cd IntelliDoc-RAG-Assistant
112
- pip install -e ".[dev,eval]"
113
- ```
114
-
115
- ```bash
116
- pytest tests/ # unit + integration + eval gates (CPU-only)
117
- python eval/run_benchmarks.py # regenerate the benchmark tables
118
- ```
119
-
120
- ```python
121
- from intellicode.rag import RAGPipeline
122
-
123
- rag = RAGPipeline()
124
- rag.build_index_from_directory("data/sample")
125
- for hit in rag.query("What products does TechCorp offer?"):
126
- print(round(hit.score, 3), hit.text[:80])
127
- ```
128
-
129
- Run the Gradio app locally with `python app.py` (falls back to template answers when no GPU/model is available).
130
-
131
- ---
132
-
133
  ## Ablations
134
 
135
  <details>
 
24
 
25
  ## Benchmarks
26
 
27
+ Retrieval and analysis are measured by the same harness on a labeled eval set, and both are **regression-gated on every push** via [`eval/baselines.json`](eval/baselines.json) — a change that drops MRR@5, Recall@3, or analyzer F1 below the floor fails CI. Relevance is scored by answer-span containment ([`evaluation.py`](src/intellicode/evaluation.py)), which stays valid when chunk boundaries change. Retrieval ablations (dense vs hybrid vs reranked, chunk size, chunking method) are in [Ablations](#ablations); reproduce everything with `python eval/run_benchmarks.py`.
28
 
29
+ **AST analyzer accuracy** — against an annotated ground-truth fixture with a clean-code false-positive control:
 
 
 
 
 
 
 
 
 
 
30
 
31
  | Precision | Recall | F1 | False positives on clean code |
32
  |:---:|:---:|:---:|:---:|
 
94
 
95
  ---
96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  ## Ablations
98
 
99
  <details>