vespa
БесплатноБез исполняемых скриптовНе проверенVespa hybrid retrieval and ranking. BM25 + ANN + ColBERT late interaction in one query, ranking phases (match-phase, first-phase, second-phase, global-phase)…
от claude-dev-suite★ 51 звезда на GitHubОб этом скилле
Vespa
Why Vespa
Vespa was built at Yahoo for search+recommendation at web scale. Its vector search is a side-effect of a broader ranking engine — which is also its advantage.
- Hybrid retrieval (BM25 + ANN + ColBERT) composed in one query.
- Ranking phases let you run cheap scoring over millions, expensive scoring over tens.
- Tensor math (sum, reduce, matmul) in the ranking language — you can express almost any scoring function.
- In-cluster embedding inference: encode at write and query time without an external service.
- Proven at billions of documents (Yahoo, Spotify, Perplexity).
Cost: steeper learning curve than purpose-built vector DBs. Use Vespa when ranking control is the requirement, not an afterthought.
Vespa Cloud vs Self-Hosted
| Option | Best for |
|---|---|
| Vespa Cloud | Managed multi-tenant, zero ops, serverless billing |
| Docker standalone | Dev/local; small single-node deployments |
| Self-hosted multi-node | Air-gapped, custom tuning, cost control at very large scale |
# Install Vespa CLI
brew install vespa-cli
vespa config set target cloud
vespa config set application my-tenant.my-app
vespa auth login
Application Package Layout
my-app/
services.xml # cluster topology
schemas/
doc.sd # schema + rank profiles (the main thing)
search/
query-profiles/ # reusable query templates
components/
...
Deploy with vespa deploy --wait 300.
Schema (.sd) with Dense, Sparse, ColBERT
schema doc {
document doc {
field id type string { indexing: summary | attribute }
field text type string {
indexing: summary | index
index: enable-bm25
}
field tenant_id type string {
indexing: summary | attribute
attribute: fast-search
}
field created_at type long { indexing: summary | attribute }
# Dense embedding
field embedding type tensor<float>(x[1024]) {
indexing: attribute | index
attribute {
distance-metric: angular
}
index {
hnsw {
max-links-per-node: 24
neighbors-to-explore-at-insert: 200
}
}
}
# ColBERT token-level embeddings
field colbert_tokens type tensor<bfloat16>(t{}, x[128]) {
indexing: attribute | summary
}
}
# Rank profile: BM25 + dense + ColBERT in three phases
rank-profile hybrid inherits default {
inputs {
query(q_dense) tensor<float>(x[1024])
query(q_tokens) tensor<float>(qt{}, x[128])
}
first-phase {
expression: bm25(text) + closeness(field, embedding)
}
second-phase {
rerank-count: 100
expression {
sum(
reduce(
sum(query(q_tokens) * attribute(colbert_tokens), x),
max, t
),
qt
)
}
}
match-features: bm25(text) closeness(field, embedding)
}
}
Key moves:
bm25(text)— classical lexical.closeness(field, embedding)— 1 / (1 + distance) after HNSW retrieval.- ColBERT MaxSim is a tensor expression over token-level attributes.
- Three-phase: cheap
first-phaseon 100k candidates, expensivesecond-phaseon top 100.
Services.xml (Topology)
<services version="1.0">
<container id="default" version="1.0">
<search/>
<document-api/>
<nodes>
<node hostalias="node0"/>
</nodes>
</container>
<content id="docs" version="1.0">
<redundancy>2</redundancy>
<documents>
<document type="doc" mode="index"/>
</documents>
<nodes>
<node hostalias="node0" distribution-key="0"/>
<node hostalias="node1" distribution-key="1"/>
</nodes>
<engine>
<proton>
<tuning><searchnode><requestthreads><persearch>4</persearch></requestthreads></searchnode></tuning>
</proton>
</engine>
</content>
</services>
redundancy=2 gives HA; more nodes shard the index.
Feed Documents
# pip install pyvespa
from vespa.application import Vespa
app = Vespa(url="https://my-app.my-tenant.vespa-app.cloud")
app.feed_data_point(
schema="doc",
data_id="d1",
fields={
"id": "d1",
"text": "OAuth uses refresh tokens.",
"tenant_id": "acme",
"created_at": 1700000000,
"embedding": {"values": dense_vec.tolist()},
"colbert_tokens": {
"cells": [
{"address": {"t": str(i), "x": str(j)}, "value": float(v)}
for i, row in enumerate(colbert_vecs)
for j, v in enumerate(row)
],
},
},
)
For bulk, use app.feed_iterable() or the Vespa Feeder CLI (vespa feed), which streams JSON files at
Установить vespa в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobWriteEditFAQ
Что делает скилл vespa?
Vespa hybrid retrieval and ranking. BM25 + ANN + ColBERT late interaction in one query, ranking phases (match-phase, first-phase, second-phase, global-phase), tensor expressions, cloud vs self-hosted, schema definition (.sd files), embedding in-cluster, scale to billions. USE WHEN: user mentions "Vespa", "Vespa schema", "Vespa ranking", "vespa.ai", "tensor ranking", "Vespa hybrid", "Vespa cloud" DO NOT USE FOR: other vector stores - use `vector-stores/*` siblings; ColBERT without Vespa - use `retrieval/colbert-retrieval`; classical reranking - use `rag/reranking`
Как установить скилл vespa?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл vespa запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic