Summary
Currently recall() accepts query, limit, bankId, and time filters. In practice, users need more granular filtering:
- By entity type — "recall only facts about people" or "only facts about companies"
- By source — "recall only facts from Slack" or "only facts from meetings"
- By confidence — "recall only facts with confidence > 0.8"
What needs to happen
- Extend the
RecallOptions type in src/types.ts with optional filter fields:
entityType?: string; // filter facts linked to entities of this type
source?: string; // filter by source field
minConfidence?: number; // minimum confidence threshold
- Update the recall pipeline in
src/pipelines/recall.ts to apply these filters
- Update the MCP server in
src/mcp/server.ts to expose these as tool parameters
- Add tests in
tests/
Files to look at
src/types.ts — RecallOptions interface
src/pipelines/recall.ts — the recall pipeline
src/store/store.ts — underlying queries
src/mcp/server.ts — MCP tool definitions
Acceptance criteria
Summary
Currently
recall()acceptsquery,limit,bankId, and time filters. In practice, users need more granular filtering:What needs to happen
RecallOptionstype insrc/types.tswith optional filter fields:src/pipelines/recall.tsto apply these filterssrc/mcp/server.tsto expose these as tool parameterstests/Files to look at
src/types.ts— RecallOptions interfacesrc/pipelines/recall.ts— the recall pipelinesrc/store/store.ts— underlying queriessrc/mcp/server.ts— MCP tool definitionsAcceptance criteria
recall({ query: '...', entityType: 'person' })returns only person-linked factsrecall({ query: '...', source: 'slack' })filters by sourcerecall({ query: '...', minConfidence: 0.8 })filters low-confidence resultsrecalltool accepts the new parameters