File size: 658 Bytes
274e253
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
license: mit
---

This repo contains the code needed to run AIR-Bench using llamaindex.

In this repo, I implement a custom retriever that uses `text-embedding-ada-002` as the dense embedding model, bm25 for sparse embeddings, and the `QueryFusionRetriever()` to combine results from these two, as well as generating extra queries for retrieval.

## Usage

`pip install llama-index llama-index-retrievers-bm25`

`python ./run_airbench.py`

## Customization

Feel free to use this as a template to evaluate other llama-index retrieval pipelines! You just need to customize the setup in `create_retriever_fn()` with the setup that you want to test against.