Open m-ali-awan opened 1 year ago
I have tried following:
template = """We are scraping data from a Vehicle Damage Estimating Software. First input is Vehicle Make Model Year, Type, and respective Part and Operation.
Then we have to choose from possible options to reach that specific part. I will provide you with received Options, you have to tell me which to choose,
So we can reach to respective part info
Just output single option, and not folllowing sequence.
Begin! Question: {input} {agent_scratchpad}"""
gpt4_agent = create_pandas_dataframe_agent(
ChatOpenAI(temperature=0,
openai_api_key=OPENAI_API_KEY,
model_name = 'gpt-4'),
[sub_listing_df,company_df], verbose=True,
chain_type_kwargs={
'prompt': PromptTemplate(template=template,input_variables=['input','agent_scratchpad'])
}
)
But it is not changing the agent prompt template
Hi , Thanks for veery helping notebooks
Hope all of you are doing great.
I am developing a chatbot/question-answer agent using GPT-4 on pandas dataframe in langchain. I am able to make it work with following code:
But, I think that I can make it more optimized by changing some paramters, and especially prompt template: Here is the prompt template being used by default:
How can I change the prompt template?
Thanks for any help