Developer Platform von Cloudflare
AutoRAG: Custom Metadata in Antworten und context-Feld für KI-Antworten
AutoRAG gibt in den Antworten von /search und /ai-search nun die Custom Metadata eines Objekts zurück und erlaubt ein context-Feld in diesen Metadaten, um KI-generierte Antworten zusätzlich zu steuern.
In AutoRAG, you can now view your object's custom metadata in the response from /search and /ai-search, and optionally add a context field in the custom metadata of an object to provide additional guidance for AI-generated answers.
You can add custom metadata to an object when uploading it to your R2 bucket.
Object's custom metadata in search responses
When you run a search, AutoRAG now returns any custom metadata associated with the object. This metadata appears in the response inside attributes then file , and can be used for downstream processing.
For example, the attributes section of your search response may look like:
{
"attributes": {
"timestamp": 1750001460000,
"folder": "docs/",
"filename": "launch-checklist.md",
"file": {
"url": "https://wiki.company.com/docs/launch-checklist",
"context": "A checklist for internal launch readiness, including legal, engineering, and marketing steps."
}
}
}
Add a context field to guide LLM answers
…