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
importvoyageaivo=voyageai.Client()
# This will automatically use the environment variable VOYAGE_API_KEY.# Alternatively, you can use vo = voyageai.Client(api_key="<your secret key>")texts= [
"The Mediterranean diet emphasizes fish, olive oil, ...",
"Photosynthesis in plants converts light energy into ...",
"20th-century innovations, from radios to smartphones ...",
"Rivers provide water, irrigation, and habitat for ...",
"Apple’s conference call to discuss fourth fiscal ...",
"Shakespeare's works, like 'Hamlet' and ...",
]
# Embed the documentsresult=vo.embed(texts, model="voyage-2", input_type="document")
print(result.embeddings)
https://www.together.ai/
it should work trivially with the same open ai classes, just need to change endpoint
The text was updated successfully, but these errors were encountered: