Skip to content

[Question]: How to call rag in the agent #20573

@likaiyuan00

Description

@likaiyuan00

Question Validation

  • I have searched both the documentation and discord for an answer.

Question

How to call rag in the agent
Using this has no effect
budget_tool = QueryEngineTool.from_defaults(
query_engine=query_engine,
name="rag",
description="rag",
)
workflow = AgentWorkflow.from_tools_or_functions(
[budget_tool, weather],
llm=llm,
system_prompt="For unknown questions, the rag tool must be used to answer them",
verbose=True
)
reference https://github.com/run-llama/python-agents-tutorial/blob/main/1_basic_agent.py
I need help

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions