Wie kann man die eigenständige Frage -Erzeugung für die Berater -KI einstellen?Python

Python-Programme
Anonymous
 Wie kann man die eigenständige Frage -Erzeugung für die Berater -KI einstellen?

Post by Anonymous »

Code: Select all

# Generate standalone question
condense_question_prompt = PromptTemplate.from_template("""
Given the user's follow-up question, which may be written in Bangla phonetic, Bangla, or English, and the previous conversation history, rewrite the user's follow-up question into a standalone query in English. Ensure the query includes enough context to be understood without the previous messages. If the input is in Bangla or Bangla phonetic, translate it into English before forming the standalone query. The goal is to create a precise query to retrieve relevant information from the vector store. Make sure the query is concise but complete.
Please don't repharse hi, hello, hey, thank you , whatsup or similar greetings. Please keep them as is.

Chat History:
{chat_history}

Follow Up Input: {question}
Standalone question:""")

< /code>
So verfeinern Sie die Eingabeaufforderung wie unten: < /p>
INFO:main:Original query: i want to apply in belgium?
INFO:main:Generated standalone question: What are the steps to apply for a Bachelor's program at universities in Belgium, and how can you assist with the application process?
Ich habe das Stanalon: Was ist die aktuelle Aufnahme in Belgien?>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post