TensorFluxEmbedder is a fine-tuned text embedding model covering four domains — general language, web search, scientific literature, and legal documents. Embeddings can be truncated from 768 → 512 → 256 → 128 → 64 dimensions at inference time with no retraining, letting you directly trade retrieval quality for speed and memory.
The legal corpus uses a 1:1 query-to-passage evaluation scheme where each query has exactly one relevant passage in the full corpus, making the task harder than typical multi-relevant benchmarks.
1from sentence_transformers import SentenceTransformer
2
3model = SentenceTransformer("IstishadAlamTishad/TensorFluxEmbedder")
4
5queries = [
6 "search_query: What are the procurement rules for small business government contracts?",
7]
8documents = [
9 "search_document: Agency procurement regulations require that small business offerors "
10 "receive fair opportunities pursuant to FAR Part 19.",
11 "search_document: Antibody neutralization of SARS-CoV-2 spike protein prevents viral "
12 "entry into host cells via the ACE2 receptor pathway.",
13]
14
15q_emb = model.encode(queries, normalize_embeddings=True)
16d_emb = model.encode(documents, normalize_embeddings=True)
17
18scores = model.similarity(q_emb, d_emb)
19print(scores)
20# tensor([[0.79, 0.51]])
1# Full quality (768d)
2model = SentenceTransformer("IstishadAlamTishad/TensorFluxEmbedder")
3
4# Recommended for RAG: 97% quality at 1/3 storage (256d)
5model = SentenceTransformer("IstishadAlamTishad/TensorFluxEmbedder", truncate_dim=256)
6
7# Fastest retrieval, ~82% of peak quality (64d)
8model = SentenceTransformer("IstishadAlamTishad/TensorFluxEmbedder", truncate_dim=64)
1@misc{tishad2026tensorfluxembedder,
2 author = {Istishad Alam Tishad},
3 title = {TensorFluxEmbedder: A Multi-Domain Embedding Model},
4 year = {2026},
5 url = {https://huggingface.co/IstishadAlamTishad/TensorFluxEmbedder},
6 note = {HuggingFace model repository}
7}
1@inproceedings{reimers-2019-sentence-bert,
2 title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
3 author = "Reimers, Nils and Gurevych, Iryna",
4 booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
5 month = "11",
6 year = "2019",
7 publisher = "Association for Computational Linguistics",
8 url = "https://arxiv.org/abs/1908.10084",
9}