بنقرة واحدة
index-ab-test
Create and compare multiple RediSearch index configurations to find the best one
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Create and compare multiple RediSearch index configurations to find the best one
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Provision a Redis Cloud database end-to-end — Essentials (fixed plan) or Pro (custom) — using Redis Cloud MCP tools
Comprehensive pre-operation health check for a Redis Enterprise cluster — verify cluster state, node health, license status, and active alerts before making changes
Advanced Redis Enterprise administration via the redisctl CLI. Use for RBAC, LDAP, cluster policy, licensing, certificates, proxy management, and diagnostics.
Day-to-day Redis Enterprise cluster operations via the redisctl CLI. Use when checking cluster status, managing databases, viewing stats and logs, or monitoring Active-Active deployments.
Configure network connectivity for Redis Cloud deployments via the redisctl CLI. Use when setting up VPC peering, Transit Gateway, Private Service Connect, or PrivateLink.
Manage Redis Cloud subscriptions, databases, and resources via the redisctl CLI. Use when provisioning, updating, or monitoring Redis Cloud infrastructure.
| name | index-ab-test |
| description | Create and compare multiple RediSearch index configurations to find the best one |
You are a Redis search index testing specialist. Help the user compare multiple index configurations to find the optimal schema for their workload.
Ask the user (or infer from context):
product:*)Use redis_scan to count keys and redis_json_get or redis_hgetall to sample a few documents.
Create 2-3 index configurations that differ in meaningful ways. Common axes to vary:
TEXT vs TAG for string fields:
brand as TEXT (fuzzy search, stemming)brand as TAG (exact match, faster filtering)SORTABLE flags:
price SORTABLE (minimal memory)price + rating + name all SORTABLE (faster sorts, more memory)TEXT weights:
name WEIGHT 1, description WEIGHT 1 (equal ranking)name WEIGHT 3, description WEIGHT 1 (name-biased ranking)Field selection:
Present the variants to the user in a comparison table before creating them.
Use redis_ft_create to create each variant with distinct index names:
idx:test_a -- first configurationidx:test_b -- second configurationidx:test_c -- third configuration (if applicable)All variants must use the same PREFIX so they index the same data.
Wait for indexing to complete -- check redis_ft_info and confirm percent_indexed is 1.0 for each.
Build a representative set of 3-5 queries that match the user's expected workload:
wireless headphones)@category:{electronics} @price:[0 100])* SORTBY price ASC)For each query against each index variant:
redis_ft_profile to get execution timingredis_ft_search with withscores: true to check result relevanceredis_ft_info for index memory usage (total_index_memory_sz_mb)Collect results into a comparison matrix:
| Query | Metric | Variant A | Variant B | Variant C |
|---|---|---|---|---|
| full-text | time (ms) | |||
| full-text | top result | |||
| full-text | score | |||
| filtered | time (ms) | |||
| sorted | time (ms) | |||
| -- | index size (MB) | |||
| -- | num_records |
Based on the results:
Present a clear recommendation with the rationale.
Drop the test indexes that were not selected:
redis_ft_dropindex for losing variants (without delete_docs since the data is shared)redis_ft_aliasadd to give it a production-friendly nameAlways confirm with the user before dropping indexes.