vespa
БесплатноЗапускает вложенные скриптыНе проверенDeploy, configure, feed, and query enterprise-scale vector, lexical, and hybrid search applications using vespa-engine/vespa. Manages application packages…
от akillness★ 63 звезды на GitHubОб этом скилле
vespa
Vespa is the industry-standard AI search and big data serving engine developed by Yahoo and the Vespa team. It combines high-throughput vector search (HNSW), lexical search (BM25), structured SQL-like filtering, and multi-stage online machine learning ranking in a single distributed, low-latency runtime.
Core Architecture
An application in Vespa is defined as an Application Package:
services.xml: Declares container clusters (stateless query & document processing nodes) and content clusters (stateful search & storage nodes with memory indexes).schemas/<name>.sd: Defines document schemas, field indexing options, tensor types, and ranking profiles.
Operational Loop
1. Preflight Environment Check
Verify local Docker, Vespa CLI, and port availability (8080 for search/feed, 19071 for config server):
python3 scripts/preflight.py
2. Scaffold Application Package
Generate a minimal hybrid search application package:
python3 scripts/sample_app.py --output-dir my-vespa-app
Key files generated:
services.xml: Container cluster (port 8080) and content cluster with 1 node.schemas/article.sd: Hybrid schema with BM25 text indexing and a 384-dimensional dense float tensor (tensor<float>(x[384])) indexed with HNSW.
3. Deploying to Local Container
Start a Vespa Docker container and deploy the application package:
# Launch container
docker run -d --name vespa-engine -p 8080:8080 -p 19071:19071 vespaengine/vespa:latest
# Wait for configserver readiness
vespa status configserver --wait 300
# Deploy package
vespa deploy my-vespa-app
vespa status --wait 300
4. Feeding Documents
Feed documents in JSONL format via vespa feed or High-Throughput HTTP/2 feed client:
vespa feed sample_docs.jsonl
Document format:
{
"put": "id:article:article::1",
"fields": {
"title": "Scaling Hybrid Search with Vespa",
"body": "Vespa provides native HNSW vector indexing and BM25 rank profiles.",
"embedding": [0.012, -0.045, ...]
}
}
5. Querying with YQL (Vespa Query Language)
Perform hybrid search combining dense vector nearest neighbor search with BM25 lexical matching and Reciprocal Rank Fusion:
vespa query \
'yql=select * from article where ({targetHits: 100}nearestNeighbor(embedding, query_embedding)) or userInput(@query)' \
'query=vector database' \
'input.query(query_embedding)=[0.012, -0.045, ...]' \
'ranking=hybrid'
6. PyVespa Python Workflow
For Python applications, PyVespa integrates directly with local Docker or Vespa Cloud:
from vespa.application import Vespa
from vespa.package import ApplicationPackage, Field, Schema, Document, RankProfile
app = Vespa(url="http://localhost", port=8080)
response = app.query(
yql="select * from article where userInput(@q)",
q="deep learning",
ranking="bm25"
)
Best Practices & Failure Boundaries
- Tensor Memory Overhead: HNSW memory footprint is dominated by vectors kept in RAM. Always define vector tensors with exact dimensionality (
tensor<float>(x[N])) or bfloat16/int8 quantization for massive datasets. - Multi-Stage Ranking: Use lightweight BM25 + dot-product vector search for
first-phaseranking (top 1000 candidates), and complex cross-encoders or ONNX models insecond-phase(top 100 candidates) to maintain sub-10ms latency. - Config Server Port: Never send document feed or query traffic to port 19071 (config server). Ports:
8080is data plane (search/feed),19071is control plane (deploy/status).
Установить vespa в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteEditGlobGrepВложенные файлы
FAQ
Что делает скилл vespa?
Deploy, configure, feed, and query enterprise-scale vector, lexical, and hybrid search applications using vespa-engine/vespa. Manages application packages (services.xml, schemas/*.sd), HNSW tensor indexing, BM25 rank profiles, PyVespa Python integration, and YQL queries.
Как установить скилл vespa?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл vespa запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub