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

[WIP] Documentation & Evaluator Improvement #36

Merged
merged 15 commits into from
Jun 9, 2024
Merged

[WIP] Documentation & Evaluator Improvement #36

merged 15 commits into from
Jun 9, 2024

Conversation

mengliu1998
Copy link
Contributor

@mengliu1998 mengliu1998 commented Jun 5, 2024

  • Restructure evaluators and add testing
  • Improve documents for evaluators
  • Update the SimpleQA code according to the latest code

@mengliu1998 mengliu1998 force-pushed the meng branch 4 times, most recently from 4c8edcb to 6de7244 Compare June 8, 2024 17:28
@mengliu1998 mengliu1998 requested a review from liyin2015 June 8, 2024 19:19
"""

# We use OpenAIClient as the default LLM evaluator if it is available. Otherwise, we set it to None.
if "OpenAIClient" in globals():
Copy link
Member

Choose a reason for hiding this comment

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

you can let users pass model_client. refer to lightrag/optim/llm_augment.py and lightrag/optim/llm_optimizer.py

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Thanks!

r"""
Compute the match accuracy of the predicted answer for a list of queries.

Args:
Copy link
Member

Choose a reason for hiding this comment

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

try to add the compute or call, this pr then should be good

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.


def compute_judgement(
self,
all_questions: List[str],
Copy link
Member

Choose a reason for hiding this comment

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

all_questions, maybe just questions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Member

@liyin2015 liyin2015 left a comment

Choose a reason for hiding this comment

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

looks good

@mengliu1998 mengliu1998 merged commit 45b2259 into main Jun 9, 2024
2 checks passed
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