Agent skill
glean-performance-tuning
Optimize Glean search relevance and indexing throughput with batch sizing, datasource configuration, and content quality improvements. Trigger: "glean performance", "glean search quality", "glean indexing speed".
Install this agent skill to your Project
npx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/main/plugins/saas-packs/glean-pack/skills/glean-performance-tuning
SKILL.md
Glean Performance Tuning
Overview
Optimize Glean for better search results and faster indexing: tune content quality, batch sizes, and datasource configuration.
Search Relevance
| Factor | Impact | Action |
|---|---|---|
| Document titles | High | Use descriptive, unique titles |
| Body content | High | Include full text, not just metadata |
| Author info | Medium | Set email for people ranking |
| Updated date | Medium | Keep timestamps current |
| URL structure | Low | Use readable, hierarchical URLs |
Indexing Throughput
// Optimal batch configuration
const BATCH_SIZE = 100; // Max per API call
const CONCURRENT_BATCHES = 3; // Parallel uploads
const DELAY_BETWEEN_MS = 500; // Avoid rate limits
async function indexWithThroughput(docs: GleanDocument[]) {
const batches = chunk(docs, BATCH_SIZE);
const queue = new PQueue({ concurrency: CONCURRENT_BATCHES, interval: DELAY_BETWEEN_MS });
await Promise.all(batches.map((batch, i) =>
queue.add(() => glean.indexDocuments('my_ds', batch))
));
}
Incremental vs Bulk Strategy
| Strategy | When | API Endpoint |
|---|---|---|
Incremental (indexdocuments) |
Real-time updates, < 100 docs | /index/v1/indexdocuments |
Bulk (bulkindexdocuments) |
Daily full refresh, > 1000 docs | /index/v1/bulkindexdocuments |
Resources
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
dockerfile-generator
Dockerfile Generator - Auto-activating skill for DevOps Basics. Triggers on: dockerfile generator, dockerfile generator Part of the DevOps Basics skill category.
branch-naming-helper
Branch Naming Helper - Auto-activating skill for DevOps Basics. Triggers on: branch naming helper, branch naming helper Part of the DevOps Basics skill category.
readme-generator
Readme Generator - Auto-activating skill for DevOps Basics. Triggers on: readme generator, readme generator Part of the DevOps Basics skill category.
makefile-generator
Makefile Generator - Auto-activating skill for DevOps Basics. Triggers on: makefile generator, makefile generator Part of the DevOps Basics skill category.
gitignore-generator
Gitignore Generator - Auto-activating skill for DevOps Basics. Triggers on: gitignore generator, gitignore generator Part of the DevOps Basics skill category.
pre-commit-hook-setup
Pre Commit Hook Setup - Auto-activating skill for DevOps Basics. Triggers on: pre commit hook setup, pre commit hook setup Part of the DevOps Basics skill category.
Didn't find tool you were looking for?