---
title: "AIGatewayModelVectorDBConfigPgVector"
url: "https://nov18-dev.movespot.fyi/apis/konnect-ai-gateway-dev-0/versions/eaabd2fa-a9d5-44cc-b086-e210c9c21bf3/schemas/AIGatewayModelVectorDBConfigPgVector"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-ai-gateway-dev-0/versions/eaabd2fa-a9d5-44cc-b086-e210c9c21bf3.md

# AIGatewayModelVectorDBConfigPgVector

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Konnect AI Gateway
  version: 0.0.0
servers:
  - url: https://us.api.konghq.com/v1
    description: United-States Production region
  - url: https://eu.api.konghq.com/v1
    description: Europe Production region
  - url: https://au.api.konghq.com/v1
    description: Australia Production region
  - url: https://me.api.konghq.com/v1
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v1
    description: India Production region
  - url: https://sg.api.konghq.com/v1
    description: Singapore Production region
components:
  schemas:
    AIGatewayModelVectorDBConfigPgVector:
      type: object
      properties:
        strategy:
          type: string
          enum:
            - pgvector
        dimensions:
          description: the desired dimensionality for the vectors
          type: integer
        distance_metric:
          description: the distance metric to use for vector searches
          type: string
          enum:
            - cosine
            - euclidean
        threshold:
          description: the default similarity threshold for accepting semantic search
            results (float). Higher threshold means more results are considered
            similar.
          type: number
        database:
          description: the database of the pgvector database
          type: string
          default: kong-pgvector
        host:
          description: the host of the pgvector database
          type: string
          default: 127.0.0.1
        password:
          description: |-
            the password of the pgvector database 
            This field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault). 
            This field is [encrypted](/gateway/keyring/).
          type: string
          writeOnly: true
          x-encrypted: true
          x-referenceable: true
        port:
          description: the port of the pgvector database
          type: integer
          default: 5432
        ssl:
          type: object
          additionalProperties: false
          properties:
            enabled:
              description: whether to use ssl for the pgvector database
              type: boolean
              default: false
            cert:
              description: the path of ssl cert to use for the pgvector database
              type: string
            cert_key:
              description: the path of ssl cert key to use for the pgvector database
              type: string
            required:
              description: whether ssl is required for the pgvector database
              type: boolean
              default: false
            verify:
              description: whether to verify ssl for the pgvector database
              type: boolean
              default: true
            version:
              description: the ssl version to use for the pgvector database
              type: string
              default: tlsv1_2
              enum:
                - any
                - tlsv1_2
                - tlsv1_3
        timeout:
          description: the timeout of the pgvector database
          type: number
          default: 5000
        user:
          description: |-
            the user of the pgvector database 
            This field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          type: string
          default: postgres
          x-referenceable: true
      additionalProperties: false
      required:
        - strategy
        - dimensions
        - distance_metric
```
