Vectara · Example Payload

Vectara Add Document Example

AIAgentsCorporaEmbeddingsEnterprise SearchGenerative AIGrounded GenerationHallucination DetectionLLMMCPRAGRetrievalSearchSemantic SearchVector Search

Vectara Add Document Example is an example object payload from Vectara, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "POST",
    "url": "https://api.vectara.io/v2/corpora/product-docs/documents",
    "headers": {
      "x-api-key": "{VECTARA_API_KEY}",
      "Content-Type": "application/json"
    },
    "body": {
      "id": "auth-keys-guide",
      "type": "core",
      "metadata": {
        "section": "Authentication",
        "version": "v2",
        "source_url": "https://docs.example.com/auth/keys"
      },
      "document_parts": [
        {
          "text": "API keys can be rotated from the Authentication settings in the Vectara console.",
          "metadata": { "heading": "Rotating keys" }
        },
        {
          "text": "Once rotated, the old key remains valid for 60 minutes to allow rollover.",
          "metadata": { "heading": "Rollover window" }
        }
      ]
    }
  },
  "response": {
    "status": 201,
    "body": {
      "id": "auth-keys-guide",
      "type": "core"
    }
  }
}