3 ms·
> When posing a question, it’s crucial to remember that the entire dataframe is passed along with the question every time, so it may not be an ideal solution fo
by prepend 3y ago
> When posing a question, it’s crucial to remember that the entire dataframe is passed along with the question every time, so it may not be an ideal solution for handling large datasets.
This really limits this package as I frequently want to perform multiple operations on a data frame. Does OpenAI not allow sessions so the data frame must be passed each call?
- nathan_compton 3y agoYou can't really solve this with sessions. Even when you use chatgpt in the web console the entire history of the chat is submitted each time you generate a new response. The history is the only way these models know what you've been talking about. The history _is_ the session. I suppose there will be ways around this eventually, though. For this particular application it might suffice for slightly large datasets to just send a sample. I think the approach here is kind of dumb, though. It works significantly better to send the AI meta-data and let it write queries (with a limit on result count) iteratively to answer your questions.
- the88doctor 3y agoThat's exactly what I was wondering. Why send the entire dataset when you can just send the schema and ask the AI to generate queries and then translate query results back into natural language?