rig/rig-surrealdb
github-actions[bot] f4214540a5
chore: release (#375)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-15 10:23:05 -04:00
..
examples feat: surrealdb integration (#280) 2025-02-24 22:24:55 +00:00
src feat: surrealdb integration (#280) 2025-02-24 22:24:55 +00:00
CHANGELOG.md chore: release (#375) 2025-04-15 10:23:05 -04:00
Cargo.toml chore: release (#375) 2025-04-15 10:23:05 -04:00
README.md feat: surrealdb integration (#280) 2025-02-24 22:24:55 +00:00

README.md

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