Skip to content

[GSK-2892] Improve RAG toolset#1820

Merged
mattbit merged 153 commits intomainfrom
gsk-2892-rework-question-generation
Mar 22, 2024
Merged

[GSK-2892] Improve RAG toolset#1820
mattbit merged 153 commits intomainfrom
gsk-2892-rework-question-generation

Conversation

@pierlj
Copy link
Copy Markdown
Member

@pierlj pierlj commented Feb 26, 2024

No description provided.

@linear
Copy link
Copy Markdown

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
@sonarqubecloud
Copy link
Copy Markdown

@mattbit mattbit merged commit 666e450 into main Mar 22, 2024
@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
Copy Markdown
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

Comment thread giskard/rag/evaluate.py
Comment thread giskard/rag/evaluate.py
Comment thread giskard/rag/evaluate.py
Comment thread giskard/rag/evaluate.py
Comment thread giskard/rag/knowledge_base.py
Comment thread giskard/rag/knowledge_base.py
Comment thread giskard/rag/knowledge_base.py
Comment thread giskard/rag/knowledge_base.py
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
Copy Markdown
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 ?

Comment thread giskard/rag/question_generators/base.py
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.

4 participants