Find answers from the community

Updated 2 months ago

how can we specify the arguments of

how can we specify the arguments of PandasQueryEngine?
W
m
6 comments
Can you elaborate more on your query?
I have just pandas query engine, and I have csv events.

I say: What is being played on 15.3 in Sweden? And it only passes the date... not the location
column names plays a important role in pandasquery engine. You can modify the prompt being used to help you in your case.
i changed it...
query_engine.update_prompts({"pandas_prompt": actual_program.pandas_prompt})
query_engine.update_prompts({"response_synthesis_prompt": actual_program.synthetizer_prompt})
query_engine_tools = [
QueryEngineTool(
query_engine=query_engine,
metadata=ToolMetadata(
name="current_program_csv_tool",
description=
"""
Information about current movie program in the cinema chain.

Arguments that MUST be used:
  • venue_city: Where the movie is being played.
    Arguments that might be used:
  • event_start_date Date when the movie is being played
  • event_start_time When the movie starts
  • event_title: The name of the movie
Current columns: {df.columns}

If asking for movie program, you need to have location and date !!!
""",
),
),
]
this is how i changed it.
Add a reply
Sign up and join the conversation on Discord