liveBook · Manning

Similarity search

As explained in LLM Customization and Fine-Tuning

Retrieval that selects items according to their similarity to a query or example.

Similarity-based retrieval expands curated few-shot examples into a fine-tuning training set by drawing related examples from a larger pool. section 4.9.2

How LLM Customization and Fine-Tuning covers it

How deep it goes
Describes retrieval’s role in expanding a seed set but does not specify ranking methods or implementation.
Examples
Uses curated few-shot examples as seeds and a larger pool as the source of added examples.
What you can do after
Apply similarity-based retrieval to expand curated few-shot examples into a fine-tuning training set.
How it connects
Connects few-shot learning with fine-tuning through training-set expansion.

Also explained in

Compare how 37 books explain similarity search →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of LLM Customization and Fine-Tuning. The section links point to the parts of the book it draws on.