ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: Knowledge Graph mode the answer is cut

Open yufeng97 opened this issue 1 year ago • 4 comments

Describe your problem

I upload two files as test files using Knowledge Graph as parsing method. The chunk token number is 1024. I also follow #1239 to disable max_token. The LLM answer is still been cut very offen. image

image

yufeng97 avatar Oct 08 '24 09:10 yufeng97

The context is out of length. Adjust these 2 parameters. Or, cut down chunk token number. image

KevinHuSh avatar Oct 09 '24 02:10 KevinHuSh

The context is out of length. Adjust these 2 parameters. Or, cut down chunk token number. image

I follow your suggestion, it doesn't improve. I set the chunk token size to 256, and reparse the document. The chunk number increases. image

image

I use knowledge dataset query test function to search chunks and find that some of the chunks are very long, much longer than chunk size. image image

yufeng97 avatar Oct 09 '24 08:10 yufeng97

@KevinHuSh Could you explain to me why the chunk size would become so big?

yufeng97 avatar Oct 10 '24 01:10 yufeng97

This is generated by LLM. You're using knowledge graph as parsing method.

KevinHuSh avatar Oct 10 '24 02:10 KevinHuSh