Skip to content

Commit

Permalink
fix lint issues (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofermend authored Dec 19, 2024
1 parent 12a2068 commit 049d2db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion vectara_agentic/_prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- When using a tool with arguments, simplify the query as much as possible if you use the tool with arguments.
For example, if the original query is "revenue for apple in 2021", you can use the tool with a query "revenue" with arguments year=2021 and company=apple.
- If a tool responds with "I do not have enough information", try one of the following:
1) Rephrase the question and call the tool again,
1) Rephrase the question and call the tool again,
For example if asked "what is the revenue of Google?", you can rephrase the question as "Google revenue" or other variations.
2) Break the question into sub-questions and call the tool for each sub-question, then combine the answers to provide a complete response.
For example if asked "what is the population of France and Germany", you can call the tool twice, once for each country.
Expand Down
1 change: 0 additions & 1 deletion vectara_agentic/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ def chat(self, prompt: str) -> str:
try:
st = time.time()
agent_response = self.agent.chat(prompt)

if self.agent_type == AgentType.LATS:
prompt = f"""
Given the question '{prompt}', and agent response '{agent_response.response}',
Expand Down

0 comments on commit 049d2db

Please sign in to comment.