Commit graph

1287 commits

Author SHA1 Message Date
Nate Sesti
37269db91c add computed rows to lancedb 2024-08-14 16:47:33 -07:00
Patrick Erichsen
50bca94eee
Update ignore.ts 2024-08-14 10:30:32 -07:00
Nate Sesti
fe586f8a7a crawling tests for common docs sites 2024-08-13 21:47:26 -07:00
Nate Sesti
1e5bddf808 log stack for core_messenger_error 2024-08-13 20:49:30 -07:00
Nate Sesti
3c4f4dea31 extract functions responsible for errors 2024-08-13 18:13:36 -07:00
Nate Sesti
296ee4f9c5 update docs for position of log files 2024-08-13 17:24:18 -07:00
Nate Sesti
ae3325d0de allow user overriden context length for ollama provider 2024-08-13 17:19:27 -07:00
Nate Sesti
4c873ec095 Merge branch 'main' into dev 2024-08-13 17:14:25 -07:00
Patrick Erichsen
b6fedb54b3 merge dev 2024-08-13 11:29:07 -07:00
Patrick Erichsen
2f1da9bb33
Merge pull request #1997 from continuedev/pe/rename-continue-command-prefixes
feat: improve chunking desc on large projects
2024-08-13 10:31:20 -07:00
Patrick Erichsen
333ba5d6da Update ChunkCodebaseIndex.ts 2024-08-13 10:30:54 -07:00
Patrick Erichsen
3844208a3b feat: improve chunking desc on large projects 2024-08-13 10:27:28 -07:00
Nate Sesti
c92335b3b2 mistral apiBase add "/" 2024-08-13 10:06:28 -07:00
Patrick Erichsen
c978d7c871 feat: create "rebuild index" dialog 2024-08-12 18:04:13 -07:00
Patrick Erichsen
994c9c4dcf remove extra arg 2024-08-12 15:47:17 -07:00
Patrick Erichsen
bdb967d7b3 fix: REPLACE INTO code_snippet table 2024-08-12 14:54:51 -07:00
Patrick Erichsen
93b0b04baa merge dev 2024-08-12 14:40:07 -07:00
Patrick Erichsen
e61c2e9e36
Merge pull request #1989 from teslamotors/user/rleidle/limit-concurrent-reads-planner
Limit the index planner to only 10 concurrent readFile(...) which prevents issues related to too many open files in large repositories
2024-08-12 11:53:44 -07:00
Patrick Erichsen
82dc972d48
Merge pull request #1984 from teslamotors/user/rleidle/fix-bulk-insert-commit-resolve
Move the bulk insert resolve into the COMMIT callback
2024-08-12 11:53:32 -07:00
Rob Leidle
f27a763e9a Limit the index planner to only 10 concurrent readFile(...) which prevents issues related to too many open files in large repositories
With this change I am able to run the planner on the linux kernel repository. Previously the planner would error out with exceptions related to "too many file handles" on linux or "file table overflow" on macos
2024-08-11 19:47:13 -07:00
Nate Sesti
10e860833a support for all context providers in defaultContext 2024-08-11 19:01:32 -07:00
Nate Sesti
6ed2bbdb83 temporarily skip locally passing tests 2024-08-11 18:26:39 -07:00
Nate Sesti
5b2a64f6a1 new tests for ConfigHandler 2024-08-11 00:21:08 -04:00
Nate Sesti
051b5a6795 remove hardcoding of MAX_CHUNK_SIZE 2024-08-10 23:32:21 -04:00
Nate Sesti
e090fb3b31 very, very basic context provider tests 2024-08-10 23:27:15 -04:00
Nate Sesti
f06dfae864 branch tests for planning layer 2024-08-10 22:40:50 -04:00
Nate Sesti
ca3ea257e6 update ci 2024-08-10 17:14:46 -04:00
Nate Sesti
3ba8ef7fcb fix chunk test for windows 2024-08-09 23:08:01 -04:00
Nate Sesti
69f13e65b8 skip test temporarily 2024-08-09 23:00:45 -04:00
Rob Leidle
2272aa121a Change the indexing batch size to a static value of 100
This appears to have a positive impact on indexing throughput on my M1 mac
2024-08-09 16:46:52 -07:00
Rob Leidle
4c4b211aae Move the bulk insert resolve into the COMMIT callback
db.db.serialize(...) guarantees that each statement runs in order. However, the function itself will terminate execution long before all the statements are executed. Therefore, we should only resolve the promise when the last COMMIT transaction has run. In the other cases, there will have been an error and we'll have call reject(err).

