-
Notifications
You must be signed in to change notification settings - Fork 84
Closed
Closed
Copy link
Labels
Milestone
Description
Jobs to be done
Explain how users can apply ACLs and metadata filters when ingesting and querying RAG content, so they can securely restrict access and refine search results.
Definition of done
- Update RAG injector plugin docs to reflect new capabilities:
- Collection-based ACL behavior tied to Kong consumer groups
- Metadata fields on ingestion (
collection,tags,date,source) - Query-time metadata filters +
filter_modeandstop_on_filter_error - Supported filter grammar options (Bedrock-like and Mongo-like)
- Provide working examples to the plugin examples section:
- Ingest chunk with metadata
- Lookup request using metadata filters + ACL context
- Create a short how-to showing:
- How to set collection ACL config in plugin
- How to structure metadata on ingest
- How to issue filtered queries
- General updates:
- Call out limits (max filter size, max clauses)
- Add notes on behavior if filters fail / legacy mode
Sample comfiguration (TBD):
plugins:
- name: ai-rag-injector
config:
inject_template: |
Only use the following information surrounded by <RAG></RAG> to and your existing knowledge to provide the best possible answer to the user.
<RAG><CONTEXT></RAG>
User's question: <PROMPT>
embeddings:
auth:
header_name: Authorization
header_value: Bearer ${{ env "DECK_OPENAI_API_KEY" }}
model:
provider: openai
name: text-embedding-3-large
vectordb:
strategy: redis
redis:
host: ${{ env "DECK_REDIS_HOST" }}
port: 6379
distance_metric: cosine
dimensions: 76
# --- NEW ACL + metadata filtering config ---
global_acl_config:
required_auth: true
allowed_groups:
- finance
- admin
legacy_behavior: deny
collection_overrides:
finance-reports:
require_auth: true
allowed_groups:
- finance
- admin
public-knowledge:
require_auth: false
allowed_groups: []Information
- Implementation details: https://docs.google.com/document/d/1wZgAFIUqnLeDC8JHoQNS9VFTUWdSUKtWIpbJYwI0_X8/edit?tab=t.0
- Person of contact: Wangchong
Due date
TBD with feature release
Size
L β new how-to + updates to reference sections
Reactions are currently unavailable