Skip to content

Commit

Permalink
2.18.8: fix: size of batch indexing & embedbase url
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Mar 18, 2023
1 parent 7bc258c commit 8b29e67
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "ava",
"name": "🧙 AVA",
"version": "2.18.7",
"version": "2.18.8",
"minAppVersion": "0.12.0",
"description": "AI assistant for Obsidian",
"author": "louis030195",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ava",
"version": "2.18.7",
"version": "2.18.8",
"description": "AI assistant for Obsidian",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/LegacySettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface AvaSettings {
embedbaseUrl: string;
}

export const defaultEmbedbaseUrl = 'https://embedbase-internal-c6txy76x2q-uc.a.run.app';
export const defaultEmbedbaseUrl = 'https://embedbase-ava-c6txy76x2q-uc.a.run.app';
export const DEFAULT_SETTINGS: AvaSettings = {
useLinks: false,
debug: false,
Expand Down
4 changes: 2 additions & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ export default class AvaPlugin extends Plugin {
);
const preparedFiles = prepareFilesToEmbed(files);
store.setState({ linksStatus: 'loading' });
// 2000 = approx 13s - tune it for optimal user feedback / indexing time
const batchSize = 2000;
// tune it for optimal user feedback / indexing time
const batchSize = 800;
// execute in parallel batches split of batchSize size
await Promise.all(
// split in batches of batchSize
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,6 @@
"2.18.4": "0.12.0",
"2.18.5": "0.12.0",
"2.18.6": "0.12.0",
"2.18.7": "0.12.0"
"2.18.7": "0.12.0",
"2.18.8": "0.12.0"
}

0 comments on commit 8b29e67

Please sign in to comment.