Skip to content

Commit 0db8110

Browse files
committed
Fixes for rebasing
1 parent 67a84f3 commit 0db8110

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

R/ragnar-chat.R

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,15 @@ chat_ragnar <- function(
2929
},
3030
retrieve = function(self, query) {
3131
retrieved_ids <- self$turns_list_chunks() |>
32-
sapply(\(x) x$id)
32+
sapply(\(x) x$id) |>
33+
unlist()
3334

3435
self$ragnar_store |>
35-
dplyr::tbl() |>
36-
dplyr::filter(!.data$id %in% retrieved_ids) |>
37-
ragnar::ragnar_retrieve(query, top_k = 10)
36+
ragnar::ragnar_retrieve(
37+
query,
38+
top_k = 10,
39+
filter = !.data$id %in% retrieved_ids
40+
)
3841
}
3942
) {
4043
chat <- chat()

tests/testthat/helper-doc.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ test_store <- function() {
2525
)
2626

2727
doc <- test_doc()
28-
chunks <- ragnar_read(doc, frame_by_tags = c("h1", "h2", "h3"))
28+
chunks <- read_as_markdown(doc) |> markdown_chunk()
2929
ragnar_store_insert(store, chunks)
3030
ragnar_store_build_index(store)
3131
}

0 commit comments

Comments
 (0)