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 5 commits 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.

TODO

  • add tests

Description

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

@Pouyanpi Pouyanpi added this to the v0.12.0 milestone Dec 6, 2024
@Pouyanpi Pouyanpi self-assigned this Dec 6, 2024
@Pouyanpi Pouyanpi added enhancement New feature or request status: in progress Issues that are currently being worked on. labels Jan 8, 2025
- 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.

improve style
@Pouyanpi Pouyanpi force-pushed the feat/embedding-provider-params branch from ee2dc88 to 0182667 Compare January 9, 2025 09:55
@Pouyanpi Pouyanpi added status: in review and removed status: in progress Issues that are currently being worked on. labels Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request status: in review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant