Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Disables embeddings for all instances that are not dotcom#59493

Merged
chwarwick merged 10 commits into
mainfrom
cw/disable-enterprise-embeddings
Jan 23, 2024
Merged

Disables embeddings for all instances that are not dotcom#59493
chwarwick merged 10 commits into
mainfrom
cw/disable-enterprise-embeddings

Conversation

@chwarwick

@chwarwick chwarwick commented Jan 10, 2024

Copy link
Copy Markdown
Contributor

Overrides the embeddings config to default embeddings to disabled unless the site is running in dotcom mode. This is a first minimal step to removing embeddings, dotcom is still dependent on the embeddings config to supply PLG rate limits for local generated embeddings and the current extension versions still use remote embeddings from dotcom as an additional context source.

When embeddings are no longer need for dotcom the code related to embeddings can be removed.

closes https://github.com/sourcegraph/sourcegraph/issues/59308

Test plan

unit tests updated
manual test using sg start - extension didn't attempt to search embeddings because they are disabled.
manual test using sg start dotcom - extension saw embeddings enabled for repo and searched successfully

@cla-bot cla-bot Bot added the cla-signed label Jan 10, 2024
@chwarwick chwarwick force-pushed the cw/disable-enterprise-embeddings branch from 7da2a6c to 1c9164c Compare January 11, 2024 20:49
@chwarwick chwarwick force-pushed the cw/disable-enterprise-embeddings branch from 84845dd to deec761 Compare January 22, 2024 18:00
@chwarwick chwarwick force-pushed the cw/disable-enterprise-embeddings branch from 9675338 to 7d288d8 Compare January 23, 2024 16:51
@chwarwick chwarwick marked this pull request as ready for review January 23, 2024 18:47
@chwarwick chwarwick requested a review from a team January 23, 2024 18:47
@chwarwick chwarwick requested a review from eseliger January 23, 2024 19:37

@eseliger eseliger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! it's gonna be great as well to be able to remove embeddings rate limiting from cody gateway, plus the management features in licensing.

@chwarwick chwarwick merged commit fc54bf8 into main Jan 23, 2024
@chwarwick chwarwick deleted the cw/disable-enterprise-embeddings branch January 23, 2024 19:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disable embeddings for all instances except dotcom

2 participants