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

difference between retrieved contexts and reference contexts #1882

Open
Sara-Hossny opened this issue Jan 26, 2025 · 3 comments
Open

difference between retrieved contexts and reference contexts #1882

Sara-Hossny opened this issue Jan 26, 2025 · 3 comments
Labels
question Further information is requested

Comments

@Sara-Hossny
Copy link

[ ] I checked the documentation and related resources and couldn't find an answer to my question.
what is the difference between the retrieved contexts and reference contexts that extract from generate Synthetic test data?

@Sara-Hossny Sara-Hossny added the question Further information is requested label Jan 26, 2025
@Vidit-Ostwal
Copy link
Contributor

Vidit-Ostwal commented Jan 26, 2025

@dosu do you know this?, explain with an example as well

Copy link

dosubot bot commented Jan 26, 2025

The difference between retrieved contexts and reference contexts in the context of generating synthetic test data is as follows:

  • Retrieved Contexts: These are the contexts that the system retrieves for a given query. They represent the information identified as relevant to the user's input query. In the SingleTurnSample class, this is represented by the attribute retrieved_contexts, which is a list of strings.

  • Reference Contexts: These are the contexts considered as the correct or expected ones for a given query. They serve as a benchmark or ground truth against which the retrieved contexts can be evaluated. In the SingleTurnSample class, this is represented by the attribute reference_contexts, which is also a list of strings.

The key difference lies in their roles: retrieved contexts are what the system actually retrieves, while reference contexts are what ideally should have been retrieved [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@Vidit-Ostwal
Copy link
Contributor

@dosu, explain this with example as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants