Expand description
User-feedback signal for chunks.
A chunk’s feedback_score is a signed net count — thumbs-up adds, thumbs-down
subtracts, neutral leaves it alone. 0 is the default and must produce
identical confidence to a store that never records any feedback. Scoring
lives in [crate::search::compute_confidence]; this module is just the
write path and a thin read helper for tests and library callers.
Structs§
- Feedback
Report - Result of a feedback write, shaped for the
lantern feedbackCLI output.
Enums§
- Feedback
- A single feedback event applied to a chunk.
Functions§
- apply_
feedback - Apply
feedbackand package the result for display. Thin wrapper aroundrecord_feedbackso the CLI and MCP layers don’t each re-derive the report shape. - get_
feedback_ score - Read the current feedback score for
chunk_id, orNoneif the chunk is not in the store. - print_
json - print_
text - record_
feedback - Apply
feedbacktochunk_idand return the chunk’s new net score.