Skip to content

Support for embedding models for answer relevancy in ragas#5

Merged
savitharaghunathan merged 1 commit intomainfrom
ragas_embedding_issue
Sep 2, 2025
Merged

Support for embedding models for answer relevancy in ragas#5
savitharaghunathan merged 1 commit intomainfrom
ragas_embedding_issue

Conversation

@amitman3
Copy link
Collaborator

@amitman3 amitman3 commented Sep 2, 2025

Addresses issue #3
Answer relevancy calculation in ragas requires an embedding model. It works if you are using openai as the provider as it uses the ada-002 embedding model by default(source). However, this metric calculation fails when using any other provider.
Adding support for embedding models served via openai api that can be used for the calculation.
3 new env variables added for this: OPENAI_EMBEDDING_BASE_URL, OPENAI_EMBEDDING_MODEL, OPENAI_EMBEDDING_API_KEY

@amitman3 amitman3 changed the title Support for embedding models via openai api for answer relevancy in r… Support for embedding models for answer relevancy in ragas Sep 2, 2025
@amitman3 amitman3 linked an issue Sep 2, 2025 that may be closed by this pull request
@savitharaghunathan savitharaghunathan merged commit a0bd4e7 into main Sep 2, 2025
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.

API connection error on some metrics when running with gemini models

2 participants