sqlitestore

package
v0.77.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2026 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL