Skip to contents

ragnar_retrieve() is a thin wrapper around ragnar_retrieve_vss_and_bm25() using the recommended best practices.

Usage

ragnar_retrieve(store, text, top_k = 3L)

Arguments

store

A RagnarStore object.

text

A string to find the nearest match too

top_k

Integer, the number of nearest entries to find per method.

Value

A dataframe of retrieved chunks. Each row corresponds to an individual chunk in the store. It always contains a column named text that contains the chunks.