ragflow/api
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
..
apps Fix session API issues. (#3939) 2024-12-09 17:37:36 +08:00
db organize chunks by document in the prompt (#3925) 2024-12-10 09:06:52 +08:00
utils Fix errors detected by Ruff (#3918) 2024-12-08 14:21:12 +08:00
__init__.py rename web_server to api (#29) 2024-01-17 09:43:27 +08:00
constants.py Add more web test cases (#3702) 2024-11-28 15:46:35 +08:00
ragflow_server.py Fix errors detected by Ruff (#3918) 2024-12-08 14:21:12 +08:00
settings.py Ensure LIGHTEN work (#3542) 2024-11-21 09:56:28 +08:00
validation.py Fix errors detected by Ruff (#3918) 2024-12-08 14:21:12 +08:00
versions.py Fix VERSION 2024-12-07 16:56:34 +08:00