Find answers from the community

Updated 4 months ago

Chat history

At a glance

The community member is trying to create a prompt that can rewrite a follow-up message from a human to make it an independent question, without using any prior context from the chat history. The community members are discussing the intent behind including the chat history in the input, and whether it's necessary to use the chat history at all. One community member suggests trying a chat engine or data agent if the chat history is an important component. The community member is using version 0.6.35 and is having trouble removing the chat history while still answering the current question without any other knowledge of the conversation.

From time to time the chat performs a query with the question previously asked. I want it to only answer the current question without any prior context.
Could someone help me see why sometimes you use what was asked last time?

custom_prompt = Prompt(
"""\
Given a conversation (between a Lawyer and Legal Assistant) and a follow-up message from a Human, \
rewrite the message to make it an independent question. You must not make up information.


<Chat History>
{chat_history}


<Follow Up Message>
{question}

<Standalone question>
"""
)
L
F
4 comments
So the intent is to only use the chat history for retrieval then? Or what's the intention of putting the chat history in the input?
Side note, I would recommend trying one of our chat engines or data agents if chat history is an important component πŸ‘€
I was given that example, but when i try to remove the chat history. I only want to anwers the current question without any other knowledge of the conversation
I sm using version 0.6.35
Add a reply
Sign up and join the conversation on Discord