Skip to content

Commit

Permalink
Merge pull request #67 from Kong/ai-semantic-prompt-guard-example
Browse files Browse the repository at this point in the history
Fix: Update AI semantic prompt guard example with latest schema
  • Loading branch information
lmilan authored Sep 11, 2024
2 parents 8c937a4 + 49e77a7 commit 627bbdd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
13 changes: 9 additions & 4 deletions examples/ai-semantic-prompt-guard/_3.8.x.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
name: ai-semantic-prompt-guard
config:
embeddings:
provider: openai
name: text-embedding-3-large
auth:
header_name: Authorization
header_value: Bearer <OPENAI_API_TOKEN>
model:
name: text-embedding-3-small
provider: openai
search:
threshold: 0.7
vectordb:
strategy: redis
distance_metric: cosine
Expand All @@ -14,5 +20,4 @@ config:
rules:
match_all_conversation_history: true
allow_prompts:
- "[1] = string.rep('x', 501)"
deny_prompts: {}
- Questions about Kong
13 changes: 9 additions & 4 deletions examples/ai-semantic-prompt-guard/_3.9.x.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
name: ai-semantic-prompt-guard
config:
embeddings:
provider: openai
name: text-embedding-3-large
auth:
header_name: Authorization
header_value: Bearer <OPENAI_API_TOKEN>
model:
name: text-embedding-3-small
provider: openai
search:
threshold: 0.7
vectordb:
strategy: redis
distance_metric: cosine
Expand All @@ -14,5 +20,4 @@ config:
rules:
match_all_conversation_history: true
allow_prompts:
- "[1] = string.rep('x', 501)"
deny_prompts: {}
- Questions about Kong

0 comments on commit 627bbdd

Please sign in to comment.