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 | Model | Quantized | Split Type | Split Num | Decimals | Filesize [Mb] | URL |
---|---|---|---|---|---|---|---|
King James Bible | gte-tiny | true | chars | 200 | 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 | gte-tiny | true | chars | 200 | 4 | 26.17 | https://huggingface.co/datasets/do-me/SemanticFinder/resolve/main/king-james-bible_gte-tiny_q_200-chars_4-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.gz
to 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!