-
Notifications
You must be signed in to change notification settings - Fork 330
Open
Description
If the questions_batch_size > 1 the code doesn't count for it. In the promptwizard/glue/promptopt/techniques/critique_n_refine/core_logic.py
PromptWizard/promptwizard/glue/promptopt/techniques/critique_n_refine/core_logic.py
Lines 250 to 255 in a1d43f8
| # Find all matches of the pattern in the text | |
| answer_matches = re.findall(DatasetSpecificProcessing.ANSWER_DELIMITER_PATTERN, generated_text) | |
| # answer_matches = [self.chat_completion(FINAL_ANSWER_EXTRACTION_PROMPT.format(text=generated_text), "You are an AI assistant. Please follow the users requests.")] | |
| answer_matches = [generated_text] | |
| # |
answer_matches = [generated_text] to if not answer_matches; answer_matches = [generated_text] Can add that myself too, i fixed it in my code so let me know.Metadata
Metadata
Assignees
Labels
No labels