This also removed the need for the extra insert that was recently added so it was removed (in fact the extra insert was causing conflict errors).
2024-08-09 16:14:05 -07:00
Rob Leidle
d9efc11193 Turn of chunking for files with more than 1m characters and files lacking extensions
This should help with some of the unnecessary work being done in indexing
2024-08-09 13:41:15 -07:00
Patrick Erichsen
9f39e12d44 break down computeRows 2024-08-09 13:32:31 -07:00
Nate Sesti
7582aa8240
Indexing tests (#1979)
* fix missing insertion into lancedb index

* successfully running codebaseindex test

* await

* fix typo

* clean up indexing tests

* expectPlan
2024-08-09 12:54:53 -07:00
Patrick Erichsen
d2cfce9e64
update onboard (#1980) 2024-08-09 12:18:03 -07:00
Patrick Erichsen
a77f2499e4 handle undefined embeddings 2024-08-09 11:13:06 -07:00
Patrick Erichsen
137bc59a9e Update LanceDbIndex.ts 2024-08-09 10:06:48 -07:00
Patrick Erichsen
99d3add5f4 Update LanceDbIndex.ts 2024-08-09 10:03:45 -07:00
Patrick Erichsen
1755280a6d Update LanceDbIndex.ts 2024-08-09 10:03:32 -07:00
Patrick Erichsen
5819ffb439
feat: add "onboarding" slash command (#1961)
* feat: add "onboarding" slash command

* bump tsconfig versions

* improve prompt
2024-08-09 09:40:32 -07:00
Adam Shedivy
eabcdd16dd
Fix watsonx stop tokens (#1959)
* add stop token param for watsonx provider

* add stop token to config_schema

* add stop token param for watsonx provider

* add stop token to config_schema

* update model id for granite code, remove system message

* update code instruct model id in config schemas

* add stop token param for watsonx provider

* add stop token to config_schema

* update model id for granite code, remove system message

* update code instruct model id in config schemas

* use lowercase x

* remove rpg test file
2024-08-09 09:38:36 -07:00
yytdfc
042f308b44
fix a bug of undisired stream output (#1966) 2024-08-09 09:36:27 -07:00
Patrick Erichsen
1272f3402a
fix: ignore CSV files (#1972)
* fix: ignore CSV files

* Update CONTRIBUTING.md

* Update tsconfig.json
2024-08-09 09:35:41 -07:00
Rob Leidle
c51260c8c8
Remove the PRAGMA setting of journal_mode which attempted to revert to the default journal_mode (#1976)
The intention of the PRAGMA was to revert the databse back from WAL, however, this pragma is creating problems when multiple instances of continue are open

Co-authored-by: Rob Leidle <rleidle@tesla.com>
2024-08-09 09:26:28 -07:00
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
Nate Sesti
faef4a6ed1 use console.debug 2024-08-08 16:20:52 -04:00
Nate Sesti
85b3d211a6 update intellij build for new workers 2024-08-08 10:46:42 -04:00
Nate Sesti
e2a4a2cf09 Merge branch 'preview' into dev 2024-08-07 10:37:45 -04:00
Nate Sesti
8b401423bb release branch from preview ci 2024-08-07 10:28:38 -04:00
Nate Sesti
94a4200327 update package-locks 2024-08-07 10:06:14 -04:00