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

Refactor rag e2e evaluation #9

Merged
merged 7 commits into from
Sep 12, 2023
Merged

Refactor rag e2e evaluation #9

merged 7 commits into from
Sep 12, 2023

Conversation

SachiraKuruppu
Copy link
Contributor

  • Extract get_query_embeddings and get_passage_embeddings as functions to reduce duplicate code
  • Make the script more configurable (device, torch tensor data type, evaluate generator or not).
  • Combine retriever and generator evaluation loops. The retriever part is necessary to evaluate the generator anyway.

Copy link
Member

@shamanez shamanez left a comment

Choose a reason for hiding this comment

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

perfect work!!!!

@shamanez shamanez merged commit ce52e78 into main Sep 12, 2023
@Ben-Epstein Ben-Epstein deleted the refactor-rag-e2e-evaluation branch September 21, 2023 22:04
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.

2 participants