shibing624 / ChatPDF

RAG for Local LLM, chat with PDF/doc/txt files, ChatPDF. 纯原生实现RAG功能,基于本地LLM、embedding模型、reranker模型实现,无须安装任何第三方agent库。
Apache License 2.0
587 stars 109 forks source link

文档内容太大回答的就一点都对不上是怎么回事 #19

Open BXCQ-OL opened 7 months ago

shibing624 commented 7 months ago

自查下是similarity哪里找不到结果,还是llm回答错误。

BXCQ-OL commented 7 months ago

在哪加个print可以打印每次查找的内容

shibing624 commented 7 months ago

https://github.com/shibing624/ChatPDF/blob/main/chatpdf.py#L482 注释打开

BXCQ-OL commented 7 months ago

是找的片段不对,为什么问题给了关键信息,找的内容却一点不相关