mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 09:19:23 +01:00
Change the injection context string
This commit is contained in:
parent
7cc17e3f1f
commit
5f6cf39f36
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user