AI・機械学習
中級
Voyage-3-lite(ボヤージュスリーライト)
AnthropicのAI子会社VoyageAIが提供する高速・低コスト埋め込みモデル。Voyage-3のライト版で1M tokens $0.02・英語特化で高いコスパを実現。
0 回閲覧
0 いいね
2026/6/7 更新
関連タグ
embedding
voyage-ai
anthropic
rag
low-cost
high-performance
Voyage-3-lite
概要
Voyage-3-lite(ボヤージュ スリー ライト)は、AnthropicがサポートするAI企業VoyageAIが2024年9月に公開した軽量・高速埋め込みモデルです。Voyage-3シリーズのエントリーモデルとして設計されており、$0.02/1M tokensの低コストながらMTEB(Massive Text Embedding Benchmark)英語ランキングでOpenAIのtext-embedding-3-smallを上回るパフォーマンスを示しています。
Voyage-3シリーズ比較
| モデル | 次元数 | 最大トークン | 料金 | MTEB Avg | 特徴 |
|---|---|---|---|---|---|
| voyage-3.5 | 1024 | 32,000 | $0.06/1M | 72.5 | 最高精度・最新版 |
| voyage-3 | 1024 | 32,000 | $0.06/1M | 70.1 | 高精度・多言語 |
| voyage-3-lite | 512 | 32,000 | $0.02/1M | 67.3 | 低コスト・高速 |
| voyage-finance-2 | 1024 | 16,000 | $0.12/1M | — | 金融特化 |
| voyage-code-2 | 1536 | 16,000 | $0.12/1M | — | コード特化 |
Python SDK での使用
import voyageai
client = voyageai.Client(api_key="your-voyage-api-key")
# 単一テキストの埋め込み
result = client.embed(
["最新のGPUはどれが最も性能が高いですか?"],
model="voyage-3-lite",
input_type="query" # "query" or "document"
)
vector = result.embeddings[0] # 512次元リスト
print(f"次元数: {len(vector)}, トークン消費: {result.total_tokens}")
# バッチ埋め込み(ドキュメント側)
documents = [
"RTX 4090は24GB GDDR6Xを搭載し、3DMarkスコアは30000超",
"Radeon RX 7900 XTXは24GB GDDR6を搭載",
"Arc B580は12GB GDDR6でコスパに優れる"
]
doc_embeddings = client.embed(
documents,
model="voyage-3-lite",
input_type="document"
).embeddings
input_type の使い分け
VoyageAIのモデルはinput_typeパラメータで検索クエリとドキュメントを区別します:
query: ユーザーの検索クエリに最適化(短いテキスト・質問形式)document: 検索対象のドキュメント(長いテキスト・情報提供形式)None: 区別なし(テキスト分類・クラスタリング等)
この非対称エンコーディングにより、クエリとドキュメントで異なる最適化が適用され、検索精度が向上します。
Claude + Voyage RAGパイプライン
import anthropic
import voyageai
import numpy as np
voyage = voyageai.Client()
claude = anthropic.Anthropic()
def retrieve_and_generate(query: str, documents: list) -> str:
# Step 1: 埋め込み生成
query_emb = voyage.embed([query], model="voyage-3-lite",
input_type="query").embeddings[0]
doc_embs = voyage.embed(documents, model="voyage-3-lite",
input_type="document").embeddings
# Step 2: コサイン類似度で上位3件取得
scores = [
np.dot(query_emb, emb) / (np.linalg.norm(query_emb) * np.linalg.norm(emb))
for emb in doc_embs
]
top_indices = sorted(range(len(scores)), key=lambda i: scores[i], reverse=True)[:3]
context = "\n\n".join(documents[i] for i in top_indices)
# Step 3: Claudeで回答生成
response = claude.messages.create(
model="claude-opus-4-8",
max_tokens=1024,
messages=[{"role": "user", "content": f"Context:\n{context}\n\nQuestion: {query}"}]
)
return response.content[0].text
コスト比較(月間1億クエリ想定)
| モデル | 1M tokens料金 | 月額コスト(推定) | 精度水準 |
|---|---|---|---|
| Voyage-3-lite | $0.02 | $1,800 | 高(英語) |
| text-embedding-3-small | $0.02 | $1,800 | 高 |
| Voyage-3 | $0.06 | $5,400 | 最高水準 |
| text-embedding-3-large | $0.13 | $11,700 | 最高水準 |
| BGE-M3(ローカル) | $0 | インフラ費のみ | 高(多言語強い) |
英語RAGシステムでは、Voyage-3-liteとtext-embedding-3-smallが同一コストで高品質な選択肢となっています。