Skip to content

Commit

Permalink
fix(vector-index): In memory vector store index incorrect search
Browse files Browse the repository at this point in the history
  • Loading branch information
cvauclair committed Oct 9, 2024
1 parent f5441db commit 2151215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rig-core/src/vector_store/in_memory_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl InMemoryVectorStore {
&embedding.document,
)
})
.min_by(|a, b| a.0.cmp(&b.0))
.max_by(|a, b| a.0.cmp(&b.0))
{
docs.push(Reverse(RankingItem(
distance,
Expand Down

0 comments on commit 2151215

Please sign in to comment.