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:
Debanjum Singh Solanky 2024-09-11 14:00:35 -07:00
parent 04363a504c
commit 03befc9b12

View file

@ -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,