You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

set_metadata.md 1.2KB

12345678910111213141516171819202122232425262728
  1. ---
  2. sidebar_position: 0
  3. slug: /set_metada
  4. ---
  5. # Set metadata
  6. Add metadata to an uploaded file
  7. ---
  8. On the **Dataset** page of your knowledge base, 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.
  9. 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.
  10. ![Image](https://github.com/user-attachments/assets/78cb5035-e96c-43f9-82d7-8fef1b68c843)
  11. :::tip NOTE
  12. Ensure that your metadata is in JSON format; otherwise, your updates will not be applied.
  13. :::
  14. ![Image](https://github.com/user-attachments/assets/379cf2c5-4e37-4b79-8aeb-53bf8e01d326)
  15. ## Frequently asked questions
  16. ### Can I set metadata for multiple documents at once?
  17. No, you must set metadata *individually* for each document, as RAGFlow does not support batch setting of metadata. If you still consider this feature essential, please [raise an issue](https://github.com/infiniflow/ragflow/issues) explaining your use case and its importance.