"update_documents fails correctly for non-existent collection"

update_documents fails correctly for non-existent collection

docs <- c("apple fruit", "banana fruit", "carrot vegetable")
c(0.8, 0.2, 0.0), # banana (similar to apple)
query_embeddings = list(c(1.0, 0.0, 0.0)), # should match apple best
expect_true(all(c("documents", "metadatas", "distances") %in% names(result)))
expect_equal(result$documents[[1]][[1]], "apple fruit") # should be closest match
# Query non-existent collection should fail
query_embeddings = list(c(1.0, 0.0, 0.0))
"Collection nonexistent_collection does not exist|HTTP 400"
# Add documents with embeddings and metadata
query_embeddings = list(c(1.0, 0.0, 0.0)),
where = list(year = list("$gte" = 2024))
where_document = list("$contains" = "doc1")
test_that("query include parameter works", {
# Add documents with all possible attributes
c("documents", "embeddings", "metadatas", "distances", "uris", "data")
"Input should be 'documents', 'embeddings'|HTTP"

# Getting non-existent tenant should fail
"NotFoundError: Tenant nonexistent_tenant not found|HTTP 404"