Skip to content

Glossary: RAG Beyond the Basics

Query prefix

Also written: instruction prefix

Text that some embedding models (such as `bge-small-en-v1.5`) expect before each query. Without it they work worse, and documents get no prefix.

Where the book teaches it

Related terms

Embedding modelHugging Face