Evaluate hybrid graph and embedding retrieval for vault notes #1573

Closed
opened 2026-11-05 15:56:57 +00:00 by jared · 3 comments
Owner

Problem

Jared asked whether a hybrid of graph search and embedding search would find vault notes better than graph search alone. No one has measured it. This ticket records the idea only. It has no design.

Jared's words, verbatim:

"Note search with embeddings is a better tool for this." This is interesting. I wonder how well it would perform if we:

  • queries the knowledge graph
  • embeddings query
  • unique returned notes list
  • rerank list
  • exclude low ranking matches (not sure how to best do this)
  • use context from remaining matches
    These create extra steps, but we would be combining complimentary methods. And, if the result is lightning fast since we are using deterministic tooling, it could be worth it.

Need to dial-in our graphify first. Get it to where we are happy and confident in the results it is returning, before we consider adding other techniques.

This ticket waits for graphify sign-off on #1540. Do not start it before then. Capture applies no state labels, so the wait is stated here and no waiting label is set.

Reproduce

n/a: this is an idea to evaluate, and nothing is broken.

Origin

  • Trigger: Jared's remark during the graph retrieval work, session b10276a0.
  • Improvised this session: none.
  • Chain: vault retrieval needs a better method ← graph search alone returns weak results on reworded questions ← DESIGN (#1540).
  • Root candidate: none found; searched embedding, hybrid, graphify, vault note, retrieval
  • Where: plugins/os-vault
  • Session: b10276a0-3582-48b5-b0fe-f13795bdcc75
  • Transcript: /home/jared/.claude/projects/-home-jared-Documents-SecondBrain/b10276a0-3582-48b5-b0fe-f13795bdcc75.jsonl
  • Parent: #1540.

VERDICT: CREATE

## Problem Jared asked whether a hybrid of graph search and embedding search would find vault notes better than graph search alone. No one has measured it. This ticket records the idea only. It has no design. Jared's words, verbatim: > "Note search with embeddings is a better tool for this." This is interesting. I wonder how well it would perform if we: > - queries the knowledge graph > - embeddings query > - unique returned notes list > - rerank list > - exclude low ranking matches (not sure how to best do this) > - use context from remaining matches > These create extra steps, but we would be combining complimentary methods. And, if the result is lightning fast since we are using deterministic tooling, it could be worth it. > > Need to dial-in our graphify first. Get it to where we are happy and confident in the results it is returning, before we consider adding other techniques. This ticket waits for graphify sign-off on #1540. Do not start it before then. Capture applies no state labels, so the wait is stated here and no `waiting` label is set. ## Reproduce n/a: this is an idea to evaluate, and nothing is broken. ## Origin - Trigger: Jared's remark during the graph retrieval work, session b10276a0. - Improvised this session: none. - Chain: vault retrieval needs a better method ← graph search alone returns weak results on reworded questions ← DESIGN (#1540). - Root candidate: none found; searched embedding, hybrid, graphify, vault note, retrieval - Where: plugins/os-vault - Session: b10276a0-3582-48b5-b0fe-f13795bdcc75 - Transcript: /home/jared/.claude/projects/-home-jared-Documents-SecondBrain/b10276a0-3582-48b5-b0fe-f13795bdcc75.jsonl - Parent: #1540. VERDICT: CREATE
Author
Owner

Evaluated 2026-11-06 with a throwaway index: one card per note (title, file name, summary) in memsearch on bge-m3 CPU. 334 notes in 53 s. Expected note in top 5: original 11/11, reworded 12/13 (graph alone 6/13). Building it into vault-query on branch ticket-1573.

Evaluated 2026-11-06 with a throwaway index: one card per note (title, file name, summary) in memsearch on bge-m3 CPU. 334 notes in 53 s. Expected note in top 5: original 11/11, reworded 12/13 (graph alone 6/13). Building it into vault-query on branch ticket-1573.
Author
Owner

Resolution

Done: vault-query searches one card per note through memsearch, then adds graph notes. Disposable store in ~/.local/share/os-vault/cards, separate from the episodic store. No reranker: memsearch has none by default, and the top 5 already reach 12/13.

Evidence: main e65b7b68; results-after-1573: reworded 8/13 to 12/13, original 12/12, facts 18/25, no card failures. First run 75 s, later runs about 4 s. Rulings 72, 73.

Follow-ups: none

## Resolution **Done:** vault-query searches one card per note through memsearch, then adds graph notes. Disposable store in ~/.local/share/os-vault/cards, separate from the episodic store. No reranker: memsearch has none by default, and the top 5 already reach 12/13. **Evidence:** main e65b7b68; results-after-1573: reworded 8/13 to 12/13, original 12/12, facts 18/25, no card failures. First run 75 s, later runs about 4 s. Rulings 72, 73. **Follow-ups:** none
jared closed this issue 2026-11-06 22:15:57 +00:00
Author
Owner

Correction to the close evidence: the result files landed in 80bd44df, not e65b7b68.

Correction to the close evidence: the result files landed in 80bd44df, not e65b7b68.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jared/cc-os#1573
No description provided.