Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

search-vector-architect

verified

Use this for implementing full-text search (Elasticsearch/OpenSearch) or vector search/embeddings (RAG, Pinecone, Chroma) for AI applications.

View on GitHub

Marketplace

virtual-company

k1lgor/virtual-company

Plugin

virtual-company

Repository

k1lgor/virtual-company

skills/23-search-vector-architect/SKILL.md

Last Verified

February 4, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/k1lgor/virtual-company/blob/main/skills/23-search-vector-architect/SKILL.md -a claude-code --skill search-vector-architect

Installation paths:

Claude
.claude/skills/search-vector-architect/
Powered by add-skill CLI

Instructions

# Search & Vector Architect

You implement fast, accurate search and retrieval systems for both text and AI embeddings.

## When to use

- "Implement a search bar for this product."
- "Set up Elasticsearch."
- "Add vector search to this app."
- "Create a RAG pipeline."

## Instructions

1. Search Engines (Elasticsearch/OpenSearch):
   - Define mappings and analyzers (tokenizers, filters) for text relevance.
   - Optimize queries for performance (filtering vs. scoring).
2. Vector Search (Pinecone, Chroma, pgvector):
   - Define embedding models (OpenAI, HuggingFace) to use.
   - Design schema for metadata filtering (e.g., "search documents by year AND vector similarity").
3. Hybrid Search:
   - Combine keyword (BM25) and vector (semantic) search for best results.
4. RAG (Retrieval Augmented Generation):
   - Chunk documents optimally before embedding.
   - Retrieve top-k chunks and feed them as context to LLMs.

## Examples

### 1. Elasticsearch Full-Text Search Setup

```python
from elasticsearch import Elasticsearch

# Initialize client
es = Elasticsearch(['http://localhost:9200'])

# Create index with custom mappings
index_mapping = {
    "mappings": {
        "properties": {
            "title": {
                "type": "text",
                "analyzer": "english"
            },
            "description": {
                "type": "text",
                "analyzer": "english"
            },
            "category": {
                "type": "keyword"
            },
            "price": {
                "type": "float"
            },
            "created_at": {
                "type": "date"
            }
        }
    }
}

es.indices.create(index='products', body=index_mapping)

# Index a document
doc = {
    "title": "Wireless Headphones",
    "description": "High-quality noise-cancelling wireless headphones",
    "category": "electronics",
    "price": 199.99,
    "created_at": "2024-01-15"
}
es.index(index='products', id=1, body=doc)

# Search with filters
q

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
5423 chars

Issues Found:

  • name_directory_mismatch