chore(deps): bump LocalAGI for collection rehydrate-on-init-failure fix#9721
Merged
Conversation
Picks up mudler/LocalAGI#? (commit 941ac52, merged into main): in-process collections backend now registers a placeholder for every on-disk collection at startup — even when the engine wrapper fails to construct (typically because the embedding model is briefly unreachable) — and rehydrates lazily on first access. Previously a transient outage at LocalAI boot silently dropped every existing collection from the agent pool's in-memory map; users saw "collection not found" indefinitely until LocalAI was restarted, even after the embedding service recovered. With this bump the next request to the collection rehydrates it transparently. Does not address the deeper LocalRecall issue where NewPersistentPostgresCollection probes the embedding model at engine construction even for read-only paths — that needs a separate fix in mudler/localrecall.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bumps
github.com/mudler/LocalAGIfromv0.0.0-20260507074708-c1a12317930dtov0.0.0-20260508125235-37810d918a87to pick up the in-process collections rehydrate-on-init-failure fix that just merged into LocalAGI'smain.Why
When the embedding model is briefly unreachable while LocalAI is starting up (e.g. a NATS hiccup to the node hosting the embedding model), the agent pool's
webui/collectionsbackend used to silently drop every on-disk collection from its in-memory map. Subsequent operations against those collections returned "collection not found" indefinitely — even after the embedding service recovered — because nothing ever retried. The collection's metadata + data still existed on disk and in the vector DB, but the user could no longer reach it without restarting LocalAI.With the bumped LocalAGI:
nilplaceholder for collections whose engine wrapper failed to construct, instead of dropping them silently.lookuphelper used by every operation (Upload,Search,ListEntries, …) detects placeholders and rehydrates lazily on first access. Once the embedding service is reachable again, the next request transparently brings the collection back.Scope of this change
Pure dependency bump.
go mod tidybrought in a few transitive indirects from LocalAGI's deps (cobra, pflag, gofiber/template, …) that were already pulled by LocalAGI but not previously surfaced in LocalAI's go.mod. No code changes in LocalAI itself.Not addressed here
The deeper issue is in
mudler/localrecall'srag.NewPersistentPostgresCollection: the constructor probes the embedding model at engine-construction time, so even read-only paths against existing collections require the embedding service to be available. That's a separate fix worth pursuing in LocalRecall — let it construct without a probe and have the probe happen lazily on first write/search instead.Test plan
go build ./core/services/agentpool/...(passes locally)🤖 Generated with Claude Code