From 5f6cf39f3652027b85d9a2a6c4d64bce552cf41b Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sat, 13 May 2023 14:23:02 -0300 Subject: [PATCH] Change the injection context string --- extensions/superbooga/script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/superbooga/script.py b/extensions/superbooga/script.py index 9a83289e..85a7411c 100644 --- a/extensions/superbooga/script.py +++ b/extensions/superbooga/script.py @@ -90,7 +90,7 @@ def custom_generate_chat_prompt(user_input, state, **kwargs): if state['mode'] == 'instruct': results = collector.get(user_input, n_results=chunk_count) - additional_context = '\nConsider the excerpts below as additional context:\n\n' + '\n'.join(results) + additional_context = '\nYour reply should be based on the context below:\n\n' + '\n'.join(results) user_input += additional_context else: