| LateInteractionEmbedder | R Documentation |
Token-level embeddings for late interaction scoring
dimensionToken embedding dimension
languageLanguage setting ("en" or "ml")
new()Create a new LateInteractionEmbedder
LateInteractionEmbedder$new(dimension = 64, language = "en")
dimensionEmbedding dimension per token
languageLanguage behavior ("en" = ASCII-focused, "ml" = Unicode-aware)
embed()Embed texts to token-level embeddings
LateInteractionEmbedder$embed(texts)
textsCharacter vector of texts
List of matrices (each matrix is token embeddings for a document)
score()Compute late interaction (MaxSim) score
LateInteractionEmbedder$score(query_embeddings, doc_embeddings)
query_embeddingsQuery token embeddings matrix
doc_embeddingsDocument token embeddings matrix
Numeric score
clone()The objects of this class are cloneable with this method.
LateInteractionEmbedder$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.