File size: 1,756 Bytes
da5d0de
 
 
dda9f59
 
 
7071394
dda9f59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---

license: mit
---


# Benchmark embedding models course

This repository gives you access to large datasets for the embedding models course. Since these files are too big for GitHub, you’ll find them in the [datasets](https://huggingface.co/datasets/ImadSaddik/BenchmarkEmbeddingModelsCourse/tree/main/datasets) folder. Each file includes:

- Text chunks taken from documents.
- Questions that can be answered using those chunks.

## Data format

Each JSON file looks like this:

```json

{

    "chunks": [

        {

            "id": 0,

            "text_chunk": "",

            "embeddings": {

                "gemini-embedding-001": [],

            }

        },

        ...

    ],

    "question_answer_pairs": [

        {

            "chunk_id": 0,

            "question": "",

            "embeddings": {

                "gemini-embedding-001": [],

            }

        },

        ...

    ]

}

```

- Every `text_chunk` and `question` has an `embeddings` field.
- The `embeddings` field stores dense vectors from different models.

## How to use

1. Download this repository, or just the JSON files you need.
2. Put the files in the `data/embeddings/` folder of the [Benchmark_Embedding_Models](https://github.com/ImadSaddik/Benchmark_Embedding_Models) repository.
3. You’ll use these files in the following notebooks:
   - [5_1_BenchmarkModelsManually.ipynb](https://github.com/ImadSaddik/Benchmark_Embedding_Models/blob/main/notebooks/5_1_BenchmarkModelsManually.ipynb)
   - [5_2_BenchmarkModelsRanx.ipynb](https://github.com/ImadSaddik/Benchmark_Embedding_Models/blob/main/notebooks/5_2_BenchmarkModelsRanx.ipynb)

## License

This repository is licensed under the [MIT License](./LICENSE).