Configure background FAQ extraction

Connect Redis Agent Memory, run the Agent Playbooks extraction worker, and create, enable, pause, and remove extraction bindings.

Background extraction reads idle Redis Agent Memory sessions and creates frequently asked question (FAQ) proposals for human review. It doesn't publish FAQs or create skills. An accepted proposal still needs review and publication before agents receive it.

Extraction is optional. It needs Redis Agent Memory and Agent Playbooks in the same redis-iris release, a persistent queue Redis, and a generation model. It needs no Identity Service subject grants, lookup credentials, or Identity Service control trust.

How extraction is wired

Caller Calls Credential Trust
Agent Playbooks control plane Redis Agent Memory control plane, to list stores and confirm the source store's tenant Projected ServiceAccount token, audience api://memory-cp Set by the suite, role viewer
Extraction worker Redis Agent Memory data plane, to read sessions Projected ServiceAccount token, audience api://memory-dp Set by the suite, mem-store:* read
Extraction worker Agent Playbooks data plane, to search and propose Projected ServiceAccount token, audience api://playbook-dp Set by the suite

The two subjects are system:serviceaccount:<namespace-name>:redis-agent-playbook-controlplane and system:serviceaccount:<namespace-name>:redis-agent-playbook-worker.

Extraction with the Redis Iris suite chart

Set global.iris.extraction.enabled: true. The suite derives the extraction connection, playbook.worker.enabled, and playbook.worker.sourceURL, and configures Redis Agent Memory to trust both subjects. A value you set by hand under playbook.extraction, playbook.worker.enabled, playbook.worker.sourceURL, memory.memory.auth.jwt_subjects, or memory.controlplane.configData.auth.workload_identity that differs fails the render and names it.

You still provide:

Value Purpose
Redis Agent Memory store The source store for a binding, in the release's tenant.
global.iris.workloadIdentity.issuer and global.iris.workloadIdentity.jwksURI Validate the projected control-plane and worker tokens. They default to the in-cluster API server. On Amazon EKS, set both. The preflight checks that the issuer matches and that the JSON Web Key Set (JWKS) is reachable without a credential.
Queue Redis URL Store extraction jobs. Use persistence, noeviction, and capacity monitoring. Don't reuse the Agent Playbooks metadata or content Redis.
Generation provider and model Extract and consolidate FAQ candidates. These credentials are separate from the embedding configuration.
playbook.worker.existingSecret and playbook.worker.region The worker configuration Secret, and the region that names its queues.

Leave config.existingSecret unset on both Redis Agent Memory planes and on the Agent Playbooks control plane: the derived trust and extraction settings land only in the configurations the charts render. Allow network paths for the worker, the queue Redis, and the model provider.

Configure Agent Playbooks extraction

Save the private worker configuration as worker.yaml:

inference_providers:
  private-generation:
    protocol: openai
    endpoint:
      base_url: https://<generation-provider-host>/v1
      generation_api: chat_completions
    http_client:
      timeout: 30s
      max_retry_attempts: 0

worker:
  redis:
    urls:
      - rediss://<queue-user>:<queue-password>@<queue-host>:6379
  llm:
    provider: private-generation
    models:
      default_chat_model: <generation-model-name>
    reasoning_mappings:
      - model_patterns:
          - <generation-model-name>
        values:
          low:
            reasoning_effort: low
    credentials:
      type: static
      api_key: <generation-provider-api-key>

The reasoning mapping tells the client how to send the worker's low reasoning effort to this model. generation_api accepts chat_completions or responses. Don't add worker.target_token; the chart supplies the worker's own token for the Agent Playbooks data plane.

Create the Secret:

kubectl -n <namespace-name> create secret generic playbook-extraction-worker \
  --from-file=worker.yaml=./worker.yaml

Add the extraction values to iris-values.yaml:

global:
  iris:
    extraction:
      enabled: true

playbook:
  worker:
    region: <region>
    existingSecret: playbook-extraction-worker
    scanConcurrency: 1
    extractConcurrency: 1
  • worker.region names the queues, playbook-extraction:<region>:scan and playbook-extraction:<region>:extract. Run one active regional deployment per binding inventory.
  • Bindings start disabled, so the worker reads nothing until you enable a binding.

Upgrade the release:

helm upgrade iris redis-ai/redis-iris \
  --version 1.0.0 \
  --namespace <namespace-name> \
  -f iris-values.yaml
kubectl -n <namespace-name> rollout status deployment/redis-agent-playbook-worker

The upgrade creates the worker, and rolls the Redis Agent Memory planes and worker and the Agent Playbooks planes once. Startup fails when the model, region, or token file is missing, or when the queue Redis is unreachable. Check the worker's /health/readiness and /metrics on port 9203 before you enable a binding.

Create and enable a binding

These requests need the admin token or an OpenID Connect (OIDC) token with the product_admin or suite_admin role. Operators and viewers can't list sources or create or enable bindings. Each playbook has one binding.

List the Redis Agent Memory stores the control plane can see:

curl --fail-with-body -sS \
  "$IRIS_AGENT_PLAYBOOKS_SERVICE_URL/iris/v1/agent-playbooks/playbooks/$IRIS_AGENT_PLAYBOOKS_PLAYBOOK_ID/extraction/stores" \
  -H "Authorization: Bearer $IRIS_AGENT_PLAYBOOKS_SERVICE_TOKEN" | jq '.items'

