Hk-Gosuto / ChatGPT-Next-Web-LangChain

一键拥有你自己的 ChatGPT 网页服务。 One-Click to deploy your own ChatGPT web UI.(基于 langchain 实现的插件版本 Plugin version implemented based on langchain)
https://n3xt.chat
MIT License
1.13k stars 399 forks source link

[Bug] Vercel使用RAG的两个小问题 #293

Closed MuRo-J closed 1 month ago

MuRo-J commented 1 month ago

Bug Description

辛苦大佬,终于体验上了,之前一版在vercel上很难体会的到,新的这一版初步尝试后发现这两个点,辛苦您看看

1.开启插件的状态下直接报错 没有查看到哪里引发的,关闭插件后可以正常,这个是不是预期的呀

{
  "error": true,
  "message": "400 Invalid 'tools': empty array. Expected an array with minimum length 1, but got an empty array instead."
}

2.每点击一次刷新(重新提问)会重复一次文件名,也不算影响,只是报给大佬一下 CleanShot 2024-07-18 at 21 28 46

Steps to Reproduce

1.vercel 2.上传小文件 testcsv.csv 3.简单提问,想尝试看看是否会读取

Expected Behavior

1.不确定是预期内的结果还是,没有发现的 目前关闭插件使用Rag可以正常上传文件并被读取 2.只是文案向的优化,看看是否值得

3.点击刷新按钮重问,模拟日常可能想获取一些其他答案的时候

Screenshots

No response

Deployment Method

Desktop OS

No response

Desktop Browser

No response

Desktop Browser Version

No response

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Browser Version

No response

Additional Logs

No response

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] Two minor problems with Vercel's use of RAG

Hk-Gosuto commented 1 month ago

如果你是vercel部署的话需要配置 NEXT_PUBLIC_ENABLE_NODEJS_PLUGIN=1 强制使用 node 运行时来使用 rag 功能

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically.


If you deploy by vercel, you need to configure NEXT_PUBLIC_ENABLE_NODEJS_PLUGIN=1 to force the use of node runtime to use the rag function.