filling in walkthroughs

This commit is contained in:
Ty Dunn 2023-06-04 10:35:45 +02:00
parent 4fe0f84790
commit 224b16bd04
13 changed files with 137 additions and 39 deletions

33
docs/docs/catalog.md Normal file
View file

@ -0,0 +1,33 @@
# Catalog
## Steps
**TODO: better explain each step and link to them**
#### EditCodeStep
Provide a prompt and a list of file ranges to be edited by a language model
### ManualEditStep
Tracks all user edits in the IDE so that they can be reversed along with other steps
### CreateTableStep
Create a table in TypeORM
### MigrationStep
Create and run an alembic migration
### WritePytestsRecipe
Write unit tests for this file
### AnswerQuestionChromaStep
Type `/ask` and ask any question about your whole codebase. The Chroma embeddings store will help find important snippets and answer your question
## Recipes
**TODO: add each recipe, explain them, and link to them**

View file

@ -1,3 +0,0 @@
# config.json
**TODO: Need to explain this**

View file

@ -0,0 +1,7 @@
# Credentials
**TODO: where to add / edit / remove API keys**
Recipes on per model basis (make sure you have added API key)
Models from OpenAI will require an API key

View file

@ -12,4 +12,4 @@ When enough steps are strung together they become a recipe. Can kick off with sl
- Although technically just a step itself, since they also subclass the Step class, recipes differentiate themselves from normal steps by ending their name with `Recipe` by
- Technically, everything is a step since everything subclasses the step class. Steps can be composed together. Once steps are composed into a workflow that developers use and share with others, that step is called a recipe and, by convention, it ends with Recipe to signal this
- Actually just a step that is composed of only other steps / recipes.
- Actually just a step that is composed of only other steps / recipes.

View file

