(feat): add scoreThreshold + metadata for milvus#137
Conversation
WalkthroughThe pull request updates the Changes
Sequence Diagram(s)sequenceDiagram
participant C as Client
participant SK as SemanticKernelMemoryStoreCollection
participant NS as GetNearestMatchesAsync
C->>SK: Call SearchAsync(request, settings)
SK->>NS: GetNearestMatchesAsync(request, minRelevanceScore)
NS-->>SK: Return result tuples
SK->>SK: Process each tuple
Note over SK: Split AdditionalMetadata\nand cast RelevanceScore to float
SK-->>C: Return enriched VectorSearchResponse
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/SemanticKernel/src/SemanticKernelMemoryStoreCollection.cs(1 hunks)
🔇 Additional comments (1)
src/SemanticKernel/src/SemanticKernelMemoryStoreCollection.cs (1)
74-74: Good addition of minimum relevance score filtering.Adding the
minRelevanceScoreparameter usingsettings.ScoreThreshold ?? 0allows filtering out low-relevance search results. This is a valuable improvement that enhances the search functionality.
Head branch was pushed to by a user without write access
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Summary by CodeRabbit