langchain-postgres
langchain-postgres copied to clipboard
fix: use self.embeddings.aembed_* in async methods
using sync methods of embeddings in PGVector async methods harms performance.
@liunux4odoo I tested your PR branch on one of my projects, and it fixed our issue. Thanks!
This PR is needed to not break our async data pipelines - I am quite surprised this was an issue at all...
@efriis, @eyurtsev, @pprados Can some of the maintainers please review this PR?
@liunux4odoo I tested your PR branch on one of my projects, and it fixed our issue. Thanks!
This PR is needed to not break our async data pipelines - I am quite surprised this was an issue at all...
@efriis, @eyurtsev, @pprados Can some of the maintainers please review this PR?
Glad to see this helps.
So strange the tests failed, I cannot check what's wrong.