Skip to content

Commit aadf941

Browse files
authored
Merge pull request #1343 from WolframResearch/bugfix/468360
Bugfix: Fixed an internal error when doing a partial vector DB update
2 parents 7dce484 + b0ee9a8 commit aadf941

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Source/Chatbook/PromptGenerators/RelatedDocumentation.wl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Needs[ "Wolfram`Chatbook`Common`" ];
1212
(*Configuration*)
1313
$snippetType = "Text";
1414
$documentationSnippetVersion := $snippetVersion;
15-
$snippetFetchBatchSize = 25;
15+
$snippetFetchBatchSize = 15;
1616
$baseURL = "https://www.wolframcloud.com/obj/wolframai-content/DocumentationSnippets";
1717
$documentationSnippetBaseURL := URLBuild @ { $baseURL, $documentationSnippetVersion, $snippetType };
1818
$documentationMarkdownBaseURL := URLBuild @ { $baseURL, $documentationSnippetVersion, "Markdown" };

Source/Chatbook/PromptGenerators/VectorDatabases.wl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ downloadVectorDatabases[ dir0_, urls0_Association ] := Enclose[
576576
Quiet @ catchAlways @ tryUnpackingVectorDatabases @ dir;
577577

578578
(* Download any remaining vector databases: *)
579-
names = Select[ $vectorDBNames, ! DirectoryQ @ FileNameJoin @ { dir, # } & ];
579+
names = Select[ $vectorDBNames, ! vectorDBDirectoryQ0 @ FileNameJoin @ { dir, # } & ];
580580
urls = KeyTake[ urls0, names ];
581581

582582
lock = FileNameJoin @ { dir, "download.lock" };
@@ -1427,7 +1427,7 @@ toTinyVector // endDefinition;
14271427
(* ::Section::Closed:: *)
14281428
(*Package Footer*)
14291429
addToMXInitialization[
1430-
Null
1430+
$vectorDBDownloadSizes;
14311431
];
14321432

14331433
End[ ];

0 commit comments

Comments
 (0)