基于 ChatGPT 实现一个 PDF 阅读器 Demo | Alan Wang #23
Replies: 12 comments 24 replies
-
|
求助!schema.sql 只生成了 chetgpt 表,没有生成 pg 表 |
Beta Was this translation helpful? Give feedback.
-
|
你好,createEmbedding这个接口一直失败,返回message:error,传的文件也不大,都没有示例pdf大,可能是我哪里设置的有问题吗? |
Beta Was this translation helpful? Give feedback.
-
|
/src/components/chatWindow/inex.tsx 文件中的第62行 在调用search-answer时总是报错 |
Beta Was this translation helpful? Give feedback.
-
|
楼组,介绍里面的好几张图片挂了 |
Beta Was this translation helpful? Give feedback.
-
|
我有一点困惑, 将用户提出的问题转换为向量。 事实上,我可能用户提出的问题,“能否告诉我这篇pdf写了什么”。这句话如何能跟pdf中的段落就行余弦相似度进行匹配的。 |
Beta Was this translation helpful? Give feedback.
-
|
我刚刚做了一个测试。 string str2 = "ChatGPT总算力消耗"; 比如说我用这两个字符串使用TextEmbeddingAdaV2 生成了对应的Embeddings,然后通过1 - Distance.Cosine(x,y)的出来的结果只有0.8079 |
Beta Was this translation helpful? Give feedback.
-
|
老哥,能出一期怎么搭建这个博客的嘛? |
Beta Was this translation helpful? Give feedback.
-
|
博主,请问如何与你取得联系,想与你进一步深入交流 |
Beta Was this translation helpful? Give feedback.
-
|
博主啊,为什么我返回的不是流式响应,上传文件后数据库表中也没有添加数据?看到麻烦回答下 |
Beta Was this translation helpful? Give feedback.
-
|
为啥我运行的时候显示文件过大,无法运行起来 |
Beta Was this translation helpful? Give feedback.
-
|
你好,这个disabledUpload是在哪里设置的 |
Beta Was this translation helpful? Give feedback.
-
|
朋友们 问下我传入PDF后读取一会就报错状态码500了,数据库那边只加载入几条,怎么解决哈。 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
基于 ChatGPT 实现一个 PDF 阅读器 Demo - Alan|前端博客
解析 chatpdf 实现原理,利用 OpenAI API 将 PDF 文本片段转换为向量,并使用余弦相似度算法匹配用户提出的问题和文本片段,从而实现对长文本的问答。
https://www.alanwang.site/blog/chatgpt-pdf
Beta Was this translation helpful? Give feedback.
All reactions