infiniflow / ragflow

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.
https://ragflow.io
Apache License 2.0
22.85k stars 2.24k forks source link

[Question]: In Q&A mode for document analysis, can text in answers be searched? #2542

Open fransosad opened 1 month ago

fransosad commented 1 month ago

Describe your problem

我们想利用ragflow开发一个智能客服应用。知识库文档主要是FAQ,在ragflow中使用了Q&A解析方式。 试用过程中发现:有时,用户问法的关键字,不包含在对应知识的Question中,但Answer中有相关内容描述。但没有检索出这条知识。 想咨询: 1、当使用Q&A解析方式时,是否只能根据Question中的文本来检索解析块? 2、如果是,对于我们的场景,有什么建议的解决办法?(General的解析效果并不理想,一条问答可能被截断成多个解析块)

KevinHuSh commented 1 month ago
  1. Yes, it is. If answers are used for searching, there gona be bad cases more than without answer searching.
  2. Refine data, like add tags/category to the data. No other cheeper way.
fransosad commented 1 month ago

请问”add tag“是指在解析块增加keyword吗?我尝试了一下,对于Q&A解析模式下的解析块,添加keyword保存时会报错

Excuse me, does “add tag” refer to adding keywords in the chunk? I tried,but when I saved keywords for the chunk in Q&A mode, it returned an error.

WechatIMG33

KevinHuSh commented 1 month ago

There's a TAB between Question and Answer. Do not drop it.

fransosad commented 1 month ago

我没有对chunk的内容做任何修改,但保存时也会报错

I didn't make any edits to the chunk, but it reported an error when saving.

KevinHuSh commented 1 month ago

Or, insert a comma before the 'Answer'.