-
Notifications
You must be signed in to change notification settings - Fork 222
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
Conversation
mengliu1998
commented
Jun 5, 2024
•
edited
Loading
edited
- Restructure evaluators and add testing
- Improve documents for evaluators
- Update the SimpleQA code according to the latest code
4c8edcb
to
6de7244
Compare
""" | ||
|
||
# We use OpenAIClient as the default LLM evaluator if it is available. Otherwise, we set it to None. | ||
if "OpenAIClient" in globals(): |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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], |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good