redis-search
Skill by vemetric
Redis Search guidance for building and querying search indexes on Hash or JSON data in Redis. Aimed at developers writing FT.CREATE schemas, FT.SEARCH queries, vector search and RAG retrieval.
Install redis-search
Built from the published package, never by AI.
git clone --depth 1 https://github.com/vemetric/vemetric /tmp/vemetric && mkdir -p ~/.claude/skills && cp -r /tmp/vemetric/.agents/skills/redis-search ~/.claude/skills/redis-searchRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/vemetric/vemetric /tmp/vemetric && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/vemetric/.agents/skills/redis-search ~/.gemini/antigravity-cli/skills/redis-searchAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The redis-search skill gives guidance for Redis Search. It covers index schema design with FT.CREATE, field types such as TEXT, TAG, NUMERIC, GEO, GEOSHAPE, VECTOR and JSON paths, and the query commands FT.SEARCH, FT.AGGREGATE and FT.HYBRID. It also covers vector similarity with HNSW or FLAT indexes and hybrid retrieval that combines lexical and vector ranking.
The assistant uses the skill for tasks such as defining an index on Hash or JSON documents, writing filtered, sorted or KNN queries, tuning HNSW parameters, and building a RAG retrieval pipeline. It also covers zero-downtime index updates through aliases and debugging slow or empty results with FT.EXPLAIN and FT.PROFILE. The source is written for developers who use Redis Search, and it includes client references for redis-py, Jedis and RedisVL.
Written from the project's SKILL.md and checked against it.
What it can do
- FT.CREATE schema designDefines index schemas on Hash or JSON documents with TEXT, TAG, NUMERIC, GEO and VECTOR fields.
- Query command selectionHelps choose between FT.SEARCH, FT.AGGREGATE and FT.HYBRID for a given task.
- Vector search setupCovers VECTOR fields with DIM, DISTANCE_METRIC and TYPE, using HNSW or FLAT algorithms.
- HNSW tuningExplains the M, EF_CONSTRUCTION and EF_RUNTIME parameters for HNSW indexes.
- Hybrid retrievalCovers filter-then-vector search and lexical plus vector fusion with FT.HYBRID.
- RAG pipeline guidanceGives tips on metric matching, chunking, batch inserts, pre-filtering and re-ranking.
- Zero-downtime index updatesShows how to swap an index behind an alias with FT.ALIASUPDATE.
- Query debuggingUses FT.EXPLAIN, FT.PROFILE and FT.INFO to troubleshoot empty or slow queries.
- Aggregation pipelinesCovers LOAD, GROUPBY, REDUCE, SORTBY and cursors for result shaping.
What you need
- Redis with Redis Search support
- Redis 8.4.0 or later for FT.HYBRID
Try asking
- Design an FT.CREATE schema for my product hashes in Redis
- Write an FT.SEARCH query with a tag filter and a price range
- Help me tune HNSW parameters for 1536-dimension embeddings
Good to know
- FT.HYBRID requires Redis 8.4.0 or later.
- On older Redis, lexical and vector blending is approximated with an FT.SEARCH pre-filter and KNN.
- Idiomatic examples cover redis-py, Jedis and RedisVL. Other clients are a follow-up in the source.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/redis-search/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md11 KB -
references/aggregate-cursors.md4 KB -
references/aggregate-pipeline.md15 KB -
references/algorithm-choice.md4 KB -
references/clients/java-jedis.md50 KB
Show all 23 files
-
references/clients/python-redis-py.md34 KB -
references/clients/python-redisvl.md49 KB -
references/command-selection.md9 KB -
references/debugging.md5 KB -
references/dialect.md3 KB -
references/field-types.md4 KB -
references/ft-create-options.md6 KB -
references/hybrid-search.md5 KB -
references/index-creation.md7 KB -
references/index-management.md4 KB -
references/json-indexing.md6 KB -
references/query-optimization.md4 KB -
references/query-syntax.md10 KB -
references/rag-pattern.md5 KB -
references/result-shaping.md6 KB -
references/search-syntax-primitives.md7 KB -
references/text-tokenization.md5 KB -
references/vector-query.md5 KB
Alternatives to redis-search
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
redis-search: common questions
Which Redis version does FT.HYBRID need?
The source says FT.HYBRID requires Redis 8.4.0 or later. For older versions it suggests approximating the blend with an FT.SEARCH pre-filter and KNN.
Should I use HNSW or FLAT for vector search?
The source suggests HNSW for production use with more than 10k vectors and latency needs. FLAT fits small corpora under 10k or cases that need exact matches.
Why point queries at an alias when changing an index?
An alias lets application queries keep one name while the underlying index is swapped with FT.ALIASUPDATE. The source presents this as a zero-downtime approach.
How do I install redis-search?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is redis-search free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is redis-search safe to use?
It scores 85 of 100. Grades: maintenance A, licence C, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to redis-search?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
