Code Monkey home page Code Monkey logo

wenda-webui's Introduction

专为 wenda 设计的 webui

wenda 是一个 LLM 调用平台。为小模型外挂知识库查找和设计自动执行动作,实现不亚于于大模型的生成能力。 本项目调用闻达的 api 接口实现类似于 new bing 的功能。 技术栈:vue3 + element-plus + ts

特色功能

  • 完整的会话管理功能
  • 支持各种快捷键
  • 会话中可直接看到知识库来源
  • 类似于 chatpdf 的文档对话,支持 pdf、docx
  • 支持自定义会话角色(待完成)
  • 知识库来源可自定义(待完成)
  • 类似于 autogpt 的功能(待完成)

demo 演示

完整会话管理 文档对话

TodoList

  • 基础功能
  • 设置项
  • 适配手机
  • 文档对话,支持 pdf、docx
  • 支持自定义会话角色
  • 知识库来源可自定义

更新内容

  • 2023/6/7 新增聊天记录导出功能
  • 2023/5/31 更新适配 websocket,优化细节,详见 commit
  • 2023/5/19 新增文档对话功能,支持 pdf、docx
  • 2023/5/15 完善配置文件和设置功能,完整适配手机
  • 2023/4/27 测试版发布

注意

请先成功运行闻达主项目后,再运行本 webui。如果您遇到了任何问题,请先确认闻达自带的 ui 是否能正常使用!

安装

请先安装 nodejs ,然后再执行以下语句安装依赖

# 请在项目根目录下运行
npm install

环境变量

根目录下的.env 文件请配置为您的实际环境。127.0.0.1 的话只能本地访问。

启动

使用下面的命令行。
或者直接运行根目录下的“一键启动.bat”

# 请在项目根目录下运行
npm run dev

Star History

Star History Chart

wenda-webui's People

Contributors

alanlee1996 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

wenda-webui's Issues

关于这个项目的使用建议

首先感谢作者制作了这个项目,讲讲我用的一些体验,总体上来说很不错,项目的计划进度,也能感受到作者的热忱,有一点小建议就是能否输入框设置成回车即发送,shift+enter为换行,期待你的更新

闻达运行正常,但是检索数据失败

闻达的webui本身的可以正常对话,但是这个项目的webui显示检索数据失败。
闻达终端显示:
Traceback (most recent call last):
File "G:\ChatGLM\WENDAglm\wd-git\wenda\WPy64-38100\python-3.8.10.amd64\lib\site-packages\bottle.py", line 876, in _handle
return route.call(**args)
File "G:\ChatGLM\WENDAglm\wd-git\wenda\WPy64-38100\python-3.8.10.amd64\lib\site-packages\bottle.py", line 1759, in wrapper
rv = callback(*a, **ka)
File "wenda.py", line 159, in api_find
prompt = data.get('prompt')
AttributeError: 'NoneType' object has no attribute 'get'

etCurrentInstance在编译之后报错

const currentInstance = getCurrentInstance();
const settings = () => {
  console.log(currentInstance.ctx.$refs);
  currentInstance.ctx.$refs.settingsDialog.visible = true;
};

右上角设置按钮,这些写法在dev模式下正常,build之后报错。

语音问题,请教

首先,WENDA的稳定性非常好。
最近几天玩了下语音对话,
1、我的环境下其他正常,语音输入异常;
2、在手机上连接,文字输入,语音输出,正常;(除了想换声音外)
3、在电脑上连接,文字输入,语音输出,出怪声;
4、在其他页面上调用聊天窗口,没有耳麦的开关按钮;
5、没发现语音唤醒。

编译完右上角的设置按钮点击后无效

index-27ea1498.js:1 TypeError: Cannot read properties of undefined (reading 'settingsDialog')
at n (index-27ea1498.js:199:97)
at createBaseVNode.onClick.e..e. (index-27ea1498.js:199:1102)
at callWithErrorHandling (index-27ea1498.js:1:20642)
at callWithAsyncErrorHandling (index-27ea1498.js:1:20764)
at HTMLButtonElement.a (index-27ea1498.js:1:94699)

无法运行,运行时直接报错。

VITE v4.3.9 ready in 694 ms

➜ Local: http://localhost:5173/
➜ Network: http://192.168.199.222:5173/
➜ press h to show help
Error: The following dependencies are imported but could not be resolved:

element-plus/es/locale (imported by /opt/wenda-webui/src/App.vue?id=0)

Are they installed?
at file:///opt/wenda-webui/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:44188:23
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///opt/wenda-webui/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:43597:38

ENV:Ubuntu 22.04.1
nodejs:v18.16.0

检查了版本和楼主的都一样的。

发不出去消息,或者提示网络错误

闻达能正常打开,使用本地链接提示网络错误,使用网络链接闻达输出如下错误
Traceback (most recent call last):
File "D:\BaiduNetdiskDownload\wenda\WPy64-38100\python-3.8.10.amd64\lib\site-packages\bottle.py", line 876, in _handle return route.call(**args)
File "D:\BaiduNetdiskDownload\wenda\WPy64-38100\python-3.8.10.amd64\lib\site-packages\bottle.py", line 1759, in wrapper
rv = callback(*a, **ka)
File "wenda.py", line 159, in api_find
prompt = data.get('prompt')
AttributeError: 'NoneType' object has no attribute 'get'

怎么实现demo_img里的两个示例效果?

你好,
我下载了rwkv-4-pile-3b,并使用RWKV-4-Pile-3B-Chn-testNovel-done-ctx2048-20230312.pth模型启动wenda项目工程,知识库使用rtst格式的模型:model/m3e-base
然后配置wenda-webui工程,启动web页面进行测试,发现模型识别效果很差,没有示例效果好,请问如何操作才能实现demo_img目录的两个示例效果?
换别的模型还是额外需要哪里配置?你的demo中的测试是用的哪个模型?有详细链接吗?

谢谢!!

来源信息显示

非常感谢作者分享了这个项目~有个小建议供参考,就是调用知识库的情况下,是否能关闭不显示回答下面的来源信息,只显示回复。目前好像没有开关,需要到代码里手动删掉那个div

希望后续增加流式总结pdf的功能

让闻达不断低读取指定长度的信息,然后对该段信息提炼、总结要点,流式地处理完pdf中的所有信息。同时将信息写到指定文件中。现有的一些chatpdf类的在线工具都用过,对话式提取信息效率很低而且效果也不好,特别是要阅读大量文献的时候。所以希望能够实现批处理式对pdf中的信息压缩为中文信息。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.