Home / Companies / SurrealDB / Blog / Post Details
Content Deep Dive

Hybrid search inside SurrealDB

Blog post from SurrealDB

Post Details
Company
Date Published
Author
Guest author
Word Count
2,369
Language
English
Hacker News Points
-
Summary

DeadReckoning, developed during the LangChain × SurrealDB London Hackathon, is a knowledge graph agent designed to enhance codebase navigation by enabling queries in plain English. It addresses the limitations of Retrieval-Augmented Generation (RAG) systems, which often return semantically similar but incorrect results, by employing a hybrid search strategy that combines vector and keyword searches using Reciprocal Rank Fusion (RRF). This approach is implemented within SurrealDB, allowing for efficient, database-native operations without the need for middleware or score normalization. The system further enriches search results by providing context through graph traversal, detailing the class, sibling functions, and call relationships, thereby transforming accurate answers into useful insights. DeadReckoning operates on small local models, making it suitable for environments with limited resources or stringent data privacy requirements, and highlights the importance of context engineering over model complexity.