# 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?>
[code]# 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? [/code] Ich habe das Stanalon: Was ist die aktuelle Aufnahme in Belgien?>
Ich habe ein Quiz erstellt, das alle Fragen aus der Moodle-Datenbank abruft, aber wenn sich an der Frage etwas ändert, erstellt Moodle eine weitere Kopie dieser Frage. Jetzt kann ich die neue Kopie...
Ich versuche, eine einzelne verteilbare Exe-Datei dieser einfachen kleinen Anwendung zu erstellen:
using System;
using System.Windows;
namespace BlackScreen
{
public partial class App : Application...
Blick auf die Python-Verpackung mit PYProject.toml frage ich mich, ob es möglich ist, eine eigenständige ausführbare Datei (mit #!/usr/bin/env python in der ersten Zeile) zum PYProject.toml...
Ich entwickle eine iOS -App, die OpenAIs Bildgenerierungs -API verwendet. Die App funktioniert irgendwann im Simulator und in der Vorschau, aber wenn sie auf einem physischen Gerät bereitgestellt...
Ich versuche, ein T5-Base -Modell für die Erstellung geeigneter Frage gegen ein Compliance-Element zu optimieren. Compliance -Itresams sind Absatz von Texten und meine Frage befindet sich im...