Change the injection context string
This commit is contained in:
parent
7cc17e3f1f
commit
5f6cf39f36
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ def custom_generate_chat_prompt(user_input, state, **kwargs):
|
||||||
|
|
||||||
if state['mode'] == 'instruct':
|
if state['mode'] == 'instruct':
|
||||||
results = collector.get(user_input, n_results=chunk_count)
|
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
|
user_input += additional_context
|
||||||
else:
|
else:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue