Type Alias: ColbertEmbedderOptions
ColbertEmbedderOptions =
object
Defined in: extensions/nlp/tasks/colbertEmbedding.ts:30
Tokenization settings of a ColBERT model, as found in the
config_sentence_transformers.json that
PyLate, the library ColBERT models
are trained and published with, saves next to the weights.
Properties
bosToken?
readonlyoptionalbosToken:string
Defined in: extensions/nlp/tasks/colbertEmbedding.ts:55
Token prepended to every input, e.g. '<|startoftext|>'. Omit when the model has none.
documentPrefixToken
readonlydocumentPrefixToken:string
Defined in: extensions/nlp/tasks/colbertEmbedding.ts:40
Token inserted right after the BOS token of every document
(document_prefix, e.g. '[D] '). Must be a single vocabulary token.
queryExpansionToken
readonlyqueryExpansionToken:string
Defined in: extensions/nlp/tasks/colbertEmbedding.ts:53
Token that pads queries up to ColbertEmbedderOptions.queryLength (query augmentation). Padding is masked out of attention, but its output vectors are kept and take part in scoring.
queryLength
readonlyqueryLength:number
Defined in: extensions/nlp/tasks/colbertEmbedding.ts:47
Length of every query in tokens, special tokens included
(query_length). Shorter queries are padded to it with
ColbertEmbedderOptions.queryExpansionToken; longer ones are
truncated.
queryPrefixToken
readonlyqueryPrefixToken:string
Defined in: extensions/nlp/tasks/colbertEmbedding.ts:35
Token inserted right after the BOS token of every query (query_prefix,
e.g. '[Q] '). Must be a single vocabulary token.
skiplistTokens
readonlyskiplistTokens: readonlystring[]
Defined in: extensions/nlp/tasks/colbertEmbedding.ts:61
Tokens whose vectors are dropped from document embeddings
(skiplist_words, usually punctuation). Tokens missing from the
vocabulary are ignored.