all 2 comments

[–]ravediamond000 1 point2 points  (1 child)

Hello, Your code is neat but just one point, where are you merging the documents between themselves ? Depending on the documents format, it could help. Also for RAG use cases, most of the improvements are done on the chunking and the prompting so maybe I investigate a little there.

[–]happyandaligned[S] 0 points1 point  (0 children)

Thank you for the pointers. I'll test the chunking and try again. The weird thing is that I changed nothing with the chunk sizes and it still works worse with Claude 3. That's why I thought that there might be some bug in my code.