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

[GSK-2892] Improve RAG toolset #1820

Merged
merged 153 commits into from
Mar 22, 2024
Merged

Conversation

pierlj
Copy link
Contributor

@pierlj pierlj commented Feb 26, 2024

No description provided.

Copy link

linear bot commented Feb 26, 2024

@pierlj pierlj requested a review from mattbit February 26, 2024 17:08
@mattbit mattbit requested a review from Hartorn March 21, 2024 18:36
Copy link

sonarcloud bot commented Mar 22, 2024

@mattbit mattbit merged commit 666e450 into main Mar 22, 2024
16 checks passed
@mattbit mattbit deleted the gsk-2892-rework-question-generation branch March 22, 2024 18:05
@mattbit mattbit restored the gsk-2892-rework-question-generation branch March 23, 2024 16:58
Copy link
Member

@Hartorn Hartorn left a comment

Choose a reason for hiding this comment

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

Overall solid PR, but too much repeated used of string key in dict.
This could be improved by using dataclass/constant/formatting function

giskard/rag/evaluate.py Show resolved Hide resolved
giskard/rag/evaluate.py Show resolved Hide resolved
giskard/rag/evaluate.py Show resolved Hide resolved
giskard/rag/evaluate.py Show resolved Hide resolved
giskard/rag/knowledge_base.py Show resolved Hide resolved
giskard/rag/knowledge_base.py Show resolved Hide resolved
giskard/rag/knowledge_base.py Show resolved Hide resolved
giskard/rag/knowledge_base.py Show resolved Hide resolved
Comment on lines +23 to +29
topics = [question["metadata"]["topic"] for question in question_evaluation]
failure_palette = ["#ba0e0e", "#0a980a"]
questions = [question["question"] for question in question_evaluation]
agent_answer = [question["agent_answer"] for question in question_evaluation]
reference_answer = [question["reference_answer"] for question in question_evaluation]
correctness = [question["correctness"] for question in question_evaluation]
colors = [failure_palette[question["correctness"]] for question in question_evaluation]
Copy link
Member

Choose a reason for hiding this comment

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

Lots of string defined here, aren't we missing constants here ?

giskard/rag/question_generators/base.py Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants