continue-custom/core
Rob Leidle fad684cb78
Change indexing to operate on batches as returned by getComputeDeleteAddRemove to fix problems (#1971)
The prior approach, of batching on lists of files as returned by
walkDir(...) broke the assumptions made by
getComputeDeleteAddRemove(...). Instead, call
getComputeDeleteAddRemove() and then batch on its results. This
approach uses a bit more memory but is roughly just as fast.

In addition, made markComplete(...)'s signature return Promise<void> as
it is an async function. Awaiting this async function has made
everything "slow" again because we do not do bulk inserts for
markComplete database rows. However, that can be fixed in a subsequent
commit.

Also disabled WAL mode for SQLite as we do not completely control the
program lifecycle so was noticing a lot of times where indexing resutls
were not checkpointed to disk.

Co-authored-by: Rob Leidle <rleidle@tesla.com>
2024-08-08 15:34:55 -07:00
..
.vscode 🚧 basic chat working with free trial 2023-12-07 00:06:19 -08:00
autocomplete match against lowercase model name when validating autocomplete model 2024-08-05 19:42:55 -04:00
commands fix: filepath replacements in prompt files (#1939) 2024-08-06 11:31:10 -07:00
config Merge branch 'preview' into dev 2024-08-07 10:37:45 -04:00
context Merge branch 'preview' into dev 2024-08-07 10:37:45 -04:00
continueServer Pre-release changes [skip ci] (#1931) 2024-08-05 15:39:31 -07:00
control-plane add sagemaker provider (#1917) 2024-08-07 07:05:37 -07:00
deploy publish stubs (#1472) 2024-06-12 22:30:27 -07:00
diff Preview (#1750) 2024-07-28 23:16:18 -07:00
indexing Change indexing to operate on batches as returned by getComputeDeleteAddRemove to fix problems (#1971) 2024-08-08 15:34:55 -07:00
llm Merge branch 'preview' into dev 2024-08-07 10:37:45 -04:00
promptFiles fix: filepath replacements in prompt files (#1939) 2024-08-06 11:31:10 -07:00
protocol Pre-release changes [skip ci] (#1931) 2024-08-05 15:39:31 -07:00
tag-qry 🚧 WIP on indexing for code context provider 2024-03-03 20:22:08 -05:00
test Enable async encoding for the GPTEncoder (#1946) 2024-08-06 16:18:49 -07:00
util Change indexing to operate on batches as returned by getComputeDeleteAddRemove to fix problems (#1971) 2024-08-08 15:34:55 -07:00
vendor ⏩ Preview to main (#1299) 2024-05-16 22:15:44 -07:00
.eslintrc.json Pre-release changes [skip ci] (#1931) 2024-08-05 15:39:31 -07:00
.gitignore Dev (#1679) 2024-07-05 23:47:22 -07:00
.npmignore 🔥 add tests to .npmignore 2024-03-19 12:54:17 -07:00
core.ts update intellij build for new workers 2024-08-08 10:46:42 -04:00
index.d.ts add sagemaker provider (#1917) 2024-08-07 07:05:37 -07:00
jest.config.js Pre-release changes [skip ci] (#1931) 2024-08-05 15:39:31 -07:00
jest.global-setup.ts Pre-release changes [skip ci] (#1931) 2024-08-05 15:39:31 -07:00
jest.setup-after-env.ts Pre-release changes [skip ci] (#1931) 2024-08-05 15:39:31 -07:00
package-lock.json update package-locks 2024-08-07 10:06:14 -04:00
package.json add sagemaker provider (#1917) 2024-08-07 07:05:37 -07:00
tsconfig.json Pre-release changes [skip ci] (#1931) 2024-08-05 15:39:31 -07:00
tsconfig.npm.json ⏩ Preview to main (#1299) 2024-05-16 22:15:44 -07:00