AI Semantic Cache 플러그인 OpenAPI 명세
AI Semantic Cache 플러그인 OpenAPI 명세 (AI Semantic Cache Plugin OpenAPI Specification)
이 문서는 AI Semantic Cache 플러그인의 OpenAPI 명세를 제공해요. 캐시된 시맨틱 검색 쿼리를 관리하는 API를 설명하고 있어요. 캐시 항목을 조회, 삭제, 전체 삭제하는 방법을 다루고 있답니다.
출처: 문서
본문
---
openapi: 3.0.2
info:
title: AI Semantic Cache API
version: 1.0.0
description: API for managing cached semantic search queries in Kong via the AI
Semantic Cache plugin.
contact:
email: docs@konghq.com
name: Kong Inc
url: https://konghq.com
externalDocs:
description: AI Semantic Cache Plugin API Specification
url: https://developer.konghq.com
servers:
- description: Default Admin API URL
url: "{protocol}://{hostname}:{port}{path}"
variables:
hostname:
default: localhost
description: Hostname for Kong's Admin API
path:
default: "/"
description: Base path for Kong's Admin API
port:
default: '8001'
description: Port for Kong's Admin API
protocol:
default: http
description: Protocol for requests to Kong's Admin API
enum:
- http
- https
security:
- personalAccessToken: []
paths:
"/ai-semantic-cache":
delete:
operationId: purgeAllSemanticCache
summary: Purge All Semantic Cache Entities
description: Deletes all cached semantic query responses across all AI Semantic
Cache plugins.
responses:
'204':
description: Cache successfully purged.
'500':
description: Internal server error.
tags:
- AI Semantic Cache
"/ai-semantic-cache/{cache_key}":
get:
operationId: getSemanticCacheEntity
summary: Retrieve a Cached Semantic Query
description: Retrieves a cached semantic query response by its cache key.
parameters:
- name: cache_key
in: path
required: true
description: The cache key of the semantic query response to retrieve.
schema:
type: string
responses:
'200':
description: Cache entry found.
'404':
description: Cache entry not found.
'500':
description: Internal server error.
tags:
- AI Semantic Cache
delete:
operationId: deleteSemanticCacheEntity
summary: Delete a Cached Semantic Query
description: Deletes a cached semantic query response by its cache key.
parameters:
- name: cache_key
in: path
required: true
description: The cache key of the semantic query response to delete.
schema:
type: string
responses:
'204':
description: Cache entry successfully deleted.
'404':
description: Cache entry not found.
'500':
description: Internal server error.
tags:
- AI Semantic Cache
"/ai-semantic-cache/{plugin_id}/caches/{cache_key}":
get:
operationId: getSemanticCacheEntityByPlugin
summary: Retrieve a Cached Semantic Query for a Specific Plugin
description: Retrieves a cached semantic query response within a specific AI
Semantic Cache plugin.
parameters:
- name: plugin_id
in: path
required: true
description: The ID of the AI Semantic Cache plugin instance.
schema:
type: string
- name: cache_key
in: path
required: true
description: The cache key of the semantic query response to retrieve.
schema:
type: string
responses:
'200':
description: Cache entry found.
'404':
description: Cache entry not found.
'500':
description: Internal server error.
tags:
- AI Semantic Cache
delete:
operationId: deleteSemanticCacheEntityByPlugin
summary: Delete a Cached Semantic Query for a Specific Plugin
description: Deletes a cached semantic query response within a specific AI Semantic
Cache plugin.
parameters:
- name: plugin_id
in: path
required: true
description: The ID of the AI Semantic Cache plugin instance.
schema:
type: string
- name: cache_key
in: path
required: true
description: The cache key of the semantic query response to delete.
schema:
type: string
responses:
'204':
description: Cache entry successfully deleted.
'404':
description: Cache entry not found.
'500':
description: Internal server error.
tags:
- AI Semantic Cache
tags:
- name: AI Semantic Cache
description: API endpoints for managing cached semantic query entities in Kong.
components:
securitySchemes:
personalAccessToken:
type: http
scheme: bearer
bearerFormat: Token
관련 리소스
더 알아보기 (Learn more)
- AI Gateway를 시작하는 방법을 안내합니다. — Get started with AI Gateway
- 임베딩 기반 유사도 매칭에 대해 설명합니다. — Embedding-based similarity matching in Kong AI gateway plugins