In-browser tool to explore semantic similarity segmenting strategies by generating and querying overlapping text segments using Transformers.js.
5
stars
7
commits
JavaScript
primary language
May 18, 2025
updated
Live Demo: https://do-me.github.io/semantic-segment-explorer/
In-browser tool to explore semantic similarity by generating overlapping text segments or N-grams and querying them using Transformers.js. This application allows you to input a source text, which is then broken down into numerous overlapping segments. Each unique segment is embedded using minishlab/potion-retrieval-32M, and you can then query these segments to find those most semantically similar to your query.
The main motivation behind this app is to experiment with different text chunking/segmentation strategies and observe how the semantic similarity results vary, especially with segments of different lengths.
This project was primarily created to experiment with different text segmentation (chunking) techniques for semantic search. Segment length and boundaries do affect retrieval quality obviously but it's cool to see how sometimes longer segments are more similar to a query.
If you're interested in semantic search or similar in-browser AI applications, you might also like:
This demo is mainly experimental and I don't intend on developing it much further. Still, your contributions are more than welcome!
Distributed under the MIT License.
transformers.js library and model hosting.7 commits
JavaScript
48.2%
HTML
46.8%
CSS
5.0%
In-browser tool to explore semantic similarity segmenting strategies by generating and querying overlapping text segments using Transformers.js.
5
stars
7
commits
JavaScript
primary language
May 18, 2025
updated
Live Demo: https://do-me.github.io/semantic-segment-explorer/
In-browser tool to explore semantic similarity by generating overlapping text segments or N-grams and querying them using Transformers.js. This application allows you to input a source text, which is then broken down into numerous overlapping segments. Each unique segment is embedded using minishlab/potion-retrieval-32M, and you can then query these segments to find those most semantically similar to your query.
The main motivation behind this app is to experiment with different text chunking/segmentation strategies and observe how the semantic similarity results vary, especially with segments of different lengths.
This project was primarily created to experiment with different text segmentation (chunking) techniques for semantic search. Segment length and boundaries do affect retrieval quality obviously but it's cool to see how sometimes longer segments are more similar to a query.
If you're interested in semantic search or similar in-browser AI applications, you might also like:
This demo is mainly experimental and I don't intend on developing it much further. Still, your contributions are more than welcome!
Distributed under the MIT License.
transformers.js library and model hosting.7 commits
JavaScript
48.2%
HTML
46.8%
CSS
5.0%