how can i add custom prompt in create_pandas_dataframe_agent #27312
deepak-hl
announced in
Ask Dosu (Archived)
Replies: 1 comment
-
The error you're encountering is due to the use of unsupported keyword arguments ( Here's how you can do it:
This approach allows you to customize the prompt while adhering to the current API requirements [1][2]. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After using above code I am getting below error
/home/deepak/summarizer_bot/.venv/lib/python3.12/site-packages/langchain_experimental/agents/agent_toolkits/pandas/base.py:283: UserWarning: Received additional kwargs {'PREFIX': 'Answer the following questions as best you can. You have access to the following tools:', 'FORMAT_INSTRUCTIONS': 'Use the following format:\n\nQuestion: the input question you must answer\nThought: you should always think about what to do\nAction: the action to take, should be one of [{tool_names}]\nAction Input: the input to the action\nObservation: the result of the action\n... (this Thought/Action/Action Input/Observation can repeat N times)\nThought: I now know the final answer\nFinal Answer: the final answer to the original input question in JSON format, where the keys are entities and the values are their corresponding data', 'SUFFIX': 'Begin!\n\nQuestion: {input}\nThought:{agent_scratchpad}'} which are no longer supported.
Beta Was this translation helpful? Give feedback.
All reactions