Update README.md
Browse files
README.md
CHANGED
@@ -11,6 +11,7 @@ tags:
|
|
11 |
- Scientific
|
12 |
- Scientific Wikipedia
|
13 |
- Science Wikipedia
|
|
|
14 |
license: cc-by-sa-3.0
|
15 |
task_categories:
|
16 |
- text-generation
|
@@ -22,9 +23,11 @@ task_categories:
|
|
22 |
|
23 |
Processed version of millawell/wikipedia_field_of_science, prepared to be used in small context length RAG systems. Chunk length is tokenizer dependent, but each chunk should be around 512 tokens. Longer wikipedia pages have been split into smaller entries, with title added as a prefix.
|
24 |
|
|
|
|
|
25 |
If you wish to prepare some other chunk length:
|
26 |
-
|
27 |
-
|
28 |
```
|
29 |
def chunker_clean(results, example, length=512, approx_token=3, prefix=""):
|
30 |
if len(results) == 0:
|
|
|
11 |
- Scientific
|
12 |
- Scientific Wikipedia
|
13 |
- Science Wikipedia
|
14 |
+
- 512 tokens
|
15 |
license: cc-by-sa-3.0
|
16 |
task_categories:
|
17 |
- text-generation
|
|
|
23 |
|
24 |
Processed version of millawell/wikipedia_field_of_science, prepared to be used in small context length RAG systems. Chunk length is tokenizer dependent, but each chunk should be around 512 tokens. Longer wikipedia pages have been split into smaller entries, with title added as a prefix.
|
25 |
|
26 |
+
There is also 256 tokens dataset available: Laz4rz/wikipedia_science_chunked_small_rag_256
|
27 |
+
|
28 |
If you wish to prepare some other chunk length:
|
29 |
+
1. use millawell/wikipedia_field_of_science
|
30 |
+
2. adapt chunker function:
|
31 |
```
|
32 |
def chunker_clean(results, example, length=512, approx_token=3, prefix=""):
|
33 |
if len(results) == 0:
|