labring / FastGPT

FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, and visual AI workflow orchestration, letting you easily develop and deploy complex question-answering systems without the need for extensive setup or configuration.
https://tryfastgpt.ai
Other
17.46k stars 4.69k forks source link

4.8.9判断文件类型不生效 #2385

Closed SDAIer closed 2 months ago

SDAIer commented 2 months ago

4.8.9上传附件或图片,用if判断文件链接是否包括txt或者jpg不生效,一直走的else 604ada4af3c0c2a24feb9dd41cf44504 13a293450782f94c91a51957cfeca5b1 657e0215251d93d9020f6b1580a7ea8d

c121914yu commented 2 months ago

它是个数组大哥~

zenmic7 commented 2 months ago

ae082897ef64d2c9e057196c8eb21555

SDAIer commented 2 months ago

写个循环取出来再判断

---原始邮件--- 发件人: @.> 发送时间: 2024年8月17日(周六) 晚上6:20 收件人: @.>; 抄送: @.**@.>; 主题: Re: [labring/FastGPT] 4.8.9判断文件类型不生效 (Issue #2385)

解决了吗?试了各种方法都不行🥲

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

zenmic7 commented 2 months ago

我试了上面可行的,用代码把数组转成字符串,就能判断了,还有文件上传里面“最大文件数量”选择1,不然一轮对话里,每次上传文档都会把之前的文档带着一起分析,官方文档有介绍😂

SDAIer commented 2 months ago

还有文件上传里面“最大文件数量”选择1,不然一轮对话里,每次上传文档都会把之前的文档带着一起分析,官方文档有介绍

这句话我没看到,麻烦给个官方文档的地址我看下,多谢

zenmic7 commented 2 months ago

https://doc.fastgpt.in/docs/course/fileinput/

SDAIer commented 2 months ago

看到了 多文档更新了这部分之前没注意

---原始邮件--- 发件人: @.> 发送时间: 2024年8月18日(周日) 中午1:49 收件人: @.>; 抄送: @.**@.>; 主题: Re: [labring/FastGPT] 4.8.9判断文件类型不生效 (Issue #2385)

https://doc.fastgpt.in/docs/course/fileinput/

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>