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.
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.
Cosine similarity vs dot product for embeddings, with runnable TypeScript. Learn when to normalize, why they match for unit vectors, and which to pick.
Token-aware text chunking for RAG in TypeScript: recursive splitting with @langchain/textsplitters and js-tiktoken, plus chunk size and overlap tuning.
Tune pgvector 0.8.2 HNSW indexes on PostgreSQL 18: ef_search, halfvec quantization, iterative scans, and parallel builds with a runnable Docker setup.
RAG optimization: chunk sizing, hybrid retrieval, reranking, query rewriting, and evaluation — smarter retrieval-augmented systems that actually rank well.