bugfix: patched csv agent (#1095)
This commit is contained in:
commit
d85cd1a3c1
1 changed files with 2 additions and 2 deletions
|
|
@ -106,9 +106,9 @@ class CSVAgent(CustomAgentExecutor):
|
||||||
tools,
|
tools,
|
||||||
prefix=PANDAS_PREFIX,
|
prefix=PANDAS_PREFIX,
|
||||||
suffix=PANDAS_SUFFIX,
|
suffix=PANDAS_SUFFIX,
|
||||||
input_variables=["df", "input", "agent_scratchpad"],
|
input_variables=["df_head", "input", "agent_scratchpad"],
|
||||||
)
|
)
|
||||||
partial_prompt = prompt.partial(df=str(df.head()))
|
partial_prompt = prompt.partial(df_head=str(df.head()))
|
||||||
llm_chain = LLMChain(
|
llm_chain = LLMChain(
|
||||||
llm=llm,
|
llm=llm,
|
||||||
prompt=partial_prompt,
|
prompt=partial_prompt,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue