Skip to content

Core LLM Wiki

Long-term memory for your AI agents. Facts, tasks, and a knowledge graph, all stored in SQLite and running wherever your app runs.

Bring your own inference

You give it one generateText function. It builds the prompts, parses the JSON, and writes to the database. It works with OpenAI, Gemini, Claude, or a local model.

Just SQLite

Facts, vectors, and graph edges all live in tables in your database, with a llm_wiki_ prefix by default. You don’t run a vector database or Neo4j.

Offline first

Keyword search runs in-process. Semantic search turns on when you provide embed(), and falls back to keyword search when the network is down.

GraphRAG built in

Optional ontologies make the model emit typed edges. traverseGraph() then walks them with a single recursive SQL query.

Terminal window
npx expo install expo-sqlite expo-crypto
npm install @equationalapplications/expo-llm-wiki

The SQLite adapter, secure ID generation, and React hooks are already wired up. Expo quickstart →

await wiki.write('user-123', { event_type: 'observation', summary: 'Loves hiking on weekends.' });
const memory = await wiki.read('user-123', 'what should we do on Saturday?');
const context = formatContext(memory); // → paste into your system prompt