Skip to content

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
Copy link
Collaborator

@cparisien cparisien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just fix the typos and you're ok to go.

@Pouyanpi
Copy link
Collaborator Author

@cparisien typos fixed 👍🏻

@Pouyanpi Pouyanpi merged commit 2ede0f4 into develop Jan 31, 2025
6 checks passed
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.

2 participants