From e56f2f4c26a09c8180176031895786c065e559d2 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Fri, 26 Apr 2024 17:50:46 +0300 Subject: Add llm-db-path for CD. genenetwork-development.scm ()[llm-db-path]: New field. (genenetwork3-cd-gexp): Configure LLM_DB_PATH in gn3.conf. Signed-off-by: Arun Isaac --- genenetwork-development.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/genenetwork-development.scm b/genenetwork-development.scm index 5b00cd2..528db38 100644 --- a/genenetwork-development.scm +++ b/genenetwork-development.scm @@ -140,7 +140,9 @@ be imported into G-expressions." (xapian-db-path genenetwork-xapian-db-path (default "/var/genenetwork/xapian")) (auth-db-path genenetwork-auth-db-path - (default "/export/data/genenetwork-sqlite/auth.db"))) + (default "/export/data/genenetwork-sqlite/auth.db")) + (llm-db-path genenetwork-llm-db-path + (default "/export/data/genenetwork-sqlite/llm.db"))) ;;; @@ -498,7 +500,7 @@ server described by CONFIG, a object." "Return a G-expression that runs the latest genenetwork3 development server described by CONFIG, a object." (match-record config - (gn3-repository gn3-port gn3-secrets sparql-endpoint data-directory xapian-db-path auth-db-path) + (gn3-repository gn3-port gn3-secrets sparql-endpoint data-directory xapian-db-path auth-db-path llm-db-path) (with-manifest (package->development-manifest genenetwork3) (with-packages (list git-minimal nss-certs) (with-imported-modules '((guix build utils)) @@ -525,7 +527,8 @@ server described by CONFIG, a object." "SPARQL_ENDPOINT=\"" sparql-endpoint "\"\n" "DATA_DIR=\"" data-directory "\"\n" "XAPIAN_DB_PATH=\"" xapian-db-path "\"\n" - "AUTH_DB=\"" auth-db-path "\"\n")) + "AUTH_DB=\"" auth-db-path "\"\n" + "LLM_DB_PATH=\"" llm-db-path "\"\n")) (setenv "HOME" "/tmp") (setenv "GN3_SECRETS" #$gn3-secrets) ;; Run genenetwork3. -- cgit v1.2.3