Skip to content

FlokeStudio/glyph-s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glyph-S 2.3-O / 2.3-On

Universal offline-first search for Floke products — ranking engine, optional Ollama enrichment, IndexedDB corpus helpers.

version offline on license

Mode Meaning
2.3-O Bigram-fuzzy scoring, filter tokens, history — no network
2.3-On Optional ollamaJson() for query expansion or suggestions

Consumers

Target How
Floke landing npm run bundle:flokeFloke/docs/assets/glyph-search-2.3.js
glyph-sO (Obsidian) npm run bundle:obsidianvendor/*.cjs
glyph-miO (Obsidian) same bundle (Ollama helper)

API (ES modules)

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 });

Build

npm run bundle:floke
npm run bundle:obsidian

Optional: Ollama

ollama pull llama3.2
ollama serve   # http://127.0.0.1:11434
import { ollamaJson } from './lib/ollama.js';
const out = await ollamaJson({
  prompt: 'Reply JSON: {"q":"keywords"} for search: cultiva changelog',
}, { model: 'llama3.2' });

Related repos


Floke Studio · GPL-3.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors