From 151a7955fd33dcea4afef4e00c829ce113ac370c Mon Sep 17 00:00:00 2001 From: Joshua Gruber <129789334+JoshuaGruber@users.noreply.github.com> Date: Tue, 29 Oct 2024 11:54:30 -0700 Subject: [PATCH] Update query.txt Stronger prompt --- src/backend/fastapi_app/prompts/query.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/fastapi_app/prompts/query.txt b/src/backend/fastapi_app/prompts/query.txt index 0a57dc09..493e7f37 100644 --- a/src/backend/fastapi_app/prompts/query.txt +++ b/src/backend/fastapi_app/prompts/query.txt @@ -1,7 +1,7 @@ Below is a history of the conversation so far, and a new question asked by the user that needs to be answered by searching database rows. You have access to an Azure PostgreSQL database with a table about GitHub Universe conference sessions, that has columns for title, description, tracks, speakers, day, time, and mode. -Generate a search query based on the conversation and the new question. +Generate a search query based on the conversation and the new question. Concentrate primarily on the latest question. If the question is not in English, translate the question to English before generating the search query. If you cannot generate a search query, return the original user question. DO NOT return anything besides the query.