MCPcopy Create free account
hub / github.com/OpenBMB/VisRAG / encode

Method encode

src/openmatch/modeling/dense_retrieval_model.py:142–225  ·  view source on GitHub ↗
(self, items, model, head, is_query=False, **kwargs)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 9

encode_passageMethod · 0.95
encode_queryMethod · 0.95
process_lineMethod · 0.80
_convert_to_tensorsMethod · 0.80
_convert_to_tensorsMethod · 0.80
unk_token_lengthMethod · 0.80
_tokenizeMethod · 0.80
__getitem__Method · 0.80
compute_rewardMethod · 0.80

Calls 2

last_token_poolFunction · 0.85
formatMethod · 0.80

Tested by

no test coverage detected