You're looking at a specific version of this model. Jump to the model overview.

itsukifujii /kalm-reranker-v1-nano-r2:a1f93e69

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
query
string
Query text.
documents
array
Array of candidate document texts.
compression_ratio
integer
4

Min: 1

Max: 128

None
top_n
integer
None
return_documents
boolean
False
Include the original document text in each result.
instruction
string
Given a query, retrieve documents that answer the query.
Task instruction inserted into the official decoder prompt.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'items': {'properties': {'document': {'title': 'Document', 'type': 'string'},
                          'index': {'title': 'Index', 'type': 'integer'},
                          'relevance_score': {'title': 'Relevance Score',
                                              'type': 'number'}},
           'required': ['index', 'relevance_score'],
           'type': 'object'},
 'title': 'Output',
 'type': 'array'}