Changelog

Knowledge

Release notes for aice-knowledge and @aiceafrica/knowledge.

Python: aice-knowledge

0.2.0 (unreleased)

Added

  • upload_batch(files, sources=…) / uploadBatch(files, { sources }): provenance per file, aligned by position.
  • search(…, scope_ids=…, explain=…) as named options.

Fixed

  • documents.upload_batch / uploadBatch sends every file under the files field the service reads. It used to name them file0, file1…, which the service rejected, so batch upload never worked.
  • search sends top_k, the field the service reads, instead of limit, which the service ignored. limit is still accepted, mapped to top_k, and deprecated. Without either, the service's default applies (it used to always ask for 10).
  • The list methods and share_list were annotated as returning a list. The service returns an object wrapping it ({"documents": [...], "limit", "offset"}, {"document_id", "shares": [...]} and so on). Annotations corrected.

Changed

  • documents.share_delete / shareDelete: the second argument is named tenant_id / tenantId (the other project's id), which is what it always was. Keyword callers using share_id= must rename it.
  • Supports aice-core>=0.3.0,<0.5.

0.1.2

Changed

  • Dependency floor on aice-core bumped to >=0.3.0,<0.4 (core 0.3.0 renamed PermissionError → AiceForbiddenError not referenced by this package, floor bumped purely to avoid a cross-package dependency conflict if installed alongside aice-sandbox).

0.1.1

Changed

  • Dependency floor on aice-core bumped to >=0.2.0,<0.3 to pick up the safer default idempotency-key retry behavior. No code changes in this package it doesn't call the new idempotency_key parameter directly yet, but every POST/PATCH it makes now gets an auto-generated key by default via the shared transport.

TypeScript: @aiceafrica/knowledge

0.2.0 (unreleased)

Fixed

  • The list methods and shareList were typed unknown[]; the service returns an object wrapping the list. Now typed DocumentList, ShareList, ScopeTypeList, ScopeList, DocumentScopeList.
  • documents.upload_batch / uploadBatch now sends every file under the files field the service reads. It used to name them file0, file1…, which the service rejected, so batch upload never worked.
  • search now sends top_k, the field the service reads, and no longer sends limit (which the service ignored, so the result count could not be set). limit is still accepted and mapped to top_k; it is deprecated. Without either, the service's default applies (it used to always ask for 10).

Added

  • upload_batch(files, sources=…) / uploadBatch(files, { sources }): provenance per file, aligned by position.
  • search(…, scope_ids=…, explain=…) as named options.
  • VERSION, this package's version.

Changed

  • documents.share_delete / shareDelete: the second argument is named tenant_id / tenantId (the other project's id), which is what it always was. Keyword callers using share_id= must rename it.
  • Needs @aiceafrica/core 0.4 (array query parameters, so documentScopes.list({ document_ids: [...] }) can look up several documents).

On this page