Skip to contents

Transforms raw vector data from Pinecone API responses into a tidy tibble format.

Usage

handle_vectors(input)

Arguments

input

A list containing a vectors element from a Pinecone fetch or query response.

Value

A tibble with columns for vector IDs, values, and any metadata fields. Metadata columns are prefixed with their field names.

Examples

if (FALSE) { # \dontrun{
result <- vector_fetch("my-index", ids = c("vec1", "vec2"), tidy = FALSE)
tidy_vectors <- handle_vectors(result$content)
} # }