Skip to content
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

[Feature Request] 能否加入通过插件分析PDF的功能 #2

Open
lloydzhou opened this issue Sep 9, 2024 · 1 comment
Open

Comments

@lloydzhou
Copy link
Contributor

ChatGPTNextWeb/ChatGPT-Next-Web#5387

这个需求应该也可以通过包装fastgpt的api实现(这里是接口文档地址):
https://doc.tryfastgpt.ai/docs/development/openapi/dataset/#%e6%95%b0%e6%8d%ae

实现逻辑

  1. 更新https://github.com/ChatGPTNextWeb/NextChat-Awesome-Plugins/tree/main/plugins/fastgpt 这里的schema,增加创建知识库,以及创建外部文件库集合的api
  2. 编辑mask,增加context内容:告诉LLM,当收到一个(或者多个)PDF的链接的时候,先创建知识库,并将PDF作为集合导入到知识库,并记住知识库的datasetId
  3. 用户提问的时候,尝试调用fastgpt的搜索测试接口查询相关内容。再由大模型总结回答。
@lloydzhou
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant