Dallin Romney
a88915ec71
merge main
2024-12-10 13:28:41 -08:00
Nate
9658449c03
remove EmbeddingsProvider
2024-12-08 12:30:35 -08:00
Test
b5cab4609b
chore: apply eslint to vscode and core
2024-11-11 07:38:52 -08:00
Nate
96f07dadc2
fix db.search not a function
2024-08-31 22:02:44 -07:00
Test
2bd6b40ead
temporary fix for unknown lancedb edge case
2024-08-27 20:49:57 -07:00
Nate Sesti
a841e55b44
remove unnecessary telemetry
2024-08-19 13:10:45 -07:00
Patrick Erichsen
ccd6894ab3
Merge branch 'dev' into pe/codebase-index-update-testing
2024-08-15 17:43:25 -07:00
Nate Sesti
0b6522f134
fix lancedb indexing bug
2024-08-15 17:39:22 -07:00
Patrick Erichsen
b67fbe1749
update tests
2024-08-15 17:08:54 -07:00
Patrick Erichsen
657ad97def
merge dev
2024-08-15 13:48:52 -07:00
Patrick Erichsen
8cdb68c6d6
update tests
2024-08-15 13:38:15 -07:00
Nate Sesti
37269db91c
add computed rows to lancedb
2024-08-14 16:47:33 -07:00
Patrick Erichsen
93b0b04baa
merge dev
2024-08-12 14:40:07 -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
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
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
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
Rob Leidle
88c72c3426
Change the LanceDBIndex to compute its new cache rows in parallel and then do a bulk insert ( #1944 )
...
This greatly improves the performance of indexing. Combined with the
change for bulk inserts in ChunkCodebaseIndexer, indexing is over twice
as fast. However, it can be much faster if the other indexers are
converted to use bulk insert as well.
In addition, this indexer is not using the computed chunks in the chunk
table. It would be faster to reference the already computed chunks,
however, for the purposes of this PR we are not changing that behavior.
Co-authored-by: Rob Leidle <rleidle@tesla.com>
2024-08-06 16:14:17 -07:00
Priyash
e93ce84cd5
feat: enable WAL (Write-Ahead Logging) for improved performance and stability ( #1885 )
...
Enable Write-Ahead Logging (WAL) mode for the SQLite database. This change is intended to enhance both the performance and stability of database operations, particularly when handling concurrent transactions and large volumes of data.
2024-08-05 16:38:23 -07:00
Patrick Erichsen
d7dbdfff48
feat: configure docs through config.json ( #1864 )
...
* feat: configure docs through config.json
* use correct baseUrl column
* add/remove docs through config.json
* add favicon
* add advanced section in form
* update package authors
* index all using sqlite
* use pre indexed doc
* refresh submenu on save
* setup tests
* stash apply
* update tests
* create singleton
* remove unused code
* fix migration err
* remove unused code
* bugfix: isPreindexedDoc
2024-08-01 16:56:27 -07:00
Patrick Erichsen
3e0fae35a7
feat: include recently + open files in codebase search ( #1833 )
...
* feat: include recently + open files in codebase search
* cleanup
* Update BaseRetrievalPipeline.ts
* add params object to chunkDocument
* Update package-lock.json
2024-07-26 12:40:52 -05:00
Lukas Kreussel
521669074e
Configurable maxChunkSize for embedding providers ( #1746 )
...
* Add `maxChunkSize` to `EmbeddingsProvider`
* Add `maxChunkSize` to schema
2024-07-16 09:05:19 -07:00
Nate Sesti
0d0f685e32
quick fixes
2024-07-15 23:05:48 -07:00
Patrick Erichsen
92b5c4ccf6
fix: cmd+shft+l closes sidebar if focused ( #1638 )
...
* docs: add docs and schema for "OS" provider (#1536 )
* ignore .env
* ✨ use and cache imports for autocomplete (#1456 )
* ✨ use and cache imports for autocomplete
* fix tsc
* add voyage rerank-1
* import Handlebars
* feat: open pane on install (#1564 )
* feat: open pane on activation
* comment out testing code
* chore: add telemetry for pageviews (#1576 )
* feat: update onboarding w/ embeddings model (#1570 )
* chore(gui): remove unused pages
* feat: add embeddings step
* feat: update styles
* feat: copy button updates
* fix: correct pull command for embed model
* fix: remove commented code
* fix: remove commented code
* feat: simplify copy btn props
* chore: rename onboarding selection event
* feat: add provider config
* fix: undo msg name
* remove dead code
* fix: invalid mode check
* fix: remove testing logic
* fix: fullscreen gui retains context when hidden, fixed fullscreen focusing (#1582 )
* small UI tweaks
* media query
* feat: add best experience onboarding
* small fixes
* feat: add free trial card to onboarding (#1600 )
* feat: add free trial card to onboarding
* add import
* chore: add telemetry for full screen toggle (#1618 )
* rerank-lite-1
* remove doccs
* basic tests for VS Code extension
* improved testing of VS Code extension
* manually implement stop tokens for hf inference api
* chore: onboarding metrics (#1626 )
* fix: pageview tracking
* feat: add onboarding telemetry
* create single `onboardingStatus` type
* improved var naming
* remove console logs
* fix windows performance issue
* rename vscodeExtension.ts
* migration of onboarding variables
* "stash" instead of "delete" in indexing progress
* fix preview.yaml
* also fix main.yaml
* Update troubleshooting.md (#1637 )
* feat: close panel if main input is focused
* add skip param
* Update TipTapEditor.tsx
* merge dev
* Update commands.ts
---------
Co-authored-by: Nate Sesti <sestinj@gmail.com>
Co-authored-by: Nate Sesti <33237525+sestinj@users.noreply.github.com>
Co-authored-by: Jonah Wagner <jonahwagner231@gmail.com>
2024-07-10 12:53:40 -05:00
Nate Sesti
e5393c76d0
add necessary filter to lance_db_cache
2024-07-05 23:18:11 -07:00
Nate Sesti
74020b1052
Tests for indexing + follow all .gitignore syntax ( #1661 )
...
* cleaner indexing progress updates messages
* chunking tests
* first round of testing for walkDir in .ts
* few more tests
* swap fs with ide
* clean up dead code
* replace traverseDirectory
* fix listFolders
* smoother indexing updates for chunking
* ide pathSetp
* absolute paths test
* fix path sep error with abs paths on windows
* clean up tests
2024-07-03 23:41:43 -07:00
Nate Sesti
2d892fab7d
Nate/indexing fixes ( #1642 )
...
* fix pausing of indexing
* don't send empty array to openai embeddings
* catch embeddings errors without stopping entire indexing process
2024-07-02 18:40:21 -07:00
Nate Sesti
f602d86b58
Dev ( #1629 )
...
* docs: add docs and schema for "OS" provider (#1536 )
* ignore .env
* ✨ use and cache imports for autocomplete (#1456 )
* ✨ use and cache imports for autocomplete
* fix tsc
* add voyage rerank-1
* import Handlebars
* feat: open pane on install (#1564 )
* feat: open pane on activation
* comment out testing code
* chore: add telemetry for pageviews (#1576 )
* feat: update onboarding w/ embeddings model (#1570 )
* chore(gui): remove unused pages
* feat: add embeddings step
* feat: update styles
* feat: copy button updates
* fix: correct pull command for embed model
* fix: remove commented code
* fix: remove commented code
* feat: simplify copy btn props
* chore: rename onboarding selection event
* feat: add provider config
* fix: undo msg name
* remove dead code
* fix: invalid mode check
* fix: remove testing logic
* fix: fullscreen gui retains context when hidden, fixed fullscreen focusing (#1582 )
* small UI tweaks
* media query
* feat: add best experience onboarding
* small fixes
* feat: add free trial card to onboarding (#1600 )
* feat: add free trial card to onboarding
* add import
* chore: add telemetry for full screen toggle (#1618 )
* rerank-lite-1
* remove doccs
* basic tests for VS Code extension
* improved testing of VS Code extension
* manually implement stop tokens for hf inference api
* chore: onboarding metrics (#1626 )
* fix: pageview tracking
* feat: add onboarding telemetry
* create single `onboardingStatus` type
* improved var naming
* remove console logs
* fix windows performance issue
* rename vscodeExtension.ts
* migration of onboarding variables
* "stash" instead of "delete" in indexing progress
* fix preview.yaml
* also fix main.yaml
---------
Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
Co-authored-by: Jonah Wagner <jonahwagner231@gmail.com>
2024-07-01 21:40:59 -07:00
Nate Sesti
04c08c7159
dev ( #1542 )
...
* docs: add docs and schema for "OS" provider (#1536 )
* ignore .env
* fix(gui): ctx rendering w/ renderInlineAs: "" (#1541 )
* ✨ use and cache imports for autocomplete (#1456 )
* ✨ use and cache imports for autocomplete
* fix tsc
* fix codeqwen autocomplete leading space
* add voyage rerank-1
* feat: `--noEmit` for tsc checks in CI (#1559 )
* docs: update CustomContextProvider docs (#1557 )
* add stop tokens to qwen prompt
* update docs to reflect 3.5 sonnet being best
* docs: comment out unused providers (#1561 )
* import Handlebars
* feat: toast notification for config updates (#1560 )
* feat: toast notification for config updates
* feat: only trigger toast on config.json save
* displayRawMarkdown option
* feat: open pane on install (#1564 )
* feat: open pane on activation
* comment out testing code
* update to reflect 16 stop words limit for deepseek
* feat: only trigger config update toast in vscode (#1571 )
* docs(prompt-files): fix typos + clarify (#1575 )
* doc: prompt file typo + clarifications
* fix: add back correct docs
* chore: add telemetry for pageviews (#1576 )
* feat: update onboarding w/ embeddings model (#1570 )
* chore(gui): remove unused pages
* feat: add embeddings step
* feat: update styles
* feat: copy button updates
* fix: correct pull command for embed model
* fix: remove commented code
* fix: remove commented code
* feat: simplify copy btn props
* chore: rename onboarding selection event
* feat: add provider config
* fix: undo msg name
* remove dead code
* fix: invalid mode check
* fix: remove testing logic
* docs(telemetry): add pageviews to tracking list (#1581 )
* Add reranker configuration options to codebase embedding docs (#1584 )
- Introduce reranker concept
- List available reranker options
- Provide configuration instructions
- Update keywords to include "reranker"
* chore: update pr template with screenshots (#1590 )
* Refactor ConfirmationDialog to use SecondaryButton for cancel action (#1586 )
* Added instructions for running docs server locally (#1578 )
- Added NPM script method
- Added VS Code task method
- Update contributing guidelines
* Update branch policy (#1577 )
- Change PR target to `dev` branch
- Update `CONTRIBUTING.md` instructions
* Consolidate example configurations into the main configuration guide (#1579 )
- Moved examples to configuration.md
- Deleted the separate examples.md file
- Updated sidebar order and links
- Improved readability and structure in configuration.md
* fix: fullscreen gui retains context when hidden, fixed fullscreen focusing (#1582 )
* Update completionProvider.ts (warning tab-autocomplete models) (#1566 )
* feat: enhanced IndexingProgressBar with blinking dot feature
- Integrated BlinkingDot component
- Added STATUS_COLORS for various states
- Replaced CircleDiv with BlinkingDot in UI
- Updated status messages and layout
* small UI tweaks
* feat(gui): enhance ModelCard, ModelProviderTag, and Toggle components (#1595 )
- add styling and adjustments to ModelCard
- update ModelProviderTag font size
- remove box shadow from Toggle component
- tweak icon styles in ModelCard
- improve alignment and spacing
* media query
* feat: add best experience onboarding
* fix: file rename
* stop movement on button hover by keeping same border thickness
* fix mistake in setting cursor: pointer
* fix when free trial option is shown
* Support Node.js versions below 20 for streaming response handling (#1591 )
- Add fallback for Node < 20
- Implement toAsyncIterable for streaming
- Use TextDecoder for manual decoding
- Maintain existing streaming for Node 20+
* small fixes
* feat: add free trial card to onboarding (#1600 )
* feat: add free trial card to onboarding
* add import
* fix hasPassedFTL
* fix /edit cancellation from UI
* feat: add `applyCodeBlock` experimental prop (#1601 )
* feat: add new model styling improvements (#1609 )
* feat: add new model styling improvements
* better gap size
* feat: update bug_report.yml (#1610 )
* chore: update bug_report.yml
* typo fix
* feat: add labels to "Add docs" dialog (#1612 )
* feat: add labels to "Add docs" dialog
* remove autofocus
* don't double load config
* small fixes
* speed up directory traversal, and use correct native path module
* option not to show config update toast
* merge air-gapped and recommended setup pages
* chore: add telemetry for full screen toggle (#1618 )
* Fix headings in codebase-embeddings.md (#1617 )
* mention jetbrains
* docs: update changie (#1619 )
* feat: updated changie config
* hide toc and autogenerate
* Update changelog.mdx
* link to deeper explanation of embeddings models
* ensure target="_blank" for all links in sidebar
* fix gif links in intellij README.md
* don't require rust in dependency installation
* chore: fix padding on gh button (#1620 )
* chore: adjust button padding
* Update tasks.json
* escape colons in diff path
* smoother lancedb indexing reporting
* smooth progress updates for indexing
* fix tsc err
* rerank-lite-1
---------
Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
Co-authored-by: Priyash <38959321+priyashpatil@users.noreply.github.com>
Co-authored-by: Jonah Wagner <jonahwagner231@gmail.com>
Co-authored-by: YohannZe <99359799+YohannZe@users.noreply.github.com>
Co-authored-by: Dan Dascalescu <ddascalescu+github@gmail.com>
2024-06-28 16:21:36 -07:00
Nate Sesti
c94b104180
better refactoring and error handling for indexing
2024-06-23 15:43:03 -07:00
John Wang
791a75f7a3
Handle binary blobs ( #1493 )
2024-06-16 10:25:34 -07:00
Justin Milner
b70552a7db
Fix sidebar indexing status timing-related bugs ( #1368 )
...
* readd overwritten commit
* Remove duplicated code
* Fix status load in and failed state update
* Late sidebar open bugs fixed
* Change ideMessenger post parameters
* debug pause
* Don't use global, fix table creation bug
* Creating new branch for config-related issues here
* cleanup
2024-05-28 09:46:56 -07:00
Nate Sesti
53b61288ec
🎨 Refactor core ( #1281 )
...
* 🎨 refactor out react context
* 🎨 refactor local storage
* 🎨 refactor IdeMessenger
* 🔥 removing unused files
* 🚚 move scripts
* ✅ setup VSCode integration testing
* 🎨 fix test-related stuff
* 🚧 testing
* 🎨 tweak terminal cmd+L
* 🧑💻 install biome in core
* 🎨 run biome check on core
* 🎨 run biome check in vscode
* 🎨 run biome check in binary
* 🧑💻 global biome config
* 🎨 run biome check on core
* 🎨 run biome check in vscode
* 🎨 fix a few biome warnings
* 🚧 WIP on protocols
* 🚧 progress, organizing, about to remove webviewCore protocol
* 🚧 now running
* 🚧 move indexing code to core
* 🚧 WIP on JetBrains indexing implementation
* 🎨 finish listDir
* 🚧 gui fixes
* 🏷️ update IMessenger.on return type
* 🐛 fix jetbrains types + IDE detection
* 🧑💻 set up debugging for binary with TcpMessenger
* 👷 fix prepackage.js
* 🧑💻 turn off debug mode for intellij
* 🐛 merge fixes
* 🐛 fixes after refactor
* 🐛 merge fixes
* 💄 increase font size in JB
* 🔀 merge changes
* 🩹 small fixes
* 🐛 fix jetbrains build
* 🩹 more jetbrains fixes
* 🎨 jetbrains improvements
* 🐛 fix lancedb prob in jetbrains build
* 👷 update jetbrains build process
* ✨ intellij problems context provider
* 👷 add script utils file
* 💚 fix jetbrains build regression
* 🎨 dynamic import transformers.js
* 🩹 small jetbrains updates
* ✨ folder context provider in jetbrains
* 🎨 many more jetbrains improvements
* 🔀 merge fixes
* ⚡ ️ small improvements
* 🎨 tell users transformers.js not supported
* 🎨 trial updates
* 📝 update jetbrains readmej
* ⚡ ️ only use smaller context for local autocomplete models
* ⚡ ️ improve bracket filter
* ✨ global .continue/.prompts folder
* 💄 improved model setup process
* 🥅 display VSCode req errs
2024-05-24 19:38:13 -07:00
Nate Sesti
6f8528a534
don't overwrite all models in onboarding
2024-05-20 14:52:29 -07:00
Nate Sesti
a672f805de
🐛 continue server client fixes
2024-05-13 20:24:17 -07:00
Nate Sesti
ae05da6449
🎨 refactoring for continue-proxy LLM ( #1277 )
2024-05-13 20:11:34 -07:00
Nate Sesti
89a69576bc
🎨 eslint enforce import extensions
2024-05-12 15:18:23 -07:00
Nate Sesti
2ba12638e4
🎨 refactor indexing state into a single object
2024-05-10 13:48:32 -07:00
Nate Sesti
2aaeefd018
🥅 improved error handling for codebase indexing
2024-04-29 11:55:06 -07:00
Nate Sesti
a6b46b98cb
🐛 correctly adhere to LanceDB table name spec
2024-04-26 10:03:12 -07:00
Nate Sesti
e893049fcc
✨ customizable rerankers ( #1088 )
...
* ✨ customizable rerankers
* 💄 fix early truncation button
* ⚡ ️ improvements to full text search + reranking
* ⚡ ️ only use starcoder2 stop words for starcoder2
* ⚡ ️ crawl code graph for call expressions
* 🚧 starcoder2-7b free trial
* 🚧 free trial client for embeddings and re-ranking
* 🚧 embeddings provider
* ✅ test for presence of files in CI
* 🐛 fixes to reranking
2024-04-09 22:59:42 -07:00
Nate Sesti
90e9933c97
🎨 add getRepoName to IDE, use for indexing
2024-03-27 20:32:52 -07:00
Nate Sesti
40364adfb5
🎨 indexing
2024-03-24 15:08:25 -07:00
Nate Sesti
e6ddab32a2
✨ shared indexing
2024-03-19 23:07:28 -07:00