From 9a13296de766932edb8f71f4e3c2d5d26a1f511f Mon Sep 17 00:00:00 2001 From: Rick Hennigan Date: Tue, 17 Dec 2024 15:34:11 -0500 Subject: [PATCH] Check for shared vector database location in cloud --- Source/Chatbook/PromptGenerators/VectorDatabases.wl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Chatbook/PromptGenerators/VectorDatabases.wl b/Source/Chatbook/PromptGenerators/VectorDatabases.wl index 7c595157..c091721e 100644 --- a/Source/Chatbook/PromptGenerators/VectorDatabases.wl +++ b/Source/Chatbook/PromptGenerators/VectorDatabases.wl @@ -58,6 +58,7 @@ $vectorDBDownloadURLs = AssociationMap[ (*Paths*) $pacletVectorDBDirectory := FileNameJoin @ { $thisPaclet[ "Location" ], "Assets/VectorDatabases" }; $localVectorDBDirectory := ChatbookFilesDirectory[ "VectorDatabases" ]; +$cloudVectorDBDirectory := PacletObject[ "Wolfram/NotebookAssistantCloudResources" ][ "AssetLocation", "VectorDatabases" ]; (* ::**************************************************************************************************************:: *) (* ::Subsection::Closed:: *) @@ -105,6 +106,7 @@ getVectorDBDirectory[ ] := Enclose[ $vectorDBDirectory = SelectFirst[ { $pacletVectorDBDirectory, + If[ $CloudEvaluation, $cloudVectorDBDirectory, Nothing ], $localVectorDBDirectory }, vectorDBDirectoryQ,