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

feat: add embedding_params to BasicEmbeddingsIndex #898

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Pouyanpi
Copy link
Collaborator

@Pouyanpi Pouyanpi commented Dec 6, 2024

  • Added embedding_params attribute to BasicEmbeddingsIndex class.
  • Updated the constructor to accept embedding_params.
  • Modified _init_model method to pass embedding_params to init_embedding_model.
  • Updated init_embedding_model function to handle embedding_params.
  • Adjusted NIMEmbeddingModel and OpenAIEmbeddingModel to accept additional parameters.
  • Updated LLMRails to handle default embedding parameters.

Description

The user is able to pass params to an embedding provider, like base_url of a local NIM embedding model.

- Added `embedding_params` attribute to `BasicEmbeddingsIndex` class.
- Updated the constructor to accept `embedding_params`.
- Modified `_init_model` method to pass `embedding_params` to `init_embedding_model`.
- Updated `init_embedding_model` function to handle `embedding_params`.
- Adjusted `NIMEmbeddingModel` and `OpenAIEmbeddingModel` to accept additional parameters.
- Updated `LLMRails` to handle default embedding parameters.
@Pouyanpi Pouyanpi added this to the v0.12.0 milestone Dec 6, 2024
@Pouyanpi Pouyanpi self-assigned this Dec 6, 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