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/uploadBatchsends every file under thefilesfield the service reads. It used to name themfile0,file1…, which the service rejected, so batch upload never worked.searchsendstop_k, the field the service reads, instead oflimit, which the service ignored.limitis still accepted, mapped totop_k, and deprecated. Without either, the service's default applies (it used to always ask for 10).- The
listmethods andshare_listwere 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 namedtenant_id/tenantId(the other project's id), which is what it always was. Keyword callers usingshare_id=must rename it.- Supports
aice-core>=0.3.0,<0.5.
0.1.2
Changed
- Dependency floor on
aice-corebumped to>=0.3.0,<0.4(core 0.3.0 renamedPermissionError→AiceForbiddenErrornot referenced by this package, floor bumped purely to avoid a cross-package dependency conflict if installed alongsideaice-sandbox).
0.1.1
Changed
- Dependency floor on
aice-corebumped to>=0.2.0,<0.3to pick up the safer default idempotency-key retry behavior. No code changes in this package it doesn't call the newidempotency_keyparameter directly yet, but everyPOST/PATCHit makes now gets an auto-generated key by default via the shared transport.
TypeScript: @aiceafrica/knowledge
0.2.0 (unreleased)
Fixed
- The
listmethods andshareListwere typedunknown[]; the service returns an object wrapping the list. Now typedDocumentList,ShareList,ScopeTypeList,ScopeList,DocumentScopeList. documents.upload_batch/uploadBatchnow sends every file under thefilesfield the service reads. It used to name themfile0,file1…, which the service rejected, so batch upload never worked.searchnow sendstop_k, the field the service reads, and no longer sendslimit(which the service ignored, so the result count could not be set).limitis still accepted and mapped totop_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 namedtenant_id/tenantId(the other project's id), which is what it always was. Keyword callers usingshare_id=must rename it.- Needs
@aiceafrica/core0.4 (array query parameters, sodocumentScopes.list({ document_ids: [...] })can look up several documents).