@ -12,7 +12,7 @@ We don't want to waste your time with install and env setup before you try Conti
2. Select the `Create new codespace` button and wait 30-90 seconds while it launches and installs the Continue extension. Once complete, it should look like this:
**TODO: Adding image of Codespaces once its ready to be used**
**TODO: Add image of Codespaces after it starts up**
3. Read the `Getting Started` section of the `README.md` file that has been opened in your codespace, which you can also find [here](https://github.com/continuedev/continue-codespaces-demo/blob/main/README.md)

View file

@ -10,6 +10,6 @@ The `Continue` library consists of an [SDK](./concepts/sdk.md), a [GUI](./concep
2. The [GUI](./concepts/gui.md) lets you transparently review every automated step, providing the opportunity to undo and rerun any that ran incorrectly.
3. The [Server](./concepts/server.md) holds the main event loop, responsible for connecting the IDE, SDK, and GUI together as well as deciding which steps to take next.
3. The [Server](./concepts/server.md) is responsible for connecting the IDE, SDK, and GUI together as well as deciding which steps to take next.
Continue connects any IDE (Integrated Development Environment) (e.g. VS Code, GitHub Codespaces, PyCharm, Replit, etc.) to the Continue Server, which take actions in the code editor as instructed by recipes that are run by a user through the GUI.
The Continue Server take actions in the IDE code editor as directed by recipes, which are written using the Continue SDK and run by a user using the Continue GUI.

View file

@ -14,6 +14,16 @@ If you want to try Continue before installing locally, check out the [GitHub Cod
**TODO: Add link to screenshot of what it looks like after install has completed**
You can also open the Continue GUI with `cmd+shift+p` on Mac / `ctrl+shift+p` on Windows and then selecting `Continue: Open Debug Panel`
4. To test a few common recipes, open a blank python file and try the following:
- Ask it to "write me a calculator class in python"
- /comment to write comments for the class
- /pytest to write Pytest unit tests in a separate file
- Ask in natural language for a new method
**TODO: Can we have one getting started workflow across VS Code and GitHub Codespaces?**
:::note
If you would like to install Continue from source, please [follow the instructions](https://github.com/continuedev/continue/blob/main/README.md) in the repo README.
:::

View file

@ -7,14 +7,14 @@
1. Try out Continue in the [GitHub Codespaces Demo](./getting-started.md)
2. Install Continue packaged as a [VS Code extension](./install.md)
## What is `Continue`?
## What is Continue?
**Continue is the open-source library for accelerating software development with language models**
You define the scenarios where Large Language Models ([LLMs](./concepts/llm.md)) like GPT-4 and StarCoder should act as an autopilot, helping you complete software development tasks. You use [recipes](./concepts/recipe.md) created by others to automate more steps in your workflows. If a [recipe](./concepts/recipe.md) does not exist or work exactly like you want, you can use the [Continue SDK](./concepts/sdk.md) to create custom [steps](./concepts/step.md) and compose them into personalized [recipes](./concepts/recipe.md). Whether you are using a [recipe](./concepts/recipe.md) created by yourself or someone else, you can review, reverse, and rerun [steps](./concepts/step.md) with the [Continue GUI](./concepts/gui.md), which helps you guide the work done by LLMs and learn when to use and trust them.
You define the scenarios where Large Language Models ([LLMs](./concepts/llm.md)) like GPT-4 and StarCoder should act as an autopilot, helping you complete software development tasks. You use [recipes](./concepts/recipe.md) created by others to automate more steps in your workflows. If a recipe does not exist or work exactly like you want, you can use the [Continue SDK](./concepts/sdk.md) to create custom [steps](./concepts/step.md) and compose them into personalized recipes. Whether you are using a recipe created by yourself or someone else, you can review, reverse, and rerun steps with the [Continue GUI](./concepts/gui.md), which helps you guide the work done by LLMs and learn when to use and trust them.
## Why do developers use `Continue`?
## Why do developers use Continue?
Many developers have begun to use models like [GPT-4](https://openai.com/research/gpt-4) through [ChatGPT](https://openai.com/blog/chatgpt) while coding; however, the experience is painful because of how much manual copying, pasting, and editing is required to supply them with context and incorporate the generated solutions into your codebase. Continue eliminates this pain by deeply integrating LLMs into your IDE amd workflows.
Many developers have begun to use [GPT-3.5](https://platform.openai.com/docs/models/gpt-3-5) and [GPT-4](https://openai.com/research/gpt-4) through [ChatGPT](https://openai.com/blog/chatgpt) while coding; however, the experience is painful because of how much manual copying, pasting, and editing is required to provide the necessary context and incorporate the generated solutions into your codebase. Continue eliminates this pain by deeply integrating LLMs into your IDE amd workflows.
Continue accelerates how developers build, ship, and maintain software, while giving them the control to define when LLMs should take actions and the confidence to trust LLMs. In short, it enables developers to do what they have always done: work together to create better and better abstractions that make it easier and easier to automate the repetitive work that people want computers to do.

View file

@ -2,13 +2,13 @@
## Overview
`Continue` collects and reports **anonymous** usage information. This data is essential to understanding how we should improve the library. You can opt out of it at any time.
Continue collects and reports **anonymous** usage information. This data is essential to understanding how we should improve the library. You can opt out of it at any time.
We use [Posthog](https://posthog.com/), an open source platform for product analytics, to collect and store the data.
We use [Posthog](https://posthog.com/), an open source platform for product analytics, to collect and store the data. You can review the code [here](https://github.com/continuedev/continue/tree/main/continuedev/src/continuedev/libs/util/telemetry.py).
## What we track
We track the steps that are run and their parameters
We track the steps that are run and their parameters.
## How to opt out

View file

@ -2,8 +2,20 @@
**TODO: Describe step-by-step how to share a recipe**
Points to include
- Where to create recipes
- What you need to contribute them (README, style, etc)
- How to push them
- How to get them reviewed
## 1. Verify checklist
- [] Make sure you added them in right spot. All of the recipes are located in this part of the codebase here
- [] Make sure to add a README
- [] Make sure you have a main recipe file
## 2. Push to codebase (fork codebase first?)
## 3. Ask for review
Ask for review from @tydunn or @natesesti
## 4. Address review feedback
Push your changes
## 5. We approve

View file

@ -1,16 +1,38 @@
# Use a recipe
**TODO: Describe how to use a recipe**
## Select a recipe that you want to use
Points to include
- How to get recipes
- Slash commands
- READMEs with instructions for each recipe?
- Using GUI
- Reviewing
- Reversing
- Rerunning
- Follow the instructions
- Customizing recipe
- Recipes on per model basis (make sure you have added API key)
- Creating a recipe from scratch (link)
You can learn more about the recipes that exist and how they work in the [Catalog](../catalog.md)
All of the recipes are located in this part of the codebase here
## Open the file you want the LLM to edit
At the moment, we only support editing the file open and focused in the code editor, so you need to make sure that is
## Use its slash command to start the recipe
Every recipe can be triggered by the user using its slash command. For example, `/comment` will trigger
## Review the steps and take any required manual actions
Make sure that the recipe works as expected
follow any instructions
## Reverse if something goes wrong
Click this button
## Rerun
add feedback to modify how it runs
LLMs are non-determistic, so rerunning again might
## Customizing the recipe
If the recipe does not work exactly like you want, you can adjust it. Find the code for recipe here and then learn how to [create a recipe](./create-a-recipe.md) understand what you need to do to get it work like you want
## Creating your own recipe
Learn how to [create a recipe](./create-a-recipe.md)

View file

@ -2,11 +2,27 @@
**TODO: Describe how to use the `Continue GUI`**
Points to include
- Recipes
- Steps
- Single turn at the moment
## Open the file you want the LLM to edit
At the moment, we only support editing the file open and focused in the code editor, so you need to make sure that is
Note: single turn at the moment
- Opening the (set of) file(s) you want to edit
- Then giving natural language instructions
- Reversing
- Modifying with feedback
## Review actions taken
make sure it takes action you approve
## Reverse button
undo things done by steps
## Rerun
continue button (with optional modify)
## Recipes
Learn how to use recipes

View file

@ -33,7 +33,7 @@ const sidebars = {
label: "Concepts",
items: [
"concepts/autopilot",
"concepts/continue-json",
"concepts/credentials",
"concepts/gui",
"concepts/history",
"concepts/ide",
@ -45,6 +45,7 @@ const sidebars = {
"concepts/step",
],
},
"catalog",
"telemetry",
],
};