-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8c1b468
commit 848040c
Showing
21 changed files
with
664 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
local base = import "base/base.jsonnet"; | ||
local images = import "values/images.jsonnet"; | ||
local url = import "values/url.jsonnet"; | ||
local falkordb = import "stores/falkordb.jsonnet"; | ||
|
||
falkordb + { | ||
|
||
"falkordb-url":: "falkor://falkordb:6379", | ||
|
||
"store-triples" +: { | ||
|
||
create:: function(engine) | ||
|
||
local container = | ||
engine.container("store-triples") | ||
.with_image(images.trustgraph) | ||
.with_command([ | ||
"triples-write-falkordb", | ||
"-p", | ||
url.pulsar, | ||
"-g", | ||
$["falkordb-url"], | ||
]) | ||
.with_limits("0.5", "128M") | ||
.with_reservations("0.1", "128M"); | ||
|
||
local containerSet = engine.containers( | ||
"store-triples", [ container ] | ||
); | ||
|
||
local service = | ||
engine.internalService(containerSet) | ||
.with_port(8080, 8080, "metrics"); | ||
|
||
engine.resources([ | ||
containerSet, | ||
service, | ||
]) | ||
|
||
}, | ||
|
||
"query-triples" +: { | ||
|
||
create:: function(engine) | ||
|
||
local container = | ||
engine.container("query-triples") | ||
.with_image(images.trustgraph) | ||
.with_command([ | ||
"triples-query-falkordb", | ||
"-p", | ||
url.pulsar, | ||
"-g", | ||
$["falkordb-url"], | ||
]) | ||
.with_limits("0.5", "128M") | ||
.with_reservations("0.1", "128M"); | ||
|
||
local containerSet = engine.containers( | ||
"query-triples", [ container ] | ||
); | ||
|
||
local service = | ||
engine.internalService(containerSet) | ||
.with_port(8080, 8080, "metrics"); | ||
|
||
engine.resources([ | ||
containerSet, | ||
service, | ||
]) | ||
|
||
|
||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
pattern: { | ||
name: "triple-store-falkordb", | ||
icon: "🖇️🙋♀️", | ||
title: "Adds a FalkorDB store configured to act as a triple store.", | ||
description: "GraphRAG processing needs a triple store. This pattern adds a FalkorDB store, along with plumbing so that FalkorDB is integrated with GraphRag indexing and querying.", | ||
requires: ["pulsar", "trustgraph"], | ||
features: ["falkordb", "triple-store"], | ||
args: [], | ||
category: [ "knowledge-graph" ], | ||
}, | ||
module: "components/falkordb.jsonnet", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
local base = import "base/base.jsonnet"; | ||
local images = import "values/images.jsonnet"; | ||
|
||
{ | ||
|
||
"falkordb" +: { | ||
|
||
create:: function(engine) | ||
|
||
local vol = engine.volume("falkordb").with_size("20G"); | ||
|
||
local container = | ||
engine.container("falkordb") | ||
.with_image(images.falkordb) | ||
.with_limits("1.0", "768M") | ||
.with_reservations("0.5", "768M") | ||
.with_port(6379, 6379, "api") | ||
.with_port(3000, 3000, "ui") | ||
.with_volume_mount(vol, "/data"); | ||
|
||
local containerSet = engine.containers( | ||
"falkordb", [ container ] | ||
); | ||
|
||
local service = | ||
engine.service(containerSet) | ||
.with_port(6379, 6379, "api") | ||
.with_port(3000, 3000, "ui"); | ||
|
||
engine.resources([ | ||
vol, | ||
containerSet, | ||
service, | ||
]) | ||
|
||
}, | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from trustgraph.query.triples.falkordb import run | ||
|
||
run() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from trustgraph.storage.triples.falkordb import run | ||
|
||
run() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
trustgraph-flow/trustgraph/query/triples/falkordb/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
from . service import * | ||
|
7 changes: 7 additions & 0 deletions
7
trustgraph-flow/trustgraph/query/triples/falkordb/__main__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from . hf import run | ||
|
||
if __name__ == '__main__': | ||
run() | ||
|
Oops, something went wrong.