doc > cody: add sourcegraph.com install instructions

This commit is contained in:
Beyang Liu 2023-03-26 16:41:11 -07:00
parent d7d065aa67
commit 874d15a862

View File

@ -6,15 +6,31 @@
</p>
</aside>
Cody is an AI coding assistant that lives in your editor that can find, explain, and write code. Cody uses a combination of AI (specifically Large Language Models or LLMs), Sourcegraph search, and Sourcegraph code intelligence to provide answers that eliminate toil and keep human programmers in flow. You can think of Cody as your programmer buddy who has read through all the code on GitHub, all the questions on StackOverflow, and all your organization's private code, and is always there to answer questions you might have or suggest ways of doing something based on prior knowledge.
Cody is an AI coding assistant that lives in your editor that can find, explain, and write code. Cody uses a combination of Large Language Models (LLMs), Sourcegraph search, and Sourcegraph code intelligence to provide answers that eliminate toil and keep human programmers in flow. You can think of Cody as your programmer buddy who has read through all the code in open source, all the questions on StackOverflow, and all your organization's private code, and is always there to answer questions you might have or suggest ways of doing something based on prior knowledge.
Cody is in private alpha (tagged as an [experimental](../doc/admin/beta_and_experimental_features.md) feature) at this stage. Contact your techical advisor or [signup here](https://t.co/4TMTW1b3lR) to get access.
Cody is in private alpha (tagged as an [experimental](../doc/admin/beta_and_experimental_features.md) feature) at this stage. If you are an existing Sourcegraph customer, contact your techical advisor or [sign up here](https://t.co/4TMTW1b3lR) to get access. New users should install the extension and connect to sourcegraph.com.
So far, Cody is available only for VS Code.
Currently, Cody is available for VS Code. More editors are on the way—[join the Discord](https://discord.gg/8wJF5EdAyA) to inquire about your editor of choice.
## How to enable Cody
## Install Cody
There are two steps required to enable Cody: enabling Cody on your Sourcegraph instance, and configuring the VS Code extension.
Cody uses Sourcegraph to fetch relevant context to generate answers and code. These instructions walk through installing Cody and connecting it to sourcegraph.com. For private instances of Sourcegraph, see the section below about enabling Cody for Enterprise.
1. Sign into [sourcegraph.com](https://sourcegraph.com)
1. Join the [Cody Discord](https://discord.gg/8wJF5EdAyA) and request Cody be enabled for your username. At this time, we are approving all requests.
1. [Create a Sourcegraph access token](https://sourcegraph.com/user/settings/tokens)
1. Install [the Cody VS Code extension](https://marketplace.visualstudio.com/items?itemName=sourcegraph.cody-ai)
1. Set the Sourcegraph URL to be `"https://sourcegraph.com"`
1. Set the access token to be the token you just created
After installing, we recommend the following:
* Request embeddings for your repositories. Embeddings significantly improve the accuracy and quality of Cody's responses. To request embeddings, join the Cody Discord and ping a Sourcegraph team member.
* Spread the word online and send us your feedback in Discord. Cody is open source and we'd love to hear from you if you have bug reports or feature requests.
## Enable Cody for Enterprise
There are two steps required to enable Cody for Enterprise: enable your Sourcegraph instance and configure the VS Code extension.
### Step 1: Enable Cody on your Sourcegraph instance