
LLM & Integration17 min
Semantic Cache for LLM Calls with Redis Vector Sets (2026)
Build a semantic cache for LLM calls with Redis 8's native VADD/VSIM vector sets in Node.js and TypeScript — cache hits on paraphrases, not just exact text.
Tag
5 posts

LLM & Integration17 min
Build a semantic cache for LLM calls with Redis 8's native VADD/VSIM vector sets in Node.js and TypeScript — cache hits on paraphrases, not just exact text.
LLM & Integration12 min
Cosine similarity vs dot product for embeddings, with runnable TypeScript. Learn when to normalize, why they match for unit vectors, and which to pick.
LLM & Integration16 min
Token-aware text chunking for RAG in TypeScript: recursive splitting with @langchain/textsplitters and js-tiktoken, plus chunk size and overlap tuning.
AI & Machine Learning22 min
Tune pgvector 0.8.2 HNSW indexes on PostgreSQL 18: ef_search, halfvec quantization, iterative scans, and parallel builds with a runnable Docker setup.
LLM & Integration11 min
RAG optimization: chunk sizing, hybrid retrieval, reranking, query rewriting, and evaluation — smarter retrieval-augmented systems that actually rank well.