Pinecone · Schema

MessageModel

Describes the format of a message in a chat.

Vector DatabasesAIEmbeddingsRAG

Properties

Name Type Description
role string Role of the message such as 'user' or 'assistant'
content string Content of the message
View JSON Schema on GitHub

JSON Schema

pinecone-messagemodel-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/MessageModel",
  "title": "MessageModel",
  "description": "Describes the format of a message in a chat.",
  "type": "object",
  "properties": {
    "role": {
      "description": "Role of the message such as 'user' or 'assistant'",
      "type": "string"
    },
    "content": {
      "description": "Content of the message",
      "type": "string"
    }
  }
}