SemanticFinder / README.md
do-me's picture
Update README.md
03a0811
|
raw
history blame
3.63 kB
metadata
license: mit
tags:
  - transformers.js
  - transformers
  - semanticsearch
  - SemanticFinder

SemanticFinder

Frontend-only live semantic search with transformers.js

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!