Skip to content

Commit

Permalink
Check for shared vector database location in cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
rhennigan committed Dec 17, 2024
1 parent 53b74ef commit 9a13296
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Chatbook/PromptGenerators/VectorDatabases.wl
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ $vectorDBDownloadURLs = AssociationMap[
(*Paths*)
$pacletVectorDBDirectory := FileNameJoin @ { $thisPaclet[ "Location" ], "Assets/VectorDatabases" };
$localVectorDBDirectory := ChatbookFilesDirectory[ "VectorDatabases" ];
$cloudVectorDBDirectory := PacletObject[ "Wolfram/NotebookAssistantCloudResources" ][ "AssetLocation", "VectorDatabases" ];

(* ::**************************************************************************************************************:: *)
(* ::Subsection::Closed:: *)
Expand Down Expand Up @@ -105,6 +106,7 @@ getVectorDBDirectory[ ] := Enclose[
$vectorDBDirectory = SelectFirst[
{
$pacletVectorDBDirectory,
If[ $CloudEvaluation, $cloudVectorDBDirectory, Nothing ],
$localVectorDBDirectory
},
vectorDBDirectoryQ,
Expand Down

0 comments on commit 9a13296

Please sign in to comment.