Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ CONFIG = {
|
|
20 |
# ),
|
21 |
"Teapot AI": TeapotAI(
|
22 |
documents=pd.read_csv("https://docs.google.com/spreadsheets/d/1NNbdQWIfVHq09lMhVSN36_SkGu6XgmKTXgBWPyQcBpk/export?gid=1617599323&format=csv").content.str.split('\n\n').explode().reset_index(drop=True).to_list(),
|
23 |
-
settings=TeapotAISettings(rag_num_results=
|
24 |
),
|
25 |
}
|
26 |
|
@@ -111,7 +111,7 @@ async def on_reaction_add(reaction, user):
|
|
111 |
thread = await message.create_thread(name=f"Debug Thread: '{cleaned_message[0:30]}...'", auto_archive_duration=60)
|
112 |
|
113 |
rag_result, search_result = await debug_teapot_inference(server_name, user_input)
|
114 |
-
debug_response = "## RAG:\n```"+discord.utils.escape_markdown(rag_result)[-
|
115 |
await thread.send(debug_response)
|
116 |
|
117 |
|
|
|
20 |
# ),
|
21 |
"Teapot AI": TeapotAI(
|
22 |
documents=pd.read_csv("https://docs.google.com/spreadsheets/d/1NNbdQWIfVHq09lMhVSN36_SkGu6XgmKTXgBWPyQcBpk/export?gid=1617599323&format=csv").content.str.split('\n\n').explode().reset_index(drop=True).to_list(),
|
23 |
+
settings=TeapotAISettings(rag_num_results=3)
|
24 |
),
|
25 |
}
|
26 |
|
|
|
111 |
thread = await message.create_thread(name=f"Debug Thread: '{cleaned_message[0:30]}...'", auto_archive_duration=60)
|
112 |
|
113 |
rag_result, search_result = await debug_teapot_inference(server_name, user_input)
|
114 |
+
debug_response = "## RAG:\n```"+discord.utils.escape_markdown(rag_result)[-900:]+"```\n\n## Search:\n```"+discord.utils.escape_markdown(search_result)[-900:]+"```"
|
115 |
await thread.send(debug_response)
|
116 |
|
117 |
|