File size: 1,098 Bytes
282b54c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
license: cc-by-nc-sa-4.0
---

This dataset contains the embeddings for the segmented [TREC RAG 2024 corpus](https://trec-rag.github.io/annoucements/2024-corpus-finalization/), embedded with the Cohere Embed V3 model.

You can search on this dataset with just 500MB of memory using [DiskVectorIndex](https://github.com/cohere-ai/DiskVectorIndex).

# Installation & Usage

Get your free **Cohere API key** from [cohere.com](https://cohere.com). You must set this API key as an environment variable: 
```
export COHERE_API_KEY=your_api_key
```

Install the package:
```
pip install DiskVectorIndex
```

You can then search via:
```python
from DiskVectorIndex import DiskVectorIndex

index = DiskVectorIndex("Cohere/trec-rag-2024-index")

while True:
    query = input("\n\nEnter a question: ")
    docs = index.search(query, top_k=3)
    for doc in docs:
        print(doc)
        print("=========")
```

# License

Please observe the License for the [TREC RAG 2024 Corpus](https://trec-rag.github.io/annoucements/2024-corpus-finalization/). The license displayed here is just for the embeddings.