langchain icon indicating copy to clipboard operation
langchain copied to clipboard

create_csv_agent incomplete response

Open alantseone opened this issue 1 year ago • 0 comments

System Info

when > Finished chain. output: [article] but not complete, it still has something to write.

how can I make article completely?

Who can help?

No response

Information

  • [ ] The official example notebooks/scripts
  • [X] My own modified scripts

Related Components

  • [ ] LLMs/Chat Models
  • [ ] Embedding Models
  • [ ] Prompts / Prompt Templates / Prompt Selectors
  • [ ] Output Parsers
  • [ ] Document Loaders
  • [ ] Vector Stores / Retrievers
  • [ ] Memory
  • [X] Agents / Agent Executors
  • [ ] Tools / Toolkits
  • [ ] Chains
  • [ ] Callbacks/Tracing
  • [ ] Async

Reproduction

`from langchain.agents import create_csv_agent from langchain.llms import OpenAI import os os.environ["OPENAI_API_KEY"] = 'mykey' #llm = OpenAI(model_name="gpt-3.5-turbo-0613")

agent = create_csv_agent(OpenAI(temperature=0,batch_size=5), ['csv/a.csv', 'csv/b.csv'], verbose=True) a = agent.run("Help me analyze customer consumption and generate an article") print(a)`

Expected behavior

i want output a complete article

alantseone avatar Jun 14 '23 08:06 alantseone