Skip to content

[contexto]: Tighten public types and document retrieval defaults #133

@sm86

Description

@sm86

Problem

  • SearchResult.items is any[]. Anyone implementing ContextoBackend ([contexto]: Implement LocalBackend #116) has to read helpers.ts to learn the shape.
  • assemble() hardcodes maxResults=7, minScore=0.45, and filter={source:'summary'}. None of this is in the README or config schema — and minScore is declared in BaseConfig but never wired through.

Goal

  • Type the mindmap item shape (MindmapItem / ScoredMindmapItem).
  • Honor maxResults, minScore, retrievalFilter from config.
  • Document the defaults in the package README and docs/contexto.md.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requestgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions