falkordb

falkordb/falkordb

falkordb

可查询的属性图数据库是一种用于存储实体(节点)与关系(边)并支持属性关联的数据库系统,它采用稀疏矩阵邻接矩阵作为核心数据结构来表示节点间的连接关系,这种结构能高效处理大规模图数据中节点关系稀疏的特点,通过压缩存储非零元素节省空间,同时优化查询性能,使数据库可快速响应路径查找、关系分析等复杂图查询需求。

16 次收藏下载次数: 0状态:社区镜像维护者:falkordb仓库类型:镜像最近更新:7 小时前
让 AI 帮你使用轩辕镜像?

如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。

只需在 AI 对话中先发送下面这段话即可:

请先阅读并遵守:https://xuanyuan.cloud/agents.md

未读文档前不要生成 pull 命令或排错方案。

查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

下载命令
点击查看

Security:

  • React2Shell (CVE-2025-55182) is fixed starting from version v4.14.9.



FalkorDB

Our objective is to create an outstanding Knowledge Graph specifically for Large Language Models (LLM) that boasts exceptionally low latency, ensuring swift delivery of information through our Graph Database, known as KG-RAG.

FalkorDB is the first queryable https://github.com/opencypher/openCypher/blob/master/docs/property-graph-model.adoc database to use sparse matrices to represent the adjacency matrix in graphs and linear algebra to query the graph.

Primary features:

  • Adopting the https://github.com/opencypher/openCypher/blob/master/docs/property-graph-model.adoc
    • Nodes (vertices) and Relationships (edges) that may have attributes
    • Nodes can have multiple labels
    • Relationships have a relationship type
  • Graphs represented as sparse adjacency matrices
  • OpenCypher with proprietary extensions as a query language
    • Queries are translated into linear algebra expressions

To see FalkorDB in action, visit https://github.com/FalkorDB/FalkorDB/tree/master/demo.

Quickstart

  1. Trying FalkorDB
  2. Build
  3. Start
  4. Use from any client
  5. Documentation

Give it a try

To quickly try out FalkorDB, launch an instance using docker:

docker run -p 6379:6379 -p 3000:3000 -it --rm falkordb/falkordb:edge

Once loaded you can interact with FalkorDB using redis-cli.

Here we'll quickly create a small graph representing a subset of motorcycle riders and teams taking part in the MotoGP league, once created we'll start querying our data.

With redis-cli

sh
$ redis-cli
127.0.0.1:6379> GRAPH.QUERY MotoGP "CREATE (:Rider {name:'Valentino Rossi'})-[:rides]->(:Team {name:'Yamaha'}), (:Rider {name:'Dani Pedrosa'})-[:rides]->(:Team {name:'Honda'}), (:Rider {name:'Andrea Dovizioso'})-[:rides]->(:Team {name:'Ducati'})"
1) 1) Labels added: 2
   2) Nodes created: 6
   3) Properties set: 6
   4) Relationships created: 3
   5) "Query internal execution time: 0.399000 milliseconds"

Now that our MotoGP graph is created, we can start asking questions, for example: Who's riding for team Yamaha?

sh
127.0.0.1:6379> GRAPH.QUERY MotoGP "MATCH (r:Rider)-[:rides]->(t:Team) WHERE t.name = 'Yamaha' RETURN r.name, t.name"
1) 1) "r.name"
   2) "t.name"
2) 1) 1) "Valentino Rossi"
      2) "Yamaha"
3) 1) "Query internal execution time: 0.625399 milliseconds"

How many riders represent team Ducati?

sh
127.0.0.1:6379> GRAPH.QUERY MotoGP "MATCH (r:Rider)-[:rides]->(t:Team {name:'Ducati'}) RETURN count(r)"
1) 1) "count(r)"
2) 1) 1) (integer) 1
3) 1) "Query internal execution time: 0.624435 milliseconds"

Using FalkorDB

You can call FalkorDB's commands from any Redis client.

With redis-cli

sh
$ redis-cli
127.0.0.1:6379> GRAPH.QUERY social "CREATE (:person {name: 'roi', age: 33, gender: 'male', status: 'married'})"

With any other client

You can interact with FalkorDB using your client's ability to send raw Redis commands.

Depending on your client of choice, the exact method for doing that may vary.

Python example

This code snippet shows how to use FalkorDB with raw Redis commands from Python via https://github.com/andymccurdy/redis-py:

Python
import redis

r = redis.StrictRedis()
reply = r.execute_command('GRAPH.QUERY', 'social', "CREATE (:person {name:'roi', age:33, gender:'male', status:'married'})")

License

Licensed under your choice of the Server Side Public License v1 (SSPLv1). See https://github.com/FalkorDB/FalkorDB/blob/master/LICENSE.txt.

更多相关 Docker 镜像与资源

以下是 falkordb/falkordb 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:

  • library/neo4j Docker 镜像说明(Neo4j 图数据库,适合复杂关系数据存储和查询)
  • bitnami/neo4j Docker 镜像说明(Neo4j 图数据库,Bitnami 企业级配置,适合图数据分析和关系网络)
  • datacatering/neo4j Docker 镜像说明(Neo4j 图数据库(datacatering),适合知识图谱与关系分析)
  • openeuler/neo4j Docker 镜像说明(Neo4j 容器镜像,适合 openeuler 维护的 Neo4j 工作负载部署)
  • arm64v8/neo4j Docker 镜像说明(Neo4j 容器镜像,适合 arm64v8 维护的 Neo4j 工作负载部署)

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 falkordb 镜像标签

docker pull docker.xuanyuan.run/falkordb/falkordb:<标签>

DockerHub 原生拉取命令

docker pull falkordb/falkordb:<标签>

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持99.95% SLA 保障付费会员免广告