mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Use consistent user attached image placeholder text for chat actors
Get information sources and get output mode don't actually see the images. They just get placeholder text to indicate that the user attached an image to their message for context
This commit is contained in:
parent
04363a504c
commit
03befc9b12
1 changed files with 2 additions and 2 deletions
|
@ -270,7 +270,7 @@ async def aget_relevant_information_sources(
|
|||
chat_history = construct_chat_history(conversation_history)
|
||||
|
||||
if uploaded_image_url:
|
||||
query = f"[placeholder for image attached to this message]\n{query}"
|
||||
query = f"[placeholder for user attached image]\n{query}"
|
||||
|
||||
relevant_tools_prompt = prompts.pick_relevant_information_collection_tools.format(
|
||||
query=query,
|
||||
|
@ -330,7 +330,7 @@ async def aget_relevant_output_modes(
|
|||
chat_history = construct_chat_history(conversation_history)
|
||||
|
||||
if uploaded_image_url:
|
||||
query = f"<user uploaded content redacted> \n{query}"
|
||||
query = f"[placeholder for user attached image]\n{query}"
|
||||
|
||||
relevant_mode_prompt = prompts.pick_relevant_output_mode.format(
|
||||
query=query,
|
||||
|
|
Loading…
Reference in a new issue