All blocks What's the difference between HNSW and IVF vector indexes? AI
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
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
<pk-message>
<pk-message-avatar src="" alt="Assistant" fallback="AI" />
<div class="flex flex-1 flex-col gap-3">
<p class="text-sm leading-relaxed">
HNSW builds a layered graph
<pk-source href="https://en.wikipedia.org/wiki/Hierarchical_navigable_small_world">
<pk-source-trigger label="1" />
<pk-source-content
title="HNSW — Wikipedia"
description="A graph-based ANN structure with O(log N) query complexity."
/>
</pk-source>
. IVF clusters vectors
<pk-source href="https://www.pinecone.io/learn/series/faiss/vector-indexes/">
<pk-source-trigger label="2" />
<pk-source-content title="Vector indexes" description="..." />
</pk-source>
.
</p>
<div class="border-t pt-3">
<span class="text-xs uppercase">Sources</span>
<div class="flex flex-wrap gap-2">
<pk-source href="https://en.wikipedia.org/wiki/...">
<pk-source-trigger [showFavicon]="true" label="wikipedia.org" />
<pk-source-content title="..." description="..." />
</pk-source>
<!-- ...more sources... -->
</div>
</div>
</div>
</pk-message>