We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
langchain_google_genai import GoogleGenerativeAIEmbeddings.embed_query
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
The task_type passed to langchain_google_genai import GoogleGenerativeAIEmbeddings.embed_query is ignored. Refer this line.
task_type
This bug leads to an un-intuitive in behavior for the two following calls:
from langchain_google_genai import GoogleGenerativeAIEmbeddings embeddings = GoogleGenerativeAIEmbeddings(model="models/gemini-embedding-exp-03-07", task_type="clustering") emb = embeddings.embed_query("How does alphafold work?", output_dimensionality=768) embeddings2 = GoogleGenerativeAIEmbeddings(model="models/gemini-embedding-exp-03-07") emb2 = embeddings2.embed_query("How does alphafold work?", task_type="clustering", output_dimensionality=768) # Check for point-wise equality emb == emb2 # >>> False
The text was updated successfully, but these errors were encountered:
I am open to fixing it: Delete this line and we are good.
Sorry, something went wrong.
yes, feel free to send a PR, please
do not delete the line but just try to determine the task type in the right order
Successfully merging a pull request may close this issue.
The
task_type
passed tolangchain_google_genai import GoogleGenerativeAIEmbeddings.embed_query
is ignored. Refer this line.This bug leads to an un-intuitive in behavior for the two following calls:
The text was updated successfully, but these errors were encountered: