Skip to contents

Creates a new Pinecone assistant for RAG (retrieval-augmented generation).

Usage

create_assistant(name, instructions = NULL, metadata = NULL, region = "us")

Arguments

name

Name of the assistant (must be unique within project)

instructions

Optional instructions/directive for the assistant to apply to all responses

metadata

Optional named list of metadata key-value pairs

region

Region to deploy assistant. Options: "us" (default) or "eu"

Value

List with http response, content (assistant details), and status_code. Content includes: - name: Assistant name - instructions: Custom instructions (if set) - metadata: Metadata dictionary - status: Assistant status - host: Data plane host URL for file and chat operations - created_at: Creation timestamp - updated_at: Last update timestamp

Examples

if (FALSE) { # \dontrun{
# Create a basic assistant
create_assistant(name = "my-assistant")

# Create with instructions and metadata
create_assistant(
  name = "my-assistant",
  instructions = "Use American English for spelling and grammar.",
  metadata = list(team = "research", version = "1.0"),
  region = "us"
)
} # }