Skip to content

Address issue #345 : update filename of ingested files - #383

Draft
Exino329 wants to merge 10 commits into
EPFLiGHT:mainfrom
Exino329:wip/ll-patch-metadata
Draft

Exino329 wants to merge 10 commits into
EPFLiGHT:mainfrom
Exino329:wip/ll-patch-metadata

Conversation

@Exino329

@Exino329 Exino329 commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

This PR aims to add the possibility to read and update the metadata of an uploaded file (e.g. its filename) through the index API, without re-ingesting the whole file.

Added three endpoints :

  • GET /v1/files/{fileId}/metadata returns the file-level metadata, i.e. the keys shared by every chunk of the file
  • PATCH /v1/files/{fileId}/metadata applies the patch to every chunk of the file
  • PATCH /v1/files/{fileId}/chunks/{chunkId}/metadata applies the patch to a single chunk only

All endpoints take an optional collectionName query parameter (the configured collection_name is used if not specified using same paradigm from PR #360 ):

Both patches behave as a merge: a new key is added, an existing key is updated and a key set to null is deleted (deleting a missing key is a no-op).

  • A 422 code is returned with the list of problems if the patch is empty, touches a protected key (id, document_id, text, embeddings, file_path, processed_at, processor_type), sends a non-scalar value (i.e. other values than number, boolean or string).
  • A 404 code is returned if the file, chunk or collection does not exist.

@Exino329
Exino329 marked this pull request as draft November 5, 2026 10:09
@Exino329 Exino329 changed the title Wip/ll patch metadata Address issue #345 : update filename of ingested files Nov 5, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant