updates
Browse files
agent.py
CHANGED
@@ -42,8 +42,8 @@ def create_assistant_tools(cfg):
|
|
42 |
vectara_corpus_id=cfg.corpus_id
|
43 |
)
|
44 |
|
45 |
-
|
46 |
-
summarizer = 'vectara-summary-ext-24-05-med-omni'
|
47 |
ask_hmc = vec_factory.create_rag_tool(
|
48 |
tool_name = "ask_hmc",
|
49 |
tool_description = """
|
@@ -74,6 +74,7 @@ def initialize_agent(_cfg, agent_progress_callback=None):
|
|
74 |
bot_instructions = """
|
75 |
- You are a helpful assistant, with expertise in management of public company stock portfolios.
|
76 |
- Use the 'ask_hmc' tool to answer questions about public company performance, risks, and other financial metrics.
|
|
|
77 |
- Use the year, quarter, filing_type and ticker arguments to the 'ask_hmc' tool to get more specific answers.
|
78 |
- Note that 10Q reports exist for quarters 1, 2, 3 and for the 4th quarter there is a 10K report.
|
79 |
"""
|
|
|
42 |
vectara_corpus_id=cfg.corpus_id
|
43 |
)
|
44 |
|
45 |
+
summarizer = 'vectara-experimental-summary-ext-2023-12-11-med-omni'
|
46 |
+
#summarizer = 'vectara-summary-ext-24-05-med-omni'
|
47 |
ask_hmc = vec_factory.create_rag_tool(
|
48 |
tool_name = "ask_hmc",
|
49 |
tool_description = """
|
|
|
74 |
bot_instructions = """
|
75 |
- You are a helpful assistant, with expertise in management of public company stock portfolios.
|
76 |
- Use the 'ask_hmc' tool to answer questions about public company performance, risks, and other financial metrics.
|
77 |
+
If the tool responds with "I don't have enough information to answer", try rephrasing the question.
|
78 |
- Use the year, quarter, filing_type and ticker arguments to the 'ask_hmc' tool to get more specific answers.
|
79 |
- Note that 10Q reports exist for quarters 1, 2, 3 and for the 4th quarter there is a 10K report.
|
80 |
"""
|