Skip to content

Commit

Permalink
Tweaks to llm pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmenezes0 committed Jun 23, 2024
1 parent 3efbee0 commit 64c3e32
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion consultation_analyser/pipeline/llm_summariser.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ def create_llm_summaries_for_consultation(consultation, llm_backend: LLMBackend)
empty_answers = Answer.objects.filter(question=question).filter(free_text="")
for answer in empty_answers:
theme, _ = Theme.objects.get_or_create(
question=question, topic_id=None, short_description="No free text response", summary="The respondent did not answer the free text part of this question."
question=question,
topic_id=None,
short_description="No free text response",
summary="The respondent did not answer the free text part of this question.",
)
logger.info(
f"There are answers with no free text responses for question: {theme.question.text}"
Expand Down

0 comments on commit 64c3e32

Please sign in to comment.