Evo parallel batch search

From OpenLAIR/OpenSkill · View interactive version

Evo parallel batch search is an AI agent skill from the GitHub repository OpenLAIR/OpenSkill. Provides utilities for parallelizing batch query search over a pre-built TF-IDF index using the worker initializer pattern to efficiently share the read-only index across worker processes.

How to use this skill

Skill file

Parallel Batch Search

Overview

Parallelizes batch query search using ProcessPoolExecutor with the

worker initializer pattern. The index is passed once per worker at

pool creation time (via initargs), avoiding repeated pickling.

Worker Initializer Pattern

Usage

import sys
sys.path.insert(0, '/app/environment/skills/evo-parallel-batch-search/scripts')
from utils import (
    init_search_worker,
    worker_search_query,
    batch_search_parallel
)

# Batch search
results, elapsed = batch_search_parallel(
    queries, index, top_k=10, num_workers=4, documents=docs
)

Functions

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.