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
It's super common when doing edsl work to want to take embeddings - we should support that through coopr as well.
defget_embeddings(texts, model="text-embedding-3-large"):
# Clean the textstexts= [text.replace("\n", " ") fortextintexts]
# Get embeddings for all texts in one API callresponse=client.embeddings.create(input=texts, model=model)
# Extract embeddings from responsereturn [data.embeddingfordatainresponse.data]
The text was updated successfully, but these errors were encountered:
It's super common when doing edsl work to want to take embeddings - we should support that through coopr as well.
The text was updated successfully, but these errors were encountered: