mirror of
https://github.com/garrytan/gbrain.git
synced 2026-07-28 14:59:47 +00:00
docs: document typed-edge relational retrieval (v0.42.34.0)
CLAUDE.md Search Mode: add relationalRetrieval to the knob table, the knobs_hash v=9→10 note, and a relational-retrieval summary. RETRIEVAL.md: add the relational recall arm to the pipeline diagram. Regenerate llms bundles (build:llms). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
778c118015
commit
357be400f7
@@ -149,6 +149,7 @@ project resolves through `src/core/search/mode.ts`.
|
||||
| `intentWeighting` | true | true | true |
|
||||
| `tokenBudget` | **4000** | **12000** | **off** |
|
||||
| `expansion` (LLM multi-query) | false | false | **true** |
|
||||
| `relationalRetrieval` | false | **true** | **true** |
|
||||
| `searchLimit` default | 10 | 25 | 50 |
|
||||
|
||||
**Cost anchors (downstream agent input cost — gbrain itself is rounding error).**
|
||||
@@ -207,6 +208,19 @@ written against `embedding` (1536d OpenAI). Existing v=2 rows become
|
||||
unreachable on first re-query (one-time miss spike on upgrade);
|
||||
`mode.ts:KNOBS_HASH_VERSION` is the single source of truth.
|
||||
|
||||
**v0.42.34.0 knobs_hash v=9 → v=10.** Folds the `relationalRetrieval` knob +
|
||||
depth into the cache key so a relational-on result set can't be served to a
|
||||
relational-off lookup (same contamination class as graph_signals). One-time
|
||||
miss spike on upgrade.
|
||||
|
||||
**Relational retrieval (v0.42.34.0).** `relationalRetrieval` (on for
|
||||
balanced/tokenmax) adds a fourth recall arm: a relational query ("who invested
|
||||
in X", "what connects A and B") resolves its seed entity and walks the typed-edge
|
||||
graph (`src/core/search/relational-recall.ts` + `relational-intent.ts`,
|
||||
`engine.relationalFanout`), injecting edge-derived answers into RRF. Within-source,
|
||||
deterministic, mentions-excluded by default, pure no-op for non-relational queries.
|
||||
The `query` op's `relational` flag forces it on/off per call.
|
||||
|
||||
**Three CLI surfaces:**
|
||||
|
||||
gbrain search modes # what is running, with per-knob attribution
|
||||
|
||||
@@ -123,6 +123,7 @@ expansion (if enabled)
|
||||
hybrid search:
|
||||
├── vector (HNSW on chunk embeddings)
|
||||
├── keyword (BM25 via tsvector)
|
||||
├── relational (v0.42.34.0: typed-edge recall arm — relational queries only)
|
||||
├── source-aware re-rank (CASE in SQL)
|
||||
└── RRF fusion → top 30
|
||||
│
|
||||
|
||||
@@ -297,6 +297,7 @@ project resolves through `src/core/search/mode.ts`.
|
||||
| `intentWeighting` | true | true | true |
|
||||
| `tokenBudget` | **4000** | **12000** | **off** |
|
||||
| `expansion` (LLM multi-query) | false | false | **true** |
|
||||
| `relationalRetrieval` | false | **true** | **true** |
|
||||
| `searchLimit` default | 10 | 25 | 50 |
|
||||
|
||||
**Cost anchors (downstream agent input cost — gbrain itself is rounding error).**
|
||||
@@ -355,6 +356,19 @@ written against `embedding` (1536d OpenAI). Existing v=2 rows become
|
||||
unreachable on first re-query (one-time miss spike on upgrade);
|
||||
`mode.ts:KNOBS_HASH_VERSION` is the single source of truth.
|
||||
|
||||
**v0.42.34.0 knobs_hash v=9 → v=10.** Folds the `relationalRetrieval` knob +
|
||||
depth into the cache key so a relational-on result set can't be served to a
|
||||
relational-off lookup (same contamination class as graph_signals). One-time
|
||||
miss spike on upgrade.
|
||||
|
||||
**Relational retrieval (v0.42.34.0).** `relationalRetrieval` (on for
|
||||
balanced/tokenmax) adds a fourth recall arm: a relational query ("who invested
|
||||
in X", "what connects A and B") resolves its seed entity and walks the typed-edge
|
||||
graph (`src/core/search/relational-recall.ts` + `relational-intent.ts`,
|
||||
`engine.relationalFanout`), injecting edge-derived answers into RRF. Within-source,
|
||||
deterministic, mentions-excluded by default, pure no-op for non-relational queries.
|
||||
The `query` op's `relational` flag forces it on/off per call.
|
||||
|
||||
**Three CLI surfaces:**
|
||||
|
||||
gbrain search modes # what is running, with per-knob attribution
|
||||
|
||||
Reference in New Issue
Block a user