mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-30 00:32:30 +08:00
### What problem does this PR solve? ### Type of change - [x] Documentation Update --------- Co-authored-by: Yingfeng Zhang <yingfeng.zhang@gmail.com>
32 lines
1.3 KiB
Markdown
32 lines
1.3 KiB
Markdown
---
|
|
sidebar_position: -7
|
|
slug: /set_metadata
|
|
---
|
|
|
|
# Set metadata
|
|
|
|
Manually add metadata to an uploaded file
|
|
|
|
---
|
|
|
|
On the **Dataset** page of your dataset, you can add metadata to any uploaded file. This approach enables you to 'tag' additional information like URL, author, date, and more to an existing file. In an AI-powered chat, such information will be sent to the LLM with the retrieved chunks for content generation.
|
|
|
|
For example, if you have a dataset of HTML files and want the LLM to cite the source URL when responding to your query, add a `"url"` parameter to each file's metadata.
|
|
|
|

|
|
|
|
:::tip NOTE
|
|
Ensure that your metadata is in JSON format; otherwise, your updates will not be applied.
|
|
:::
|
|
|
|

|
|
|
|
## Related APIs
|
|
|
|
[Retrieve chunks](../../references/http_api_reference.md#retrieve-chunks)
|
|
|
|
## Frequently asked questions
|
|
|
|
### Can I set metadata for multiple documents at once?
|
|
|
|
From v0.23.0 onwards, you can set metadata for each document individually or have the LLM auto-generate metadata for multiple files. See [Extract metadata](./auto_metadata.md) for details. |