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

fix rag index names in eval_rag.py example #8730

Merged
merged 1 commit into from
Nov 24, 2020

Conversation

lhoestq
Copy link
Member

@lhoestq lhoestq commented Nov 23, 2020

There was a mistake in the eval_rag.py parameters choices.

As specified in the rag configuration (see documentation), one can choose between 'legacy', 'exact' and 'compressed'. The legacy index is the original index used for RAG/DPR while the other two use the datasets library indexing implementation.

This issue was reported on the forum https://discuss.huggingface.co/t/rag-retriever-hf-vs-legacy-vs-exact-vs-compressed/2135/5

@@ -153,7 +153,7 @@ def get_args():
parser.add_argument(
"--index_name",
default=None,
choices=["hf", "legacy"],
choices=["exact", "compressed", "legacy"],
Copy link
Contributor

Choose a reason for hiding this comment

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

yes! Great :-)

@lhoestq lhoestq merged commit a7d73cf into master Nov 24, 2020
@lhoestq lhoestq deleted the fix-rag-index-names-in-eval_rag-example branch November 24, 2020 16:04
This pull request was closed.
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