mayooear / gpt4-pdf-chatbot-langchain

GPT4 & LangChain Chatbot for large PDF docs
https://www.youtube.com/watch?v=ih9PBGVVOO4
14.94k stars 3.02k forks source link

Is Chinese supported? #329

Closed Conor-heming closed 1 year ago

Conor-heming commented 1 year ago

pdf文件内容是中文内容导致的问题吗? 我的报错:Syntax error "t"

Conor-heming commented 1 year ago

详细报错: ERROR: Syntax error "t" at failureErrorWithLog (D:\code\gpt\gpt4-pdf-chatbot-langchain-main\node_modules\esbuild\lib\main.js:1636:15) at D:\code\gpt\gpt4-pdf-chatbot-langchain-main\node_modules\esbuild\lib\main.js:837:29 at responseCallbacks. (D:\code\gpt\gpt4-pdf-chatbot-langchain-main\node_modules\esbuild\lib\main.js:697:9) at handleIncomingPacket (D:\code\gpt\gpt4-pdf-chatbot-langchain-main\node_modules\esbuild\lib\main.js:752:9) at Socket.readFromStdout (D:\code\gpt\gpt4-pdf-chatbot-langchain-main\node_modules\esbuild\lib\main.js:673:7) at Socket.emit (node:events:513:28) at Socket.emit (node:domain:489:12) at addChunk (node:internal/streams/readable:324:12) at readableAddChunk (node:internal/streams/readable:297:9) at Readable.push (node:internal/streams/readable:234:10) { errors: [ { detail: undefined, id: '', location: { column: 59, file: 'D:\code\gpt\gpt4-pdf-chatbot-langchain-main\scripts\ingest-data.ts', length: 0, line: 1, lineText: "/import { RecursiveCharacterTextSplitter } from 'langchain/text_splitter';", namespace: '', suggestion: '' }, notes: [], pluginName: '', text: 'Syntax error "t"' } ], warnings: [] }

choogoo commented 1 year ago

中文pdf是支持的,但是如何让回答的内容是中文呢 Chinese PDF is supported, but how to make the answer content in Chinese

j796160836 commented 1 year ago

I found this pull request #340 done the good job.

dosubot[bot] commented 1 year ago

Hi, @Conor-heming! I'm Dosu, and I'm helping the gpt4-pdf-chatbot-langchain team manage their backlog. I wanted to let you know that we are marking this issue as stale.

From what I understand, you were asking if Chinese language is supported in the PDF file content, as you were experiencing a syntax error with Chinese content. Another user confirmed that Chinese PDF is supported but asked how to make the answer content in Chinese. Additionally, a third user mentioned a pull request (#340) that has done a good job in addressing this issue.

I wanted to check with you if this issue is still relevant to the latest version of the gpt4-pdf-chatbot-langchain repository. If it is, please let the gpt4-pdf-chatbot-langchain team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or the issue will be automatically closed in 7 days.

Thank you for your understanding and contribution to the project! Let us know if you have any further questions or concerns.