Create a binding for one store:

jq -n --arg store '<memory-store-id>' \
  '{source: {kind: "REDIS_AGENT_MEMORY", storeId: $store}, job: {kind: "FAQ"}}' \
  > binding-request.json

curl --fail-with-body -sS \
  -X POST "$IRIS_AGENT_PLAYBOOKS_SERVICE_URL/iris/v1/agent-playbooks/playbooks/$IRIS_AGENT_PLAYBOOKS_PLAYBOOK_ID/extraction/bindings" \
  -H "Authorization: Bearer $IRIS_AGENT_PLAYBOOKS_SERVICE_TOKEN" \
  -H 'Content-Type: application/json' \
  --data-binary @binding-request.json > binding.json
export BINDING_ID="$(jq -er '.bindingId' binding.json)"

A successful create returns 201 with state: READY and enabled: false. It confirms that the store exists in your tenant and that the caller may connect it. It doesn't check model access or worker connectivity. Binding IDs start with bind_.

Enable the binding with its current revision:

curl --fail-with-body -sS \
  "$IRIS_AGENT_PLAYBOOKS_SERVICE_URL/iris/v1/agent-playbooks/playbooks/$IRIS_AGENT_PLAYBOOKS_PLAYBOOK_ID/extraction/bindings/$BINDING_ID" \
  -H "Authorization: Bearer $IRIS_AGENT_PLAYBOOKS_SERVICE_TOKEN" > binding.json

jq '{expectedRevision: .revision, enabled: true}' binding.json > activation.json

curl --fail-with-body -sS \
  -X PATCH "$IRIS_AGENT_PLAYBOOKS_SERVICE_URL/iris/v1/agent-playbooks/playbooks/$IRIS_AGENT_PLAYBOOKS_PLAYBOOK_ID/extraction/bindings/$BINDING_ID" \
  -H "Authorization: Bearer $IRIS_AGENT_PLAYBOOKS_SERVICE_TOKEN" \
  -H 'Content-Type: application/json' \
  --data-binary @activation.json > binding.json

Enabling checks the store and the caller again. A stale expectedRevision returns 412; read the binding again and rebuild activation.json. If the check fails, the binding is unchanged. A binding that later fails reports state: BLOCKED with a blockedReason, such as source_not_found or source_access_denied.

The Iris command-line interface (CLI) runs the same steps: iris agent-playbooks extraction bind <memory-store-id> --enable, then extraction list, show, pause, enable, and delete.

The worker looks for due bindings every five minutes (playbook.worker.scanInterval, default 300s). A session must stay idle for 30 minutes by default before the worker extracts from it. Set job.idleWindowSeconds from 60 to 86,400 when you create or update a binding. Neither setting is an end-to-end freshness guarantee: queue and model time also affect when a proposal appears.

For the first run, send a small session with a known FAQ to the bound store, let it go idle, and review the proposals and evidence in the playbook. A healthy deployment can produce no proposal for a session that has no reusable FAQ.

Tune the worker

Set these under playbook:.

Value Default Purpose
worker.scanInterval 300s How often the worker looks for due bindings. Use the same value on every worker that shares a queue, and restart them after a change. Shorter intervals add source-listing load.
worker.timeout 2m FAQ strategy timeout.
worker.reasoningEffort low Reasoning effort sent through the model's reasoning mapping.
worker.maxInputTokens 8192 Input cap for each model request.
worker.maxCompletionTokens 4096 Output cap for each model request.
worker.scanConcurrency, worker.extractConcurrency 1 Consumers per queue per replica.
worker.maxPending 1000 Bound on unfinished tasks per queue.

These settings apply to every binding. Model and credential changes apply to unfinished and new sessions; completed sessions aren't extracted again. Keep the first deployment at one replica and one extraction consumer, and qualify model quality and load before you scale.

Monitor extraction

Scrape /metrics on port 9203 of every worker pod, and alert on sustained queue age, permanent failures, exhausted attempts, lease loss, provider errors, and dispatch staleness. Useful signals include:

  • iris_jobqueue_oldest_pending_seconds, for backlog. Use max across pods, not a sum.
  • iris_jobqueue_processing_duration_seconds_count{processing_outcome="permanent_failure"}
  • iris_playbook_extraction_runs_total{exhausted="true"}
  • iris_playbook_extraction_dispatch_last_success_age_seconds

Four charged failures exhaust a session's attempts. An empty queue doesn't prove that every session was processed.

Pause or remove extraction

To pause a binding, send enabled: false with its current expectedRevision. To remove it, send DELETE to the binding; the request returns 202. Both work while Redis Agent Memory is unavailable. Deleting a binding doesn't delete Redis Agent Memory data, proposals, or FAQs.

Work the worker already accepted can still finish after a pause or delete. The worker's read access lasts until you turn extraction off and the Redis Agent Memory planes roll out.

To remove extraction from the deployment, pause or delete the bindings first, then set global.iris.extraction.enabled: false and upgrade the release. The suite removes the worker, the connection, and Redis Agent Memory's trust in both subjects. The bindings stay in the Agent Playbooks metadata Redis.

RATE THIS PAGE
Back to top ↑