surrealdb

Orchestrate semantic, graph, and timeline data retrieval with SurrealDB.

Updated Feb 1, 2026
One-click install
npx skills add https://github.com/mikkelkrogsholm/bookstrap --skill surrealdb-mikkelkrogsholm
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: surrealdb
Source: https://github.com/mikkelkrogsholm/bookstrap/tree/main/.claude/skills/surrealdb
Command: npx skills add https://github.com/mikkelkrogsholm/bookstrap --skill surrealdb-mikkelkrogsholm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unifies semantic search, graph relationships, and timeline reasoning into a single data layer, enabling end-to-end retrieval and reasoning for long-form writing projects.

Core Features & Use Cases

  • Hybrid RAG architecture combining semantic search, graph traversal, and timeline queries
  • Vector search with MTREE indexes and dimension-aware embedding handling
  • Graph traversal and relationship modeling with SurrealQL patterns
  • Timeline-based sequencing and event queries for chronological coherence
  • Ready-to-use query pattern files (semantic.surql, graph.surql, timeline.surql) to accelerate development

Quick Start

Load the SurrealDB patterns into your data layer and begin applying hybrid semantic-graph-timeline queries to your content.

Frequently Asked Questions about surrealdb

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is hybrid RAG with SurrealDB and how does it improve knowledge retrieval?▼

Hybrid RAG with SurrealDB unifies semantic search, graph traversal, and timeline queries into a single data layer. This multi-model approach retrieves contextual data across entity relationships and chronological events, improving reasoning for complex knowledge bases.

How do I combine vector search and graph traversal in SurrealQL?▼

You combine vector search and graph traversal in SurrealQL by applying MTREE vector indexes for semantic similarity and using native graph patterns for relationship modeling. Ready-to-use pattern files accelerate implementing this hybrid retrieval architecture.

Does SurrealDB support MTREE vector indexes for semantic similarity search?▼

Yes, SurrealDB supports MTREE vector indexes for semantic similarity search. It includes dimension-aware embedding handling to manage vector data efficiently alongside graph and timeline queries within a multi-model schema.

Can I use SurrealDB timeline queries to maintain chronological coherence in long-form writing?▼

Yes, you can use SurrealDB timeline queries to maintain chronological coherence. The system provides timeline-based sequencing and event queries to order narrative data, guiding the writing and editing process for long-form projects.

What is the best way to structure a database schema for semantic, graph, and timeline queries?▼

The best way to structure this schema is using a multi-model architecture in SurrealDB. It accommodates MTREE vector indexes, SurrealQL graph relationships, and event timelines concurrently, enabling end-to-end retrieval across all three dimensions.

Are there query pattern files available for building SurrealDB hybrid RAG architectures?▼

Yes, ready-to-use query pattern files are available, including semantic.surql, graph.surql, and timeline.surql. These files document the workflow and accelerate development of hybrid semantic-graph-timeline retrieval systems.