Repository navigation
v0.5.1
Release 0.5.1
A patch release: long entries can be saved again, and the tool list of curators and space admins is complete for every user.
Fixed
- Long entries could not be saved:
store_knowledgeandupdate_knowledgeembedded every section of an entry before saving, one after the other at the speed of the embedding service (about 2.5 to 3.5 seconds per section on two cores). An entry of 70 KB has some 40 sections, so saving took longer than the client waited; the client gave up, the request was cancelled and nothing was stored, without a useful message. Now only the firstpolicy.inline_index_sectionssections (new setting, default 6;0embeds everything before answering, as before) are embedded while saving. The entry is stored at once, and the rest is embedded by the new periodic taskindex_pending(every 15 seconds, in batches of 4 sections so that a search is not held up for long, across restarts) and found by exact words until then. The tool answer says when part of an entry is still being indexed, andadmin_health(checkembeddings) counts the waiting sections. - Tools that an edition adds to the curator and space admin groups were listed for everyone: the change below also called the extension hook for those groups for every user. The hook is now called for the holders of the role only; the tools of the core are unaffected.
Changed
- Curator and space admin tools are listed for everyone:
review_knowledge,review_skill,publish_skill,block_skill,unblock_skill,space_members,space_add_memberandspace_remove_memberare in the tool list of every logged-in user, in a compact form for whoever lacks the role. Assistants read the list once, so a user who was made curator or space admin later did not see the tools until the connector was reconnected. The role is still checked on every call; the instance admin tools stay limited to instance admins. - Changelog and the examples in
docs/release.mdare prepared for 0.5.1. This also bringsmainthe changelog and release notes of 0.5.0, which landed ondevafter the 0.5.0 tag.
Upgrade notes
- No database migration and nothing to change in an existing
config.yaml.policy.inline_index_sectionshas a default;0restores the old behaviour. - After the update,
admin_health(checkembeddings) may name sections that are still being embedded. The number falls by itself; it is a sign of a problem only if it stays the same while the checkembedderis healthy. - A user who gets a curator or space admin role later sees the full form of those tools with the next connection of the assistant.
Tested
gofmt,go vet ./...andgo test ./...against Postgres with pgvector, including new tests for saving long entries, the background task and the edition tool groups.- On a small test server (2 cores): an 18 KB and a 70 KB document were saved at once, indexed in the background in about three minutes, found by exact words immediately and by meaning afterwards;
admin_healthstayedok.