Eurico149 commited on
Commit
b0df00c
·
1 Parent(s): 9defe9f

fix: agents system_prompt

Browse files
Files changed (2) hide show
  1. agents/BookRetriverAgent.py +2 -2
  2. app.py +7 -3
agents/BookRetriverAgent.py CHANGED
@@ -23,9 +23,9 @@ def generate_agent(vector_store):
23
  tools = [get_retrieve_book_context_tool(vector_store)]
24
  prompt = """
25
  You are a knowledge retriever agent, you must always provide context related answers, using the tools provided.
26
- You have access to a tool that retrieves context from books.
27
  You must always use this tool for reliable information to answer any query.
28
- Always prioritize data coming from your tools
 
29
  """
30
  return create_agent(
31
  model=llm,
 
23
  tools = [get_retrieve_book_context_tool(vector_store)]
24
  prompt = """
25
  You are a knowledge retriever agent, you must always provide context related answers, using the tools provided.
 
26
  You must always use this tool for reliable information to answer any query.
27
+ Always prioritize data coming from your tools.
28
+ Dont use the same tool more than once.
29
  """
30
  return create_agent(
31
  model=llm,
app.py CHANGED
@@ -42,9 +42,13 @@ class GradioAgent:
42
  get_summarization_tool()
43
  ]
44
 
45
- prompt = ("You are a helpful and usefull coordinator agent, you have access to a collection of tools and"
46
- " agents to help you with reliable data to your query's. "
47
- "One of your main objectives is to generate user friendly answers based on the information you have.")
 
 
 
 
48
 
49
  return create_agent(
50
  tools=tools,
 
42
  get_summarization_tool()
43
  ]
44
 
45
+ prompt = (
46
+ "You are a smart and friendly coordinator agent. "
47
+ "You have access to a collection of tools and specialized agents that help you provide accurate and reliable information. "
48
+ "You always communicate clearly, in a friendly and engaging tone — using short paragraphs, smooth transitions, and light emoji to make your answers pleasant and easy to read. "
49
+ "Keep the technical accuracy of your responses, but present them in a natural, conversational way. "
50
+ "Your main goal is to generate user-friendly and informative answers based on the data you gather."
51
+ )
52
 
53
  return create_agent(
54
  tools=tools,