mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00: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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user