Skip to content

About

SQLite disk cache for embeddings keyed by content hash, model id and dimension, with batched misses, bit-exact float64 storage and LRU eviction

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

embedding-cache

PyPI version License: MIT CI

SQLite disk cache for embeddings keyed by content hash, model id and dimension, with batched misses, bit-exact float64 storage and LRU eviction

Problem

Describe in two or three sentences the concrete problem this utility solves, who hits it, and what they do today without it. Replace this paragraph when the first real feature lands.

Install

pip install trysac-embedding-cache
# or
uv add trysac-embedding-cache

Requires Python 3.10 or newer. No runtime dependencies.

Usage

import embedding_cache

# normalize() trims surrounding whitespace and lower-cases the text.
print(embedding_cache.normalize("  Hello World "))  # -> "hello world"

# Blank input is rejected explicitly instead of returning an empty string.
try:
    embedding_cache.normalize("   ")
except ValueError as exc:
    print(f"rejected: {exc}")

Documentation

License

MIT (c) 2026 Miguel Gomez

About

SQLite disk cache for embeddings keyed by content hash, model id and dimension, with batched misses, bit-exact float64 storage and LRU eviction

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages