Skip to content

feat(mcp): kiwi_recall fusion retrieval#67

Open
advancedresearcharray wants to merge 10 commits into
mainfrom
feat/issue-422-kiwi-recall-fusion-hands-on
Open

feat(mcp): kiwi_recall fusion retrieval#67
advancedresearcharray wants to merge 10 commits into
mainfrom
feat/issue-422-kiwi-recall-fusion-hands-on

Conversation

@advancedresearcharray

@advancedresearcharray advancedresearcharray commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Summary

Implements fused memory recall combining FTS5, vector, and backlink-graph retrieval with Reciprocal Rank Fusion (RRF), closing kiwifs#422.

  • POST /api/kiwi/recall — REST endpoint returning unified ranked results with per-source provenance
  • kiwi_recall MCP tool — local and remote backends
  • RRF fusion — parallel FTS/vector queries, 1-hop graph expansion, configurable k (default 60)
  • Graceful degradation — vector source skipped when vector store is nil
  • boost_verified — multiplies score by frontmatter confidence

Test plan

  • go test ./internal/search/... ./internal/api/... ./internal/mcpserver/... -run 'Recall|RRF|Fuse' -count=1 — all pass
  • Full package test suites — all green

Closes kiwifs#422

Array Fleet and others added 10 commits June 30, 2026 22:35
Add POST /api/kiwi/recall and kiwi_recall MCP tool that fuse FTS,
vector, and graph (backlink) retrieval with Reciprocal Rank Fusion.
Graph signal expands 1-hop backlinks from top FTS/vector seeds;
boost_verified applies frontmatter confidence as a multiplicative boost.
Gracefully skips vector source when vectorstore is not configured.

Closes kiwifs#422

Co-authored-by: Cursor <cursoragent@cursor.com>
Record verification run and test results for fleet PR publish.

Co-authored-by: Cursor <cursoragent@cursor.com>
…keover)

Record passing regression tests and PR delivery after fleet agent failed
to push verified code.

Co-authored-by: Cursor <cursoragent@cursor.com>
Record green recall regression and full package test runs from
hands-on takeover; prepare branch for PR closing kiwifs#422.

Signed-off-by: Array Fleet <fleet@advancedresearcharray.local>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Array Fleet <fleet@advancedresearcharray.local>
Co-authored-by: Cursor <cursoragent@cursor.com>
Apply path_prefix and scope filtering to vector and graph hits,
degrade gracefully when vector search fails, and reject whitespace-only
queries on the REST recall endpoint. Adds regression tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
Record hands-on regression pass on peer-review-hardened branch; Kiwi
depot unreachable so episode updated in-repo for fleet sync.

Co-authored-by: Cursor <cursoragent@cursor.com>
…ifs#422

Fleet takeover fixed test failures caused by accidental emptying of
internal/exporter/mkdocs.go; recall regression suite passes (17 tests).

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Restore corrupted mkdocs.go and confirm full test suite passes after
hands-on delivery check failure.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(mcp): kiwi_recall fusion retrieval

1 participant