You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have built a local agent which has access to tools like wolfram_alpha along with builtin::rag/knowledge_search.
The vector db for my RAG contains documents related to my product and I have explicitly mentioned in the system prompt to use the RAG tool whenever user asks question related to my product for QnA but still the agent tries to search using the worlfram tool.
is it due to my system prompt or is there a vay to assign priority when using multiple tools ?
`model_id - llama3.2:1b
agent = Agent(
client=client,
model=model_id,
instructions="""
You are a helpful Personal AI assistant with access to tools.
The tool allows you to search the web for up-to-date information.
Use it whenever you need to answer a question that requires current or specific details.
You can also help with factual questions using the WolframAlpha tool for questions involving
data, facts or calculations. Never guess-always call the tool when in doubt.
Whenever a user asks a question related to Market Maven, you must use the
RAG tool to retrieve the most relevant and up-to-date information before responding.
If you do not find any revelant information, let the user know.
### Guidelines for Using web_search
- **Use for Current Events**: If the question is about current events, recent news, or topics that might have changed since the last update, always use the web search.
- **Verify Information**: If you are unsure about the accuracy of the information, especially for factual or statistical queries, use
the web search to verify.
""",
tools=[
"builtin::websearch",
"builtin::wolfram_alpha",
{
"name": "builtin::rag/knowledge_search",
"args": {"vector_db_ids": ["my_knowledge_base"]}
}
]
)`
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have built a local agent which has access to tools like
wolfram_alpha
along withbuiltin::rag/knowledge_search
.The vector db for my RAG contains documents related to my product and I have explicitly mentioned in the system prompt to use the RAG tool whenever user asks question related to my product for QnA but still the agent tries to search using the worlfram tool.
is it due to my system prompt or is there a vay to assign priority when using multiple tools ?
`model_id - llama3.2:1b
agent = Agent(
client=client,
model=model_id,
instructions="""
You are a helpful Personal AI assistant with access to tools.
The tool allows you to search the web for up-to-date information.
Use it whenever you need to answer a question that requires current or specific details.
the web search to verify.
""",
tools=[
"builtin::websearch",
"builtin::wolfram_alpha",
{
"name": "builtin::rag/knowledge_search",
"args": {"vector_db_ids": ["my_knowledge_base"]}
}
]
)`
Beta Was this translation helpful? Give feedback.
All reactions