Skip to content

Conversation

@danielebriggi
Copy link
Member

No description provided.

@danielebriggi danielebriggi self-assigned this Oct 21, 2025
@danielebriggi danielebriggi requested a review from Copilot October 21, 2025 15:22
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the search edge function to support sentence-based previews instead of simple chunk-based snippets. The implementation retrieves the most relevant sentences within each matching chunk using vector similarity, builds intelligent snippets that maintain document order, and includes gap indicators when sentences are non-contiguous.

Key Changes:

  • Introduces sentence-level vector search within matching chunks to identify the most relevant sentences
  • Implements smart snippet generation that sorts sentences by document offset and adds gap indicators for non-contiguous selections
  • Changes default result limit from 10 to 5 and updates snippet handling to use sentence-based previews

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@danielebriggi danielebriggi merged commit fd81ef6 into main Oct 21, 2025
1 check passed
@danielebriggi danielebriggi deleted the snippets-from-sentences branch October 21, 2025 15:24
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.

2 participants