Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

CSV Agent - OpenAI Context limit #26

Open
infa-bhbalaji opened this issue Mar 17, 2023 · 2 comments
Open

CSV Agent - OpenAI Context limit #26

infa-bhbalaji opened this issue Mar 17, 2023 · 2 comments

Comments

@infa-bhbalaji
Copy link

I am trying to load a large CSV with create_csv_agent function.
I get the error " This model's maximum context length is 4097 tokens, however you requested 6595 tokens" when I do agent.run() for some commands. I tried looking for ways to use document splitter here. But it is not clear from the documentation about how to integrate a split document with agents directly.

@Adorp94
Copy link

Adorp94 commented May 9, 2023

I'm running through the same issue. What's odd for me is that I was able to run it some weeks ago without this issue. Have found the way to solve it? Or have you applied an strategy that worked (i.e. map reduce, refining, etc).

Thanks. I will be working on how to solve it. If I come with an asnwer I'll respond here.

@TMoneyBidness
Copy link

I have the same issue. It's infuriating. Sometimes it works, others it doesn't, I have a CSV with 100 rows.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants