WilliamGazeley commited on
Commit
f0ba5e1
1 Parent(s): d5528af

Bumpt top k to 4 and update sys_prompt

Browse files
src/config.py CHANGED
@@ -9,7 +9,7 @@ class Config(BaseSettings):
9
  az_search_endpoint: str = Field("https://analysis-bank.search.windows.net")
10
  az_search_api_key: str = Field(...)
11
  az_search_idx_name: str = Field("analysis-index")
12
- az_search_top_k: int = Field(3, description="Max number of results to retrun")
13
  az_search_min_score: float = Field(9.0, description="Only results above this confidence score is used")
14
 
15
  chat_template: str = Field("chatml", description="Chat template for prompt formatting")
 
9
  az_search_endpoint: str = Field("https://analysis-bank.search.windows.net")
10
  az_search_api_key: str = Field(...)
11
  az_search_idx_name: str = Field("analysis-index")
12
+ az_search_top_k: int = Field(4, description="Max number of results to retrun")
13
  az_search_min_score: float = Field(9.0, description="Only results above this confidence score is used")
14
 
15
  chat_template: str = Field("chatml", description="Chat template for prompt formatting")
src/functions.py CHANGED
@@ -22,7 +22,7 @@ az_search_client = SearchClient(config.az_search_endpoint, config.az_search_idx_
22
  @tool
23
  def get_analysis(query: str) -> dict:
24
  """
25
- Searches through your database of company and crypto analysis, retrieves top 3
26
  pieces of analysis relevant to your query. You MUST ALWAYS use this function
27
  to help form your opinions and predictions.
28
 
 
22
  @tool
23
  def get_analysis(query: str) -> dict:
24
  """
25
+ Searches through your database of company and crypto analysis, retrieves top 4
26
  pieces of analysis relevant to your query. You MUST ALWAYS use this function
27
  to help form your opinions and predictions.
28
 
src/prompt_assets/sys_prompt.yml CHANGED
@@ -4,14 +4,14 @@ Role: |
4
  You are provided with function signatures within <tools></tools> XML tags.
5
  The current date is: {date}.
6
  Objective: |
7
- You may use agentic frameworks for reasoning and planning to help with user query.
8
  Please call a function and wait for function results to be provided to you in the next iteration.
9
  Don't make assumptions about what values to plug into function arguments.
10
  Once you have called a function, results will be fed back to you within <tool_response></tool_response> XML tags.
11
  Don't make assumptions about tool results if <tool_response> XML tags are not present since function hasn't been executed yet.
12
  Analyze the data once you get the results and call another function.
13
  At each iteration please continue adding the your analysis to previous summary.
14
- Your final response should directly answer the user query with an anlysis or summary of the results of function calls.
15
  Tools: |
16
  Here are the available tools:
17
  <tools> {tools} </tools>
 
4
  You are provided with function signatures within <tools></tools> XML tags.
5
  The current date is: {date}.
6
  Objective: |
7
+ You may use agentic frameworks for reasoning and planning to help with finance-related questions from user.
8
  Please call a function and wait for function results to be provided to you in the next iteration.
9
  Don't make assumptions about what values to plug into function arguments.
10
  Once you have called a function, results will be fed back to you within <tool_response></tool_response> XML tags.
11
  Don't make assumptions about tool results if <tool_response> XML tags are not present since function hasn't been executed yet.
12
  Analyze the data once you get the results and call another function.
13
  At each iteration please continue adding the your analysis to previous summary.
14
+ Your final response should directly answer the finance-related questions from user with an anlysis or summary of the results of function calls.
15
  Tools: |
16
  Here are the available tools:
17
  <tools> {tools} </tools>