OuroborosM commited on
Commit
45c3baa
·
1 Parent(s): 0d29a46

change agent type

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -369,7 +369,7 @@ Text To Sound: Useful when you need to convert text into sound file."""
369
 
370
  PREFIX = """Answer the following questions as best you can with details. You must always check internal vector database first and try to answer the question based on the information in internal vector database only.
371
  Only when there is no information available from vector database, you can search information by using other tools.
372
- You can always use other tools to convert text to sound.
373
  You have access to the following tools:"""
374
 
375
  FORMAT_INSTRUCTIONS = """Use the following format:
@@ -388,7 +388,8 @@ Question: {input}
388
  Thought:{agent_scratchpad}"""
389
 
390
  agent = initialize_agent(tools, llm,
391
- agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
 
392
  verbose = True,
393
  handle_parsing_errors = True,
394
  max_iterations = int(os.getenv("max_iterations")),
 
369
 
370
  PREFIX = """Answer the following questions as best you can with details. You must always check internal vector database first and try to answer the question based on the information in internal vector database only.
371
  Only when there is no information available from vector database, you can search information by using other tools.
372
+ You can always use tools to convert text to sound.
373
  You have access to the following tools:"""
374
 
375
  FORMAT_INSTRUCTIONS = """Use the following format:
 
388
  Thought:{agent_scratchpad}"""
389
 
390
  agent = initialize_agent(tools, llm,
391
+ # agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
392
+ agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION,
393
  verbose = True,
394
  handle_parsing_errors = True,
395
  max_iterations = int(os.getenv("max_iterations")),