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.

Retrieval prefixes A question gains the query: prefix and a passage gains passage:, then both pass through HobbyLM-Embed to produce a query embedding and a passage embedding, which are compared during retrieval. Examples are illustrative. role prefix input text model encoding Conceptual illustration; examples are authored. Prefixes identify retrieval roles The same model reads both texts. The prefix says which role each one plays. question How do I search my notes? query: passage Encode notes and retrieve relevant passageswith a query embedding. passage: HobbyLM-Embed same model for both Query embedding512 dim. Compared during retrieval Passage embedding512 dim. Retrieval prefixes A question gains the query: prefix and a passage gains passage:, then both pass through HobbyLM-Embed to produce a query embedding and a passage embedding, which are compared during retrieval. Examples are illustrative. role prefix input text model encoding Conceptual illustration; examples are authored. Prefixes identify retrieval roles The same model reads both texts. The prefix says which role each one plays. question How do I search my notes? query: passage Encode notes and retrieverelevant passages with aquery embedding. passage: HobbyLM-Embed same model for both Query embedding512 dim. Compared during retrieval Passage embedding512 dim.

Figure

Use query: for retrieval queries and passage: for the texts being indexed. Both are encoded by the same model. Examples are illustrative.