ragflow/api/db
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
..
services organize chunks by document in the prompt (#3925) 2024-12-10 09:06:52 +08:00
__init__.py add API for tenant function (#2866) 2024-10-16 16:10:24 +08:00
db_models.py Add support to iframe chatbot (#3929) 2024-12-09 12:38:04 +08:00
db_utils.py Introduced beartype (#3460) 2024-11-18 17:38:17 +08:00
init_data.py Fix errors detected by Ruff (#3918) 2024-12-08 14:21:12 +08:00
reload_config_base.py Format file format from Windows/dos to Unix (#1949) 2024-08-15 09:17:36 +08:00
runtime_config.py Update version display on web UI (#3405) 2024-11-14 17:51:21 +08:00