Downloads · 30 days
10
27% of all-time downloads
mikhailmedical/potion-retrieval-32M-obsidian-tfjs
potion-retrieval-32M-obsidian-tfjs is a feature extraction model from mikhailmedical. Use it when you need embeddings to search or compare text. It is set up for model2vec. The card lists the license as mit.
Fine-tuned variant of minishlab/potion-retrieval-32M, adapted for Obsidian-markdown content (headings/breadcrumbs, wikilinks, tags, frontmatter-style metadata, code fences) and packaged for transformers.js / Smart Con…
Downloads · 30 days
10
27% of all-time downloads
All-time downloads
37
Public
Repo size
129 MB
Likes
1
Public
Click a slice to open those files.
.onnx129 MB · 99%
From the Hugging Face model README
Fine-tuned variant of minishlab/potion-retrieval-32M, adapted for Obsidian-markdown content (headings/breadcrumbs, wikilinks, tags, frontmatter-style metadata, code fences) and packaged for transformers.js / Smart Connections.
Same interface as the base tfjs export: input_ids [batch, seq] + attention_mask [batch, seq] (int64) → last_hidden_state [batch, 1, 512] masked mean-pooled; tokenizer ships without special-token post-processor (matches native model2vec pooling).
import { pipeline } from '@huggingface/transformers';
const p = await pipeline('feature-extraction', 'mikhailmedical/potion-retrieval-32M-obsidian-tfjs', { dtype: 'fp32' });
const out = await p(texts, { pooling: 'mean', normalize: true });
MIT license, inherited from the upstream model.