Documentation
¶
Overview ¶
Package sqlitestore links the SQLite tool store, and the Redis cache that shares tool embeddings, into optimizer.NewOptimizerFactory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithSharedEmbeddings ¶
func WithSharedEmbeddings(redisCfg redisconn.Config, keyPrefix string) optimizer.FactoryOption
WithSharedEmbeddings shares tool embeddings through Redis, so each vMCP replica using the same Redis and keyPrefix (which must end with ':') reuses the vectors any of them computed instead of embedding the catalogue again.
It shares vectors only: each replica still builds its own index from its own sessions, and replicas that miss the same vectors at the same moment both embed them. Only vectors embedded under a verified model identity are published. A build reads Redis at most once, before it waits for its turn to embed, and writes at most once, after it commits. A slow Redis therefore delays only that build, by the Redis timeouts on those calls, and a Redis failure after startup costs reuse but never fails a session. Anyone who can write the keyspace can replace vectors and so change find_tool ranking, so the instance needs the access control the session data needs.
Types ¶
This section is empty.