Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use self.embeddings.aembed_* in async methods #97

Merged
merged 4 commits into from
Sep 12, 2024

Conversation

liunux4odoo
Copy link
Contributor

using sync methods of embeddings in PGVector async methods harms performance.

@andreped
Copy link

andreped commented Aug 20, 2024

@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
Copy link
Contributor Author

@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.

@liunux4odoo
Copy link
Contributor Author

So strange the tests failed, I cannot check what's wrong.

@eyurtsev eyurtsev merged commit fe947a7 into langchain-ai:main Sep 12, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants