#surrealdb #rig #vector #store #framework

rig-surrealdb

SurrealDB vector store implementation for the rig framework

2 releases

new 0.1.1 Mar 3, 2025
0.1.0 Feb 24, 2025

#11 in #rig

Download history 111/week @ 2025-02-22 148/week @ 2025-03-01

259 downloads per month

MIT license

36KB
176 lines

Rig SurrealDB integration

This crate integrates SurrealDB into Rig, allowing you to easily use RAG with this database.

Installation

To install this crate, run the following command in a Rust project directory which will add rig-surrealdb as a dependency (requires rig-core added for intended usage):

cargo add rig-surrealdb

There's a few different ways you can run SurrealDB:

How to run the example

To run the example, add your OpenAI API key as an environment variable:

export OPENAI_API_KEY=my_key

Finally, use the following command below to run the example:

cargo run --example vector_search_surreal --features rig-core/derive

Dependencies

~86MB
~1.5M SLoC