mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
Improve passing user name in pick next research tool prompt
This commit is contained in:
parent
deff512baa
commit
a39e747d07
2 changed files with 2 additions and 3 deletions
|
@ -663,7 +663,7 @@ Assuming you can search my notes and the internet.
|
|||
# Background Context
|
||||
- Current Date: {day_of_week}, {current_date}
|
||||
- My Location: {location}
|
||||
- My {username}
|
||||
- My Name: {username}
|
||||
|
||||
# Available Tool AIs
|
||||
Which of the tool AIs listed below would you use to answer my question? You **only** have access to the following tool AIs:
|
||||
|
|
|
@ -74,7 +74,6 @@ async def apick_next_tool(
|
|||
# Extract Past User Message and Inferred Questions from Conversation Log
|
||||
today = datetime.today()
|
||||
location_data = f"{location}" if location else "Unknown"
|
||||
username = prompts.user_name.format(name=user_name) if user_name else ""
|
||||
|
||||
function_planning_prompt = prompts.plan_function_execution.format(
|
||||
tools=tool_options_str,
|
||||
|
@ -82,7 +81,7 @@ async def apick_next_tool(
|
|||
personality_context=personality_context,
|
||||
current_date=today.strftime("%Y-%m-%d"),
|
||||
day_of_week=today.strftime("%A"),
|
||||
username=username,
|
||||
username=user_name or "Unknown",
|
||||
location=location_data,
|
||||
previous_iterations=previous_iterations_history,
|
||||
max_iterations=max_iterations,
|
||||
|
|
Loading…
Reference in a new issue