B1-I1 · Inline explainer · preview in article context
For retrieval with HobbyLM-Embed, queries use the query: prefix and passages use passage:. A document collection can be embedded ahead of time and stored in a vector index. When a query arrives, the application embeds it and searches that index for related passages.
Figure
Use query: for retrieval queries and passage: for the texts being indexed. Both are encoded by the same model. Examples are illustrative.