You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
Inconsistency in how model name is supplied in the library. #466
result = genai.embed_content(
model="models/embedding-001",
content="What is the meaning of life?",
task_type="retrieval_document",
title="Embedding of single string")
# 1 input > 1 vector output
print(str(result['embedding'])[:50], '... TRIMMED]')
All other methos do not require it
model = genai.GenerativeModel('gemini-1.5-flash')
What problem are you trying to solve with this feature?
Activity
MarkDaoust commentedon Jul 24, 2024
Right, thanks.
@shilpakancharla IIRC you did the embedding implementation, could you fix this?
LindaLawton commentedon Jul 25, 2024
I'm happy to try to implement it if you like.
shilpakancharla commentedon Jul 31, 2024
HI @LindaLawton , please feel free to submit an implementation.
bhakarboy01 commentedon Mar 15, 2025
@MarkDaoust @shilpakancharla @LindaLawton I have made the code consistent with the model naming without "model/" prefix in
genai.embed_contentfunction. PR #718