Skip to content

v0.5.1

Choose a tag to compare

@behringer24 behringer24 released this 10 Nov 23:14
· 143 commits to main since this release
db9b9e3

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_knowledge and update_knowledge embedded 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 first policy.inline_index_sections sections (new setting, default 6; 0 embeds everything before answering, as before) are embedded while saving. The entry is stored at once, and the rest is embedded by the new periodic task index_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, and admin_health (check embeddings) 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_member and space_remove_member are 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.md are prepared for 0.5.1. This also brings main the changelog and release notes of 0.5.0, which landed on dev after the 0.5.0 tag.

Upgrade notes

  • No database migration and nothing to change in an existing config.yaml. policy.inline_index_sections has a default; 0 restores the old behaviour.
  • After the update, admin_health (check embeddings) 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 check embedder is 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 ./... and go 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_health stayed ok.