ngx-prompt-kit
All blocks

Block

Source-attributed answer

RAG-style answer with inline citations. Each chip is hover-previewable; click to open the source. Numbered footer summarises everything cited.

Inline cites + sources footer

What's the difference between HNSW and IVF vector indexes? AI

HNSW (Hierarchical Navigable Small World) builds a layered graph where each layer skips long-distance connections, so search descends through layers narrowing the candidate set 1 . IVF (Inverted File) clusters vectors with k-means and only searches a handful of nearby clusters at query time 2 . HNSW typically gets higher recall at the same latency, but IVF uses less memory and is easier to update incrementally 3 .