Skip to content
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

Support cohere embeddings #8

Open
deadbits opened this issue Sep 4, 2023 · 1 comment
Open

Support cohere embeddings #8

deadbits opened this issue Sep 4, 2023 · 1 comment
Assignees
Labels
cohere Cohere models embeddings Text embeddings for scanner and db enhancement New feature or request

Comments

@deadbits
Copy link
Owner

deadbits commented Sep 4, 2023

Add support for Cohere embeddings

  • Create datasets for Huggingface
  • Update vectordb scanner to use Cohere as custom embedding function
  • Update config parser to load Cohere model choice and API key
import cohere
co = cohere.Client(API_KEY)
response = co.embed(
  model='embed-english-v2.0',
  texts=[""])
print('Embeddings: {}'.format(response.embeddings))
@deadbits deadbits added enhancement New feature or request embeddings Text embeddings for scanner and db cohere Cohere models labels Sep 4, 2023
@deadbits deadbits self-assigned this Sep 4, 2023
@ishaan-jaff
Copy link

hi @deadbits I'm the maintainer of LiteLLM. We've added support for Cohere embedding models: https://docs.litellm.ai/docs/embedding/supported_embedding#cohere-embedding-models

You can call it using the OpenAI embedding Input/Output format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cohere Cohere models embeddings Text embeddings for scanner and db enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants