Reranking for two-stage RAG retrieval, from cross-encoders to TypeSafe's Jev: how it works, its limits, a 90-query evaluation, agent integration, and a prompt-injection guard.
Implement semantic search with pgvector in PostgreSQL: embeddings, similarity metrics, IVFFlat vs HNSW indexes, and a complete Bun/TypeScript example.