pplx-embed-v1-late-0.6b
is a token-level late-interaction embedding model for retrieval with MaxSim scoring. It is continued training of
pplx-embed-v1-0.6b
using
ContrastiveLoss
to optimize token-level MaxSim.
Usage
Install PyLate:
pip install -U pylate
Index and retrieve documents:
from pylate import indexes, models, retrieve
# Load the model (requires trust_remote_code for the custom architecture).
model = models.ColBERT(
model_name_or_path="perplexity-ai/pplx-embed-v1-late-0.6b",
trust_remote_code=True,
)
# Documents to index.
documents_ids = ["1", "2", "3"]
documents = [
"Scientists explore the universe driven by curiosity.",
"Children learn through curious exploration.",
"Historical discoveries began with curious questions.",
]
# Build a PLAID index over the document embeddings.
index = indexes.PLAID(
index_folder="pylate-index",
index_name="pplx-embed-v1-late-0.6b",
override=True,
)
documents_embeddings = model.encode(
documents,
batch_size=32,
is_query=False,
show_progress_bar=True,
)
index.add_documents(
documents_ids=documents_ids,
documents_embeddings=documents_embeddings,
)
# Retrieve the top-k documents for a query.
retriever = retrieve.ColBERT(index=index)
queries_embeddings = model.encode(
["What motivates scientific discovery?"],
batch_size=32,
is_query=True,
show_progress_bar=True,
)
scores = retriever.retrieve(queries_embeddings=queries_embeddings, k=3)
print(scores)
Performance
We evaluate
pplx-embed-v1-late-0.6b
on two standard late-interaction retrieval suites and report the average nDCG@10:
BEIR
— average over 15 English retrieval tasks.
MIRACL
— average over 18 languages.
Benchmark
pplx-embed-v1-late-0.6b
Reference
BEIR (15 tasks)
56.61
colbert-zero: 55.43
MIRACL (18 langs)
66.62
jina-colbert-v2: 62.28
Technical Details
This model uses late interaction: queries and documents are encoded as token-level vectors and scored with MaxSim rather than pooled into a single vector.
pplx-embed-v1-late-0.6b huggingface.co is an AI model on huggingface.co that provides pplx-embed-v1-late-0.6b's model effect (), which can be used instantly with this perplexity-ai pplx-embed-v1-late-0.6b model. huggingface.co supports a free trial of the pplx-embed-v1-late-0.6b model, and also provides paid use of the pplx-embed-v1-late-0.6b. Support call pplx-embed-v1-late-0.6b model through api, including Node.js, Python, http.
pplx-embed-v1-late-0.6b huggingface.co is an online trial and call api platform, which integrates pplx-embed-v1-late-0.6b's modeling effects, including api services, and provides a free online trial of pplx-embed-v1-late-0.6b, you can try pplx-embed-v1-late-0.6b online for free by clicking the link below.
perplexity-ai pplx-embed-v1-late-0.6b online free url in huggingface.co:
pplx-embed-v1-late-0.6b is an open source model from GitHub that offers a free installation service, and any user can find pplx-embed-v1-late-0.6b on GitHub to install. At the same time, huggingface.co provides the effect of pplx-embed-v1-late-0.6b install, users can directly use pplx-embed-v1-late-0.6b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
pplx-embed-v1-late-0.6b install url in huggingface.co: