File size: 3,628 Bytes
b28b170
 
d845e86
 
 
 
 
b28b170
d845e86
 
 
 
 
 
 
 
 
 
 
 
 
aa11c9a
 
03a0811
 
 
 
 
 
 
aa11c9a
d845e86
 
 
aa11c9a
d845e86
 
 
 
 
 
 
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
---
license: mit
tags:
- transformers.js
- transformers
- semanticsearch
- SemanticFinder
---
<p align="center">
  <a href="https://do-me.github.io/SemanticFinder/">
    <img src="https://github.com/do-me/SemanticFinder/assets/47481567/4522ab9d-08f4-4f4c-92db-dbf14ccb2b70" width="320" alt="SemanticFinder">
  </a>    
<h1 align="center">Frontend-only live semantic search with transformers.js</h1>
</p>

- **App: [SemanticFinder](https://do-me.github.io/SemanticFinder/)**

- **GitHub: [do-me/SemanticFinder](https://github.com/do-me/SemanticFinder)**

This is the HF data repo for indexed texts, ready-to-import in SemanticFinder. The files contain the original text, text chunks and their embeddings. 

### Catalogue

| filesize | textTitle | textAuthor | textYear | textLanguage | URL | modelName | quantized | splitParam | splitType | characters | chunks | exportDecimals | lines | textNotes | textSourceURL | filename |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 4.78 | Das Kapital | Karl Marx | 1867 | de | https://do-me.github.io/SemanticFinder/?hf=Das_Kapital_64b55b6a | Xenova/multilingual-e5-small | True | 80 | Words | 2003807 | 3164 | 5 | 28673 |  | https://ia601605.us.archive.org/13/items/KarlMarxDasKapitalpdf/KAPITAL1.pdf | Das_Kapital_64b55b6a.json.gz |
| 2.58 | Divina Commedia | Dante | 1321 | it | https://do-me.github.io/SemanticFinder/?hf=Divina_Commedia_d5de4a96 | Xenova/multilingual-e5-base | True | 50 | Words | 383782 | 1179 | 5 | 6225 |  | http://www.letteratura-italiana.com/pdf/divina%20commedia/08%20Inferno%20in%20versione%20italiana.pdf | Divina_Commedia_d5de4a96.json.gz |
| 1.74 | IPCC Report 2023 | IPCC | 2023 | en | https://do-me.github.io/SemanticFinder/?hf=IPCC_Report_2023_5b129f31 | Supabase/bge-small-en | True | 200 | Chars | 307811 | 1566 | 5 | 3230 | state of knowledge of climate change | https://report.ipcc.ch/ar6syr/pdf/IPCC_AR6_SYR_LongerReport.pdf | IPCC_Report_2023_5b129f31.json.gz |
| 11.45 | King James Bible |  | None | en | https://do-me.github.io/SemanticFinder/?hf=King_James_Bible_07a376a9 | TaylorAI/gte-tiny | True | 200 | Chars | 4556163 | 23056 | 2 | 80496 |  | https://www.holybooks.com/wp-content/uploads/2010/05/The-Holy-Bible-King-James-Version.pdf | King_James_Bible_07a376a9.json.gz |
| 25.56 | King James Bible |  | None | en | https://do-me.github.io/SemanticFinder/?hf=King_James_Bible_f8c80398 | TaylorAI/gte-tiny | True | 200 | Chars | 4556163 | 23056 | 5 | 80496 |  | https://www.holybooks.com/wp-content/uploads/2010/05/The-Holy-Bible-King-James-Version.pdf | King_James_Bible_f8c80398.json.gz |

### Example
Once loaded in SemanticFinder it takes less than 3 seconds to search through the whole bible! Try it out. 

1. Copy the URL, e.g. `https://huggingface.co/datasets/do-me/SemanticFinder/resolve/main/king-james-bible_gte-tiny_q_200-chars_2-dec.json.gz` to the "Import URL" field and load it. Depending on your connection this might be instant or take a couple of seconds.
2. Once loaded, simply enter something you want to search for and hit "Find". The result appear instantly.

### Create SemanticFinder files 

1. Just use SemanticFinder as usual and run at least one search so that the index is created. This might take a while if your input is large. E.g. indexing the bible with 200 chars results in ~23k embeddings and takes 15-30 mins with a quantized gte-tiny model.
2. Export the index file. Note that you have the freedom to reduce decimals to reduce file size; usually 5 is more than enough.
3. Create a PR here if you want to see it added in the official collection!