embedding-cache

command
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Command embedding-cache demonstrates decorating an embedding.Embedder with Reliquary's transparent embedding cache (embedding/cache + inmem.Store).

It shows:

  1. Wrapping an embedder with an in-memory Store.
  2. Monitoring base provider invocation counts.
  3. Demonstrating that repeated document ingest and query calls hit the cache with zero duplicate provider calls.

Run from the repository root:

GOWORK=off go run ./examples/embedding-cache

Jump to

Keyboard shortcuts

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