Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ test_dataset_df = pd.DataFrame(columns=['id', 'title', 'content', 'prechunk_id',
|
|
13 |
test_dataset_df = pd.concat([test_dataset_df, pd.DataFrame([{
|
14 |
'id': '1',
|
15 |
'title': 'Best restaurants in queens',
|
16 |
-
'content': 'I personally like to go to the Pan Chicken, they have fried chicken and amazing bubble tea.',
|
17 |
'prechunk_id': '',
|
18 |
'postchunk_id': '2',
|
19 |
'arxiv_id': '2401.04088',
|
@@ -191,7 +191,7 @@ def generate(query: str, history):
|
|
191 |
"to the user’s question. If the context provides useful recommendations that match what the user is asking for, use them. "
|
192 |
"If the context is unrelated or does not fully answer the question, rely on your general NYC knowledge instead.\n\n"
|
193 |
"Be specific when recommending places—mention neighborhoods, the atmosphere, and why someone might like a spot. "
|
194 |
-
"Keep your tone warm, conversational, and engaging, like a friend who genuinely enjoys sharing their city.\n\n"
|
195 |
"CONTEXT:\n"
|
196 |
"\n---\n".join(get_docs(query, top_k=5))
|
197 |
)
|
|
|
13 |
test_dataset_df = pd.concat([test_dataset_df, pd.DataFrame([{
|
14 |
'id': '1',
|
15 |
'title': 'Best restaurants in queens',
|
16 |
+
'content': 'I personally like to go to the J-Pan Chicken, they have fried chicken and amazing bubble tea.',
|
17 |
'prechunk_id': '',
|
18 |
'postchunk_id': '2',
|
19 |
'arxiv_id': '2401.04088',
|
|
|
191 |
"to the user’s question. If the context provides useful recommendations that match what the user is asking for, use them. "
|
192 |
"If the context is unrelated or does not fully answer the question, rely on your general NYC knowledge instead.\n\n"
|
193 |
"Be specific when recommending places—mention neighborhoods, the atmosphere, and why someone might like a spot. "
|
194 |
+
"Keep your tone warm, conversational, and engaging, like a close friend who genuinely enjoys sharing their city.\n\n"
|
195 |
"CONTEXT:\n"
|
196 |
"\n---\n".join(get_docs(query, top_k=5))
|
197 |
)
|