Skip to content

feat(ai-files): create knowledge from public urls - #1707

Merged
nguyenvantruc92 merged 1 commit into
mainfrom
feat/ai-files-rag-from-url
Nov 14, 2026
Merged

nguyenvantruc92 merged 1 commit into
mainfrom
feat/ai-files-rag-from-url

Conversation

@nguyenvantruc92

Copy link
Copy Markdown
Contributor

Let builder users and API callers create an AI File from a public URL:
a direct file link, a publicly shared Google Docs/Sheets/Slides link, or
a static HTML page. The URL is downloaded once into a private snapshot;
reindex never re-fetches it and the source URL is not stored.

  • sdk: one source for knowledge MIME types and extensions, generic MIME
    detection, and a 25 MiB AI_FILE_MAX_UPLOAD_BYTES; the ai picker map is
    derived from it
  • business: normalize Google viewer links to their export endpoint,
    reject non-public Google files and publish-to-web links, infer the type
    of octet-stream downloads, 60s download timeout, check size/type of
    presigned uploads with headObject (deleting refused objects), and
    AIFileCreateException carrying a stable reason
  • filesystem: validateResponse hook before the body is read, reason on
    UploadValidationError, no Location echoed in redirect errors
  • worker: an unsupported knowledge type fails as fileUnreadable instead
    of indexing decoded noise
  • builder: Add knowledge dialog with Upload file / From URL tabs,
    createAIFileFromUrlAction, translated create errors in 21 locales, and
    one rate-limit bucket shared by the UI action and aiFiles.create
  • docs: aiFiles.create description, CLI README, workspace API tokens

Public API: shape unchanged. The size limit drops from 100 MB to 25 MiB
(breaking only for url downloads of 25-50 MiB), creating from a url is
rate limited (429), and a refused file or URL is 400 businessError.

@github-actions github-actions Bot added the feature New feature or request label Nov 12, 2026
@nguyenvantruc92
nguyenvantruc92 merged commit 6d87fac into main Nov 14, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant