IDinsight / ask-a-question

Trustworthy question-answering AI plugin for chatbots in the social sector with advanced content performance analysis.
https://ask-a-question.com
BSD 3-Clause "New" or "Revised" License
28 stars 4 forks source link

[DEPRIORITIZED][AAQ-765] Retry LLM generation when AlignScore fails #399

Open lickem22 opened 3 months ago

lickem22 commented 3 months ago

Reviewer: @amiraliemami Estimate: 40mins

Ticket

Fixes:AAQ-675

Description

Goal

The goal of this PR is to allow retrying LLM response again when AlignScore fails because of a low score N times (default is 0).

Changes

The following changes have been made:

How has this been tested?

Testing this is tricky because for this change to be observed we need LLM response to work but AlignScore to fail, and finding these cases are not straighforward. Was tested two ways: First way is :

Checklist

Fill with x for completed.

(Delete any items below that are not relevant)