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

Add Embeddings API Support #131

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ravenouse
Copy link

@ravenouse ravenouse commented Dec 4, 2024

PR Description:

This PR aims to introduce a unified interface for creating embeddings across multiple providers.

Summary of Changes:

  • Introduced EmbeddingsResponse and Embeddings classes.
  • Implemented the embeddings_create method in OllamaProvider and OpenaiProvider.
  • Updated the Client class to include the embeddings property.
  • Added tests for embeddings_create methods.
  • Added Ollama guide and updated embeddings section for Openai guide.

This PR is ready for review.
Feedback and comments are highly encouraged and appreciated.

@ravenouse ravenouse changed the title WIP: Add Embeddings API Support Add Embeddings API Support Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant