-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added pinecone option to vector stores * Pinecone UI elements * Addd 0.16.5 templates
- Loading branch information
1 parent
a27a50d
commit 5916439
Showing
5 changed files
with
202 additions
and
12 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,153 @@ | ||
local base = import "base/base.jsonnet"; | ||
local images = import "values/images.jsonnet"; | ||
local url = import "values/url.jsonnet"; | ||
local cassandra_hosts = "cassandra"; | ||
|
||
{ | ||
|
||
"pinecone-cloud":: "aws", | ||
"pinecone-region":: "us-east-1", | ||
|
||
"store-graph-embeddings" +: { | ||
|
||
create:: function(engine) | ||
|
||
local envSecrets = engine.envSecrets("pinecone-api-key") | ||
.with_env_var("PINECONE_API_KEY", "pinecone-api-key"); | ||
|
||
local container = | ||
engine.container("store-graph-embeddings") | ||
.with_image(images.trustgraph) | ||
.with_command([ | ||
"ge-write-pinecone", | ||
"-p", | ||
url.pulsar, | ||
]) | ||
.with_env_var_secrets(envSecrets) | ||
.with_limits("0.5", "128M") | ||
.with_reservations("0.1", "128M"); | ||
|
||
local containerSet = engine.containers( | ||
"store-graph-embeddings", [ container ] | ||
); | ||
|
||
local service = | ||
engine.internalService(containerSet) | ||
.with_port(8080, 8080, "metrics"); | ||
|
||
engine.resources([ | ||
envSecrets, | ||
containerSet, | ||
service, | ||
]) | ||
|
||
}, | ||
|
||
"query-graph-embeddings" +: { | ||
|
||
create:: function(engine) | ||
|
||
local envSecrets = engine.envSecrets("pinecone-api-key") | ||
.with_env_var("PINECONE_API_KEY", "pinecone-api-key"); | ||
|
||
local container = | ||
engine.container("query-graph-embeddings") | ||
.with_image(images.trustgraph) | ||
.with_command([ | ||
"ge-query-pinecone", | ||
"-p", | ||
url.pulsar, | ||
]) | ||
.with_env_var_secrets(envSecrets) | ||
.with_limits("0.5", "128M") | ||
.with_reservations("0.1", "128M"); | ||
|
||
local containerSet = engine.containers( | ||
"query-graph-embeddings", [ container ] | ||
); | ||
|
||
local service = | ||
engine.internalService(containerSet) | ||
.with_port(8080, 8080, "metrics"); | ||
|
||
engine.resources([ | ||
envSecrets, | ||
containerSet, | ||
service, | ||
]) | ||
|
||
}, | ||
|
||
"store-doc-embeddings" +: { | ||
|
||
create:: function(engine) | ||
|
||
local envSecrets = engine.envSecrets("pinecone-api-key") | ||
.with_env_var("PINECONE_API_KEY", "pinecone-api-key"); | ||
|
||
local container = | ||
engine.container("store-doc-embeddings") | ||
.with_image(images.trustgraph) | ||
.with_command([ | ||
"de-write-pinecone", | ||
"-p", | ||
url.pulsar, | ||
]) | ||
.with_env_var_secrets(envSecrets) | ||
.with_limits("0.5", "128M") | ||
.with_reservations("0.1", "128M"); | ||
|
||
local containerSet = engine.containers( | ||
"store-doc-embeddings", [ container ] | ||
); | ||
|
||
local service = | ||
engine.internalService(containerSet) | ||
.with_port(8080, 8080, "metrics"); | ||
|
||
engine.resources([ | ||
envSecrets, | ||
containerSet, | ||
service, | ||
]) | ||
|
||
}, | ||
|
||
"query-doc-embeddings" +: { | ||
|
||
create:: function(engine) | ||
|
||
local envSecrets = engine.envSecrets("pinecone-api-key") | ||
.with_env_var("PINECONE_API_KEY", "pinecone-api-key"); | ||
|
||
local container = | ||
engine.container("query-doc-embeddings") | ||
.with_image(images.trustgraph) | ||
.with_command([ | ||
"de-query-pinecone", | ||
"-p", | ||
url.pulsar, | ||
]) | ||
.with_env_var_secrets(envSecrets) | ||
.with_limits("0.5", "128M") | ||
.with_reservations("0.1", "128M"); | ||
|
||
local containerSet = engine.containers( | ||
"query-doc-embeddings", [ container ] | ||
); | ||
|
||
local service = | ||
engine.internalService(containerSet) | ||
.with_port(8080, 8080, "metrics"); | ||
|
||
engine.resources([ | ||
envSecrets, | ||
containerSet, | ||
service, | ||
]) | ||
|
||
|
||
} | ||
|
||
} | ||
|