[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76X3CAX885BFASF92VEXDT1":3,"skill-same:01M76X3CAX885BFASF92VEXDT1":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M76X3CAX885BFASF92VEXDT1","redis-semantic-cache",null,"Redis LangCache guidance for semantic caching of LLM responses on Redis Cloud — calling search\u002Fset via the SDK or REST API, tuning the similarity threshold, separating caches per task type, and filtering with custom attributes. Use when caching LLM completions or RAG answers to cut API cost and latency, building a cache-aside layer in front of OpenAI \u002F Anthropic \u002F etc., tuning hit rate vs precision, or splitting one app's LLM workloads into multiple LangCache caches.","stanfish06\u002Fskillquarium","stanfish06","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F93099613?v=4","01M75F1CK4ZW109ZK3T26VN52F","Zhiyuan","01M75F1CM53VH6F79DZ8GXKKES",12,"MIT","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fredis-semantic-cache\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: redis-semantic-cache\ndescription: Redis LangCache guidance for semantic caching of LLM responses on Redis Cloud — calling search\u002Fset via the SDK or REST API, tuning the similarity threshold, separating caches per task type, and filtering with custom attributes. Use when caching LLM completions or RAG answers to cut API cost and latency, building a cache-aside layer in front of OpenAI \u002F Anthropic \u002F etc., tuning hit rate vs precision, or splitting one app's LLM workloads into multiple LangCache caches.\nlicense: MIT\nmetadata:\n  author: Redis, Inc.\n  version: \"0.1.0\"\n---\n\n# Redis Semantic Cache\n\nSemantic caching for LLM responses with Redis Cloud's LangCache service. Stores prompts as embeddings; subsequent semantically-similar prompts return the cached response without re-calling the model.\n\n> LangCache is currently in **preview** on Redis Cloud. Features and behavior may change.\n\n## When to apply\n\n- Wrapping an LLM call (OpenAI, Anthropic, etc.) with a cache layer to cut cost and latency.\n- Caching RAG answers, classification outputs, or any deterministic LLM workload.\n- Tuning the precision\u002Fhit-rate trade-off for a semantic cache.\n- Splitting one application's LLM workloads across multiple cache instances.\n\n## 1. The cache-aside flow\n\nLangCache fits in front of any LLM call as a standard cache-aside pattern:\n\n1. Send the user's prompt to LangCache's `search`.\n2. **Cache hit** — return the stored response directly.\n3. **Cache miss** — call the LLM, then `set` the response so future similar prompts hit.\n\n```python\nfrom langcache import LangCache\nimport os\n\nlang_cache = LangCache(\n    server_url=f\"https:\u002F\u002F{os.getenv('HOST')}\",\n    cache_id=os.getenv(\"CACHE_ID\"),\n    api_key=os.getenv(\"API_KEY\"),\n)\n\nresult = lang_cache.search(prompt=\"What is Redis?\", similarity_threshold=0.9)\nif result:\n    response = result[0][\"response\"]\nelse:\n    response = llm.generate(\"What is Redis?\")\n    lang_cache.set(prompt=\"What is Redis?\", response=response)\n```\n\nThe same operations are available via REST (`POST \u002Fv1\u002Fcaches\u002F{cacheId}\u002Fentries\u002Fsearch` and `POST \u002Fv1\u002Fcaches\u002F{cacheId}\u002Fentries`) when an SDK isn't an option.\n\nSee [references\u002Flangcache-usage.md](references\u002Flangcache-usage.md) for full SDK + REST samples and attribute-based storage.\n\n## 2. Tune the similarity threshold\n\nThe threshold controls how close (in embedding cosine distance) a new prompt must be to a cached one to count as a hit. Higher = stricter match, fewer false positives. Lower = more hits, more risk of returning an off-topic answer.\n\n| Threshold | Behavior | Use when |\n|---|---|---|\n| 0.95+ | Near-exact match required | Customer-facing answers where wrong responses are costly |\n| 0.9 | Balanced default | Most workloads — start here |\n| 0.8 | Loose semantic match | Internal tools, exploratory queries, FAQ deduplication |\n\n```python\n# Stricter — fewer false positives\nresult = lang_cache.search(prompt=\"What is Redis?\", similarity_threshold=0.95)\n\n# Looser — higher hit rate\nresult = lang_cache.search(prompt=\"What is Redis?\", similarity_threshold=0.8)\n```\n\nAdjust by watching the actual cache-hit rate and spot-checking that returned answers are still relevant.\n\nSee [references\u002Fbest-practices.md](references\u002Fbest-practices.md).\n\n## 3. Separate caches per task type\n\nDifferent LLM workloads should not share one cache — a \"code question\" prompt is semantically close to other code questions but has nothing to do with a password-reset support query, and crossing them returns garbage.\n\n```python\nsupport_cache = LangCache(server_url=..., cache_id=\"support-cache-id\", api_key=...)\ncode_cache    = LangCache(server_url=..., cache_id=\"code-cache-id\",    api_key=...)\n```\n\nCreate distinct cache IDs in Redis Cloud per task, and route each call to the right one. As a finer-grained alternative, store and search with **custom attributes** (e.g. `{\"category\": \"database\"}`) to keep tasks in the same cache but isolated by attribute filter — useful when the same prompt format spans subtopics.\n\n## References\n\n- [LangCache documentation](https:\u002F\u002Fredis.io\u002Fdocs\u002Flatest\u002Fdevelop\u002Fai\u002Flangcache\u002F)\n","# Redis Semantic Cache\n\nSemantic caching for LLM responses with Redis Cloud's LangCache service. Stores prompts as embeddings; subsequent semantically-similar prompts return the cached response without re-calling the model.\n\n> LangCache is currently in **preview** on Redis Cloud. Features and behavior may change.\n\n## When to apply\n\n- Wrapping an LLM call (OpenAI, Anthropic, etc.) with a cache layer to cut cost and latency.\n- Caching RAG answers, classification outputs, or any deterministic LLM workload.\n- Tuning the precision\u002Fhit-rate trade-off for a semantic cache.\n- Splitting one application's LLM workloads across multiple cache instances.\n\n## 1. The cache-aside flow\n\nLangCache fits in front of any LLM call as a standard cache-aside pattern:\n\n1. Send the user's prompt to LangCache's `search`.\n2. **Cache hit** — return the stored response directly.\n3. **Cache miss** — call the LLM, then `set` the response so future similar prompts hit.\n\n```python\nfrom langcache import LangCache\nimport os\n\nlang_cache = LangCache(\n    server_url=f\"https:\u002F\u002F{os.getenv('HOST')}\",\n    cache_id=os.getenv(\"CACHE_ID\"),\n    api_key=os.getenv(\"API_KEY\"),\n)\n\nresult = lang_cache.search(prompt=\"What is Redis?\", similarity_threshold=0.9)\nif result:\n    response = result[0][\"response\"]\nelse:\n    response = llm.generate(\"What is Redis?\")\n    lang_cache.set(prompt=\"What is Redis?\", response=response)\n```\n\nThe same operations are available via REST (`POST \u002Fv1\u002Fcaches\u002F{cacheId}\u002Fentries\u002Fsearch` and `POST \u002Fv1\u002Fcaches\u002F{cacheId}\u002Fentries`) when an SDK isn't an option.\n\nSee [references\u002Flangcache-usage.md](references\u002Flangcache-usage.md) for full SDK + REST samples and attribute-based storage.\n\n## 2. Tune the similarity threshold\n\nThe threshold controls how close (in embedding cosine distance) a new prompt must be to a cached one to count as a hit. Higher = stricter match, fewer false positives. Lower = more hits, more risk of returning an off-topic answer.\n\n| Threshold | Behavior | Use when |\n|---|---|---|\n| 0.95+ | Near-exact match required | Customer-facing answers where wrong responses are costly |\n| 0.9 | Balanced default | Most workloads — start here |\n| 0.8 | Loose semantic match | Internal tools, exploratory queries, FAQ deduplication |\n\n```python\n# Stricter — fewer false positives\nresult = lang_cache.search(prompt=\"What is Redis?\", similarity_threshold=0.95)\n\n# Looser — higher hit rate\nresult = lang_cache.search(prompt=\"What is Redis?\", similarity_threshold=0.8)\n```\n\nAdjust by watching the actual cache-hit rate and spot-checking that returned answers are still relevant.\n\nSee [references\u002Fbest-practices.md](references\u002Fbest-practices.md).\n\n## 3. Separate caches per task type\n\nDifferent LLM workloads should not share one cache — a \"code question\" prompt is semantically close to other code questions but has nothing to do with a password-reset support query, and crossing them returns garbage.\n\n```python\nsupport_cache = LangCache(server_url=..., cache_id=\"support-cache-id\", api_key=...)\ncode_cache    = LangCache(server_url=..., cache_id=\"code-cache-id\",    api_key=...)\n```\n\nCreate distinct cache IDs in Redis Cloud per task, and route each call to the right one. As a finer-grained alternative, store and search with **custom attributes** (e.g. `{\"category\": \"database\"}`) to keep tasks in the same cache but isolated by attribute filter — useful when the same prompt format spans subtopics.\n\n## References\n\n- [LangCache documentation](https:\u002F\u002Fredis.io\u002Fdocs\u002Flatest\u002Fdevelop\u002Fai\u002Flangcache\u002F)\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25,"version":26},"Redis, Inc.","0.1.0","master","49e49abf2f670d429e0b7e2c0349739c3fdd5cbe","skills\u002Fredis-semantic-cache",5,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium","https:\u002F\u002Fgithub.com\u002Fstanfish06","https:\u002F\u002Fwww.stanfish.dev\u002F","2026-11-14 21:31:37",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add stanfish06\u002Fskillquarium --skill redis-semantic-cache",{"tool":41,"command":42},"bunx","bunx skills add stanfish06\u002Fskillquarium --skill redis-semantic-cache",{"tool":44,"command":45},"pnpm","pnpm dlx skills add stanfish06\u002Fskillquarium --skill redis-semantic-cache","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fredis-semantic-cache\u002FSKILL.md",true,[49,55,59],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"agents\u002Fopenai.yaml","REFERENCE","参考文档",176,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fredis-semantic-cache\u002Fagents\u002Fopenai.yaml",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fbest-practices.md",1740,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fredis-semantic-cache\u002Freferences\u002Fbest-practices.md",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Flangcache-usage.md",2118,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fredis-semantic-cache\u002Freferences\u002Flangcache-usage.md",[64,71,80,87,94,101],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M76ZJTRVA456GD7K8Y3EP82H","zarr-python","Stores and queries chunked N-D scientific arrays with Zarr-Python 3, including codecs, sharding, S3\u002FGCS storage, and NumPy\u002FDask\u002FXarray integration. Use for array layout, bounded I\u002FO, format migration, or scientific metadata preservation.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":75,"licenseFileUrl":76,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M76ZJQZ15Q1HKC5V85NHE325","yeet","Publish local changes to GitHub by confirming scope, committing intentionally, pushing the branch, and opening a draft PR through the GitHub app from this plugin, with `gh` used only as a fallback where connector coverage is insufficient.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":75,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M76ZJ8ASZ4QYQ70Y6SBA4Z4S","xarray","N-dimensional labeled arrays and datasets in Python. Built on top of NumPy and Dask. It introduces labels in the form of dimensions, coordinates, and attributes on top of raw NumPy-like arrays, making data analysis in physical sciences more intuitive and less error-prone. Use for working with multi-dimensional scientific data, NetCDF\u002FGRIB\u002FZarr files, climate\u002Fweather\u002Foceanographic datasets, remote sensing, geospatial imaging, large out-of-memory datasets with Dask, and labeled array operations.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fxarray\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M76ZHFBXD6VXPQ02VCEG202B","writing-mstest-tests","Use when asked to fix, rewrite, update, improve, modernize, show corrected code for, or explain existing MSTest tests or MSTest-specific configuration. Use for \"review\" when corrected code or edits are wanted, even for one pasted assertion or passing tests with bad failure output. Covers expected\u002Factual labels; generic Boolean, collection, string, numeric, null, identity, exception, hard-cast, and object[] checks; TestContext\u002Flifecycle; timeout\u002Fcancellation; OS\u002FCI conditions, retry, cleanup, parallelization, MSTest.Sdk project setup, and MSTESTxxxx. Honor the installed MSTest version. DO NOT USE to design new test cases (code-testing), perform report-only audits, create project files rather than explain MSTest setup, run tests, migrate frameworks, or handle non-MSTest\u002Fnon-.NET code.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwriting-mstest-tests\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M76ZDFDF4N88RH6HSYGS7GP2","wgs-prs","End-to-end WGS to polygenic risk score pipeline. Takes paired-end FASTQ files (or a pre-existing VCF) through nf-core\u002Fsarek for variant calling, applies VCF QC (normalisation, hard filtering, Ti\u002FTv and Het\u002FHom checks), then computes polygenic risk scores via the PGS Catalog. Fills the FASTQ to VCF gap upstream of the gwas-prs skill.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwgs-prs\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":75,"licenseFileUrl":105,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M76ZCC1SC68J42QK4MDC8RCG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[]]