fix: Return matched chunk text in search results (#601)

Signed-off-by: phernandez <paul@basicmachines.co>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Paul Hernandez
2026-02-22 21:01:20 -06:00
committed by GitHub
parent c44291830c
commit 0f3889fdd0
10 changed files with 154 additions and 6 deletions
+1
View File
@@ -177,6 +177,7 @@ async def to_search_results(entity_service: EntityService, results: List[SearchI
score=r.score, # pyright: ignore
entity=entities[0].permalink if entities else None,
content=r.content,
matched_chunk=r.matched_chunk_text,
file_path=r.file_path,
metadata=r.metadata,
entity_id=entity_id,