Universal offline-first search for Floke products — ranking engine, optional Ollama enrichment, IndexedDB corpus helpers.
| Mode | Meaning |
|---|---|
| 2.3-O | Bigram-fuzzy scoring, filter tokens, history — no network |
| 2.3-On | Optional ollamaJson() for query expansion or suggestions |
| Target | How |
|---|---|
| Floke landing | npm run bundle:floke → Floke/docs/assets/glyph-search-2.3.js |
| glyph-sO (Obsidian) | npm run bundle:obsidian → vendor/*.cjs |
| glyph-miO (Obsidian) | same bundle (Ollama helper) |
import { rankSearchItems, scoreSearchItem, parseSearchQuery } from './lib/engine.js';
import { ollamaAvailable, ollamaJson } from './lib/ollama.js';
const items = [{ cat: 'note', title: () => 'My Note', sub: 'path', keys: [], body: () => 'content' }];
const ranked = rankSearchItems(items, 'my note', { limit: 12 });npm run bundle:floke
npm run bundle:obsidianollama pull llama3.2
ollama serve # http://127.0.0.1:11434import { ollamaJson } from './lib/ollama.js';
const out = await ollamaJson({
prompt: 'Reply JSON: {"q":"keywords"} for search: cultiva changelog',
}, { model: 'llama3.2' });- glyph-mi — Senza metadata intelligence
- glyph-miO — Obsidian MI plugin
- glyph-sO — Obsidian search plugin
Floke Studio · GPL-3.0