-
Notifications
You must be signed in to change notification settings - Fork 0
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
Review: Integration Tests » Fake Embeddings » ConsistentFakeEmbeddings.embed_query #28
Comments
Just reviewing the code base vs. the patch, and where the adjustment is located at Instead, from tests.integration_tests.vectorstores.fake_embeddings import (
ConsistentFakeEmbeddings,
FakeEmbeddings,
) That code looks like this: langchain/libs/community/tests/integration_tests/vectorstores/fake_embeddings.py Lines 33 to 56 in 6d524e9
|
Hm. Checking where our change is coming from, it is 9dfc828. Indeed, in current LangChain, there are two folders that include a |
We can see that some integration tests use vanilla FakeEmbeddings ...
... and others are providing their custom ones:
In this spirit, I think it will be good enough to also provide our custom ones. |
I haven't been able to spot any regressions in running the test cases after removing the code in question with 41f6462. Integration tests in both langchain-core and langchain-community still succeed. |
langchain/libs/langchain/tests/integration_tests/cache/fake_embeddings.py
Lines 53 to 60 in 8b278a8
This spot has been resolved differently. We will need to check if that will be fine. Otherwise, we will need to use the previous code on behalf of a separate
FakeEmbeddings
fixture.ConsistentFakeEmbeddings.embed_query
langchain-ai/langchain#13654 (comment)Originally posted by @amotl in #1 (comment)
/cc @kneth
The text was updated successfully, but these errors were encountered: