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

Refactored ChromadbRM to use generic EmbeddingFunction #400

Merged
merged 3 commits into from
Feb 17, 2024

Conversation

nerlfield
Copy link
Contributor

I've updated the ChromadbRM retriever to be more flexible and fix a bug:

This revision enhances ChromadbRM by introducing flexibility in embedding selection and resolving a critical error.

@insop
Copy link
Contributor

insop commented Feb 16, 2024

@animtel, thank you for the change.

Would you mind adding an example of using OpenAI embedding? This will help the existing code to migrate to the newer code. The example could go to this file: docs/retrieval_models_client.md.

@insop
Copy link
Contributor

insop commented Feb 16, 2024

I believe the model_arg was added originally to support Azure OpenAI API.

@nerlfield
Copy link
Contributor Author

Yes, model_arg was specifically introduced to maintain compatibility with the Azure OpenAI API. However, the current implementation supports OpenAI embeddings. You can find the details on how to define an embedding function here. I've also added the documentation to showcase how this can be used.

@insop
Copy link
Contributor

insop commented Feb 16, 2024

Yes, model_arg was specifically introduced to maintain compatibility with the Azure OpenAI API. However, the current implementation supports OpenAI embeddings. You can find the details on how to define an embedding function here. I've also added the documentation to showcase how this can be used.

Excellent, thank you so much for making the change and adding the documentation.

Looks great to me.

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.

3 participants