| Crates.io | rig-surrealdb |
| lib.rs | rig-surrealdb |
| version | 0.1.17 |
| created_at | 2025-02-24 23:09:09.800143+00 |
| updated_at | 2025-09-15 22:01:17.102678+00 |
| description | SurrealDB vector store implementation for the rig framework |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1568266 |
| size | 147,588 |
This crate integrates SurrealDB into Rig, allowing you to easily use RAG with this database.
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:
docker run --rm --pull always -p 8000:8000 surrealdb/surrealdb:latest start --username root --password root starts up a SurrealDB instance at port 8000 with the username and password as "root".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