Documentation
¶
Overview ¶
Command embedding-cache demonstrates decorating an embedding.Embedder with Reliquary's transparent embedding cache (embedding/cache + inmem.Store).
It shows:
- Wrapping an embedder with an in-memory Store.
- Monitoring base provider invocation counts.
- 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
Click to show internal directories.
Click to hide internal directories.