#framework #rig #openai #rig-surrealdb

rig-surrealdb

SurrealDB vector store implementation for the rig framework

5 releases

new 0.1.4 Apr 15, 2025
0.1.3 Mar 31, 2025
0.1.2 Mar 17, 2025
0.1.1 Mar 3, 2025
0.1.0 Feb 24, 2025

#773 in Machine learning

Download history 32/week @ 2025-02-18 162/week @ 2025-02-25 87/week @ 2025-03-04 84/week @ 2025-03-11 70/week @ 2025-03-18 72/week @ 2025-03-25 93/week @ 2025-04-01 69/week @ 2025-04-08

372 downloads per month
Used in 2 crates (via omama_manager)

MIT license

37KB
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

~87MB
~1.5M SLoC