Abraxas-365 / Abraxas-365/langchain-rust

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

Aperta
#275 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
1.3k
Fork
177
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.