devMls 41a0601735
organize chunks by document in the prompt (#3925)
### What problem does this PR solve?

This PR organize chunks in the prompt by document and indicate what is
the name of the document in this way

```
Document: {doc_name} \nContains the following relevant fragments:
chunk1
chunk2
chunk3

Document: {doc_name} \nContains the following relevant fragments:
chunk4
chunk5
```

Maybe can be a baseline to add metadata to the documents.

This allow in my case to improve llm context about the orgin of the
information.


### Type of change

- [X] New Feature (non-breaking change which adds functionality)

Co-authored-by: Miguel <your-noreply-github-email>
2024-12-10 09:06:52 +08:00
..
2024-12-09 17:37:36 +08:00
2024-12-08 14:21:12 +08:00
2024-01-17 09:43:27 +08:00
2024-11-28 15:46:35 +08:00
2024-11-21 09:56:28 +08:00
2024-12-07 16:56:34 +08:00