Skip to content

feat(wrangler): add custom metadata to instance creation on ai search#13721

Open
danielgek wants to merge 1 commit intocloudflare:mainfrom
danielgek:dleal/add-custom-metadata-ai-search
Open

feat(wrangler): add custom metadata to instance creation on ai search#13721
danielgek wants to merge 1 commit intocloudflare:mainfrom
danielgek:dleal/add-custom-metadata-ai-search

Conversation

@danielgek
Copy link
Copy Markdown
Contributor

@danielgek danielgek commented Apr 29, 2026

Fixes #RAG-1145.

Adds ability to specify custom metadata on instance creation on AI Search


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: it will automatically generated by docs component
900_Cast-About-Photography_272A8079___Merkat
Open in Devin Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 29, 2026

🦋 Changeset detected

Latest commit: 4d43e39

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-project-automation github-project-automation Bot moved this to Untriaged in workers-sdk Apr 29, 2026
@workers-devprod workers-devprod requested review from a team and emily-shen and removed request for a team April 29, 2026 12:18
@workers-devprod
Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • @cloudflare/wrangler
Show detailed file reviewers
  • packages/wrangler/src/tests/ai-search.test.ts: [@cloudflare/wrangler]
  • packages/wrangler/src/ai-search/create.ts: [@cloudflare/wrangler]
  • packages/wrangler/src/ai-search/types.ts: [@cloudflare/wrangler]

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 29, 2026

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@13721

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@13721

miniflare

npm i https://pkg.pr.new/miniflare@13721

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@13721

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@13721

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@13721

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@13721

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@13721

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@13721

wrangler

npm i https://pkg.pr.new/wrangler@13721

commit: 4d43e39

Copy link
Copy Markdown
Contributor

@emily-shen emily-shen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we let users provide a json file? or even only support a json file? this is a pretty common pattern across wrangler for setting secrets, configuring r2, kv etc.

so something like --custom-metadata-schema=schema.json

schema.json

{
title : text,
foo: number,
...
}

since CLI flags is quite unwieldy once you get past one or two.

@danielgek danielgek force-pushed the dleal/add-custom-metadata-ai-search branch from 98de6f1 to 4d43e39 Compare April 30, 2026 13:09
@danielgek
Copy link
Copy Markdown
Contributor Author

@emily-shen added and option to add as metadata as json, left the interactive one because, most of the use we have seen on this is with 2 or 3 fields

@danielgek danielgek requested a review from emily-shen April 30, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

3 participants