sourcegraph / cody

Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.
https://cody.dev
Apache License 2.0
2.29k stars 219 forks source link

Holistic Embedding update function #3028

Open arafatkatze opened 5 months ago

arafatkatze commented 5 months ago

A recurring issue faced by many users involves the inability to re-index embeddings within Cody. This issue aims to clarify the complexities surrounding this issue and provide a temporary workaround.

Challenge in Re-Indexing Embeddings:

Currently, there are three primary methods used:

  1. SYMf

  2. Blazingly Fast Graph (BFG)

  3. Remote Embeddings: might be removed potentially

Each of these methods contributes to the complexity of updating embeddings, leading to the current limitation where embeddings remain as they were at the initiation of Cody in the repo. Ideally it would be great to create like a single button that runs update index on all of the different indexing sources to bring them in sync with the current codebase.

Temporary Workaround:

To mitigate this issue temporarily, users can employ the following workaround:

Open multiple files or folders in your UI. This approach allows users to circumvent the limitation of non-updatable embeddings to some extent. Note: This is a temporary solution, and we are actively working on a more robust fix.

blarvin commented 4 months ago

Cool! Thanks for the amazing work!

github-actions[bot] commented 2 days ago

This issue is marked as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed automatically in 5 days.