HelixDB 是一个功能强大的开源图形矢量数据库,用 Rust 构建,用于 RAG 和 AI 的智能数据存储。
|
1 month ago | |
---|---|---|
.github | 1 month ago | |
docs | 1 month ago | |
helix-cli | 1 month ago | |
helix-container | 1 month ago | |
helix-db | 1 month ago | |
helix-macros | 1 month ago | |
hql-tests | 1 month ago | |
.dockerignore | 1 month ago | |
.gitignore | 1 month ago | |
CODE_OF_CONDUCT.md | 1 month ago | |
CONTRIBUTORS.md | 1 month ago | |
Cargo.lock | 1 month ago | |
Cargo.toml | 1 month ago | |
Dockerfile | 1 month ago | |
LICENSE | 1 month ago | |
README.md | 1 month ago | |
clippy_check.sh | 1 month ago |
HelixDB is a high-performance graph-vector database designed with a focus on developer experience and performance. Built in Rust and powered by LMDB as its storage engine, it combines the reliability of a proven storage layer with modern features tailored for AI and vector-based applications.
We are currently using LMDB via Heed3, a rust wrapper built by the amazing team over at Meilisearch.
The Helix CLI tool can be used to check, compile and deploy Helix locally.
Install CLI
curl -sSL "https://install.helix-db.com" | bash
Install Helix
helix install
Setup
helix init --path <path-to-project>
Write queries
Open your newly created .hx
files and start writing your schema and queries.
Head over to our docs for more information about writing queries
QUERY addUser(name: String, age: I64) =>
user <- AddN<User({name: name, age: age})
RETURN user
QUERY getUser(user_name: String) =>
user <- N<User::WHERE(_::{name}::EQ(user_name))
RETURN user
Check your queries compile before building them into API endpoints (optional)
# in ./<path-to-project>
helix check
Deploy your queries
# in ./<path-to-project>
helix deploy
Start calling them using our TypeScript SDK or Python SDK. For example:
import HelixDB from "helix-ts";
// Create a new HelixDB client
// The default port is 6969
const client = new HelixDB();
// Query the database
await client.query("addUser", {
name: "John",
age: 20
});
// Get the created user
const user = await client.query("getUser", {
user_name: "John"
});
console.log(user);
Other commands:
helix instances
to see all your local instances.helix stop <instance-id>
to stop your local instance with specified id.helix stop --all
to stop all your local instances.Our current focus areas include:
Long term projects:
HelixDB is licensed under the The AGPL (Affero General Public License).
HelixDB is available as a managed service for selected users, if you're interested in using Helix's managed service or want enterprise support, contact us for more information and deployment options.