Find answers from the community

Updated 3 months ago

Chat history

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