FalkorDB is a Rust‑implemented Redis module that provides a low‑latency Property Graph database optimized for Large Language Model workloads. It stores the graph’s adjacency matrix as a sparse matrix using GraphBLAS, which reduces memory footprint and enables query execution via linear algebra operations. The engine conforms to the Property Graph Model, supports OpenCypher with proprietary extensions, and exposes its functionality through standard Redis commands such as GRAPH.QUERY. A Python client example demonstrates creating a MotoGP graph, inserting rider‑team relationships, and executing pattern‑matching and aggregation queries that return specific results (e.g., “Valentino Rossi” for Yamaha riders and a count of one for Ducati). The project offers client libraries for Java, Python, Node.js, Rust, Go, C#, and other languages. Building the module requires GraphBLAS, LAGraph, and RediSearch as submodules; on macOS the build uses Homebrew‑provided clang with OpenMP, while Linux targets clang‑23 and the libomp‑23-dev package. Local compiles dynamically link the system OpenMP runtime, whereas the Docker image statically links libomp to avoid runtime dependencies. The repository includes a development container for quick setup, detailed manual build instructions, caching of compiled dependencies, and a test suite exercised via pytest and cargo test. FalkorDB is released under the Server Side Public License v1 (SSPLv1).
Read original
github-trending/rust