Pinecone · Schema

NamespaceDescription

A description of a namespace, including the name and record count.

Vector DatabasesAIEmbeddingsRAG

Properties

Name Type Description
name string The name of the namespace.
record_count integer The total amount of records within the namespace.
schema object Schema for the behavior of Pinecone's internal metadata index. By default, all metadata is indexed; when `schema` is present, only fields which are present in the `fields` object with a `filterable: t
indexed_fields object A list of all indexed metatadata fields in the namespace
View JSON Schema on GitHub

JSON Schema

pinecone-namespacedescription-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/NamespaceDescription",
  "title": "NamespaceDescription",
  "description": "A description of a namespace, including the name and record count.",
  "type": "object",
  "properties": {
    "name": {
      "example": "example-namespace",
      "description": "The name of the namespace.",
      "type": "string"
    },
    "record_count": {
      "example": 20000,
      "description": "The total amount of records within the namespace.",
      "type": "integer",
      "format": "int64"
    },
    "schema": {
      "example": {
        "fields": {
          "description": {
            "filterable": true
          },
          "genre": {
            "filterable": true
          },
          "year": {
            "filterable": true
          }
        }
      },
      "description": "Schema for the behavior of Pinecone's internal metadata index. By default, all metadata is indexed; when `schema` is present, only fields which are present in the `fields` object with a `filterable: true` are indexed. Note that `filterable: false` is not currently supported.",
      "type": "object",
      "properties": {
        "fields": {
          "description": "A map of metadata field names to their configuration. The field name must be a valid metadata field name. The field name must be unique.",
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "filterable": {
                "description": "Whether the field is filterable. If true, the field is indexed and can be used in filters. Only true values are allowed.",
                "type": "boolean"
              }
            }
          }
        }
      },
      "required": [
        "fields"
      ]
    },
    "indexed_fields": {
      "description": "A list of all indexed metatadata fields in the namespace",
      "type": "object",
      "properties": {
        "fields": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "example": [
            "genre",
            "year",
            "author"
          ]
        }
      }
    }
  }
}