The default reranker produces a list of dictionaries representing the reranked documents. Each document object contains the following fields:
id: A unique identifier (can be database IDs or simple numeric indices).text: The content of the document.meta: An optional dictionary for storing additional metadata.score: The relevance score assigned by the reranker.
Example output structure:
[
{
"id": 4,
"text": "Document content here...",
"meta": {
"additional": "info4"
},
"score": 0.016847236
}
]
[
{
"id":4,
"text":"Ever want to make your LLM inference go brrrrr but got stuck at implementing speculative decoding and finding the suitable draft model? No more pain! Thrilled to unveil Medusa, a simple framework that removes the annoying draft model while getting 2x speedup.",
"meta":{
"additional":"info4"
},
"score":0.016847236
},
{
"id":5,
"text":"vLLM is a fast and easy-to-use library for LLM inference and serving. vLLM is fast with: State-of-the-art serving throughput Efficient management of attention key and value memory with PagedAttention Continuous batching of incoming requests Optimized CUDA kernels",
"meta":{
"additional":"info5"
},
"score":0.011563735
}
]