Embeds the query, searches the vector store, and returns results.
Examples
emb <- embed_tfidf(c("cat sat on mat", "dog ran in park"))
vs <- vector_store$new(dims = emb@dims)
ret <- retriever(vs, emb)
add_documents(ret, document("The cat sat on the mat."))
retrieve(ret, "cat", k = 1)
#> id score
#> 1 doc_20260310163651_3f1285a6_chunk_1 0.5773503