Abraxas-365 / Abraxas-365/langchain-rust

fix(pgvector): similarity_search should return embeddings ordered by distance

未关闭
#275 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
1.3k
派生
177
PR 合并指标
30 天内没有已合并 PR

描述

**Describe the bug**
The similarity search does not return the correct results, rather it returns DESC which don't make sense.

This PR seems to be the culprit, I reverted and am now getting the correct answers.
https://github.com/Abraxas-365/langchain-rust/pull/224

**To Reproduce**
Steps to reproduce the behavior:
1. Run one of the postgres examples you wont get the most relevant or closest response

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。