Open automaton82 opened 1 month ago
OpenAI suddenly gives the prefix python
, so the whole code becomes:
import pandas as pd
```python
print(df["Company Name"])
` ` `
which causes error when trying to run on pyodide
so the solution is to do some regex check to get rid of the prefix
@HenryHengZJ
It looks like the same issue I just reported with the Airtable Agent.
I would like to take up this issue, planning to implement the changes in the ChatflowPool, kindly assign me @HenryHengZJ. Thanks in advance.
Describe the bug If you attempt to use the CSV agent with the attached public csv city data file, you get the following error:
Question:
what cities are there
Response:
All questions will fail though.
CSV file: cities.csv
To Reproduce Steps to reproduce the behavior:
CSV agent
nodeChat Model
orLLM
node, it's the same result for bothExpected behavior This should work.
Setup
pnpm start
Additional context Aside from this problem, it also appears the uploaded file does not go into DISK BLOB storage. It goes into the database as base64. This behaviour is different than the CSV document loader which does go into DISK BLOB storage immediately when uploaded. Not sure if this is intended or not.