ragnar_store_update {ragnar} | R Documentation |
Inserts or updates chunks in a RagnarStore
Description
Inserts or updates chunks in a RagnarStore
Usage
ragnar_store_update(store, chunks)
Arguments
store |
a |
chunks |
Content to update. The precise input structure depends on
|
Details
Store Version 2
chunks
must be MarkdownDocumentChunks
object.
Store Version 1
chunks
must be a data frame containing origin
, hash
, and text
columns. We first filter out chunks for which origin
and hash
are already
in the store. If an origin
is in the store, but with a different hash
, we
replace all of its chunks with the new chunks. Otherwise, a regular insert is
performed.
This can help avoid needing to compute embeddings for chunks that are already in the store.
Value
store
, invisibly.
[Package ragnar version 0.2.0 Index]