metadata
license: mit
tags:
- transformers.js
- transformers
- semanticsearch
- SemanticFinder
Frontend-only live semantic search with transformers.js
App: SemanticFinder
GitHub: 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
| Title | Source | Model | Quantized | Characters | Lines | Split Type | Split Num | Chunks | Decimals | Filesize [Mb] | URL |
|---|---|---|---|---|---|---|---|---|---|---|---|
| King James Bible | holybooks.com | gte-tiny | true | 4,640,737 | 80,496 | chars | 200 | 23,055 | 2 | 11.7 | https://huggingface.co/datasets/do-me/SemanticFinder/resolve/main/king-james-bible_gte-tiny_q_200-chars_2-dec.json.gz |
| King James Bible | holybooks.com | gte-tiny | true | 4,640,737 | 80,496 | chars | 200 | 23,055 | 4 | 26.17 | https://huggingface.co/datasets/do-me/SemanticFinder/resolve/main/king-james-bible_gte-tiny_q_200-chars_4-dec.json.gz |
| IPCC Report 2022 | ipcc.ch | bge-small-en | true | 311,979 | 3230 | chars | 200 | 23,055 | 5 | 1.8 | https://huggingface.co/datasets/do-me/SemanticFinder/resolve/main/ipcc-2023_bge-small-en_q_200-chars_5-dec.json.gz |
Example
Once loaded in SemanticFinder it takes less than 3 seconds to search through the whole bible! Try it out.
- 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.gzto the "Import URL" field and load it. Depending on your connection this might be instant or take a couple of seconds. - Once loaded, simply enter something you want to search for and hit "Find". The result appear instantly.
Create SemanticFinder files
- 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.
- Export the index file. Note that you have the freedom to reduce decimals to reduce file size; usually 5 is more than enough.
- Create a PR here if you want to see it added in the official collection!