-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
测试产品生成统计表.xlsx,agent无法正确提取表头 #124
Comments
可否提供所使用的数据文件,或者部分数据的截图? |
首先,需要确认一下 然后可以看一下Normalize Datasets文档 需要注意的是,对异型表的处理有一部分依靠的是模型本身的能力 |
感谢!! |
|
@AngGaGim 我注意到您评论的代码片段中存在明文的apikey,请注意保护您的隐私。 正如我最开始提到的一样, |
抱歉,我可能有点理解错你的意思了,我详细看了你的输出,其中有一段错误信息: ---------------------------------------------------------------------------
NameError Traceback (most recent call last)
Cell In[1], line 2
1 # Show the first 5 rows to understand the structure
----> 2 df.head(5)
NameError: name 'df' is not defined 解决这个错误,需要在 对于能否将数据转成标准格式,这个取决于模型的能力。 |
我使用这个示例,normalize_llm和llm一样用的是tablegpt2在huggingface上的7B模型,好像无法正常提取表格 代码如下: llm = ChatOpenAI(base_url="http://xxx:xxx/v1", api_key="TableGPT2-7B_api_key", model_name="TableGPT2-7B") agent = create_tablegpt_graph( from typing import TypedDict class Attachment(TypedDict): attachment_msg = HumanMessage( from datetime import date Reading and processing files.response = await agent.ainvoke( response["messages"] 任务栏打印的结果如下 Failed to generate normalization code: Could not parse output: ['产品生产统计表', '生产日期', '制造编号', '产品名称', '预定产量', '本日产量预计', '本日产量实际', '累计产量', '耗费工时本日', '耗费工时累计', '2007-08-10', 'FK-001', '猕猴桃果肉饮料', 100000, 40000, 45000, 83000, 10, 20, '2007-08-11', 'FK-002', '西瓜果肉饮料', 100000, 40000, 44000, 82000, 9, 18] |
@jianpugh 您好,我也是遇到同样的问题,请问最后解决了吗? |
No description provided.
The text was updated successfully, but these errors were encountered: