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

Explore RAG adv methods & eval #136

Open
ccstan99 opened this issue Jan 14, 2024 · 1 comment
Open

Explore RAG adv methods & eval #136

ccstan99 opened this issue Jan 14, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ccstan99
Copy link
Collaborator

We might want to look into some new RAG chunk retrieval methods and evaluation metrics. This short tutorial covers some interesting topics. They use LlamaIndex for implementation but we shouldn't need to. Looks like TruEra might have some good objective metrics to evaluate chunks and answers generated from the context. Some notes & links to sample code.

Retrieval Methods:

  • Sentence-window retrieval: chunk by sentence, returns sentence before & after semantic match
  • Auto-merging retrieval: group set of relevant chunks into larger unit

Triad of metrics (to eval hyper-parameters & retrieval methods)

  • Answer Relevance: Is the response relevant to the query?
  • Context Relevance: Is the retrieved context relevant to the query?
  • Groundedness: Is the response supported by the context?
@ccstan99 ccstan99 added the enhancement New feature or request label Jan 14, 2024
@wassname
Copy link

See also #138

@varchanaiyer varchanaiyer self-assigned this Apr 30, 2024
@ccstan99 ccstan99 added the help wanted Extra attention is needed label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
Status: No status
Development

No branches or pull requests

3 participants