03-embedding-similarity

command
v1.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Recipe 03: Embedding and Cosine Similarity

Compute text embeddings and rank a corpus of documents by relevance to a query using cosine similarity. This is the retrieval building block for semantic search and RAG systems.

Usage:

go run ./docs/cookbook/03-embedding-similarity/ --model path/to/model.gguf
go run ./docs/cookbook/03-embedding-similarity/ --model path/to/model.gguf --query "memory management"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL