diff --git a/docs/docs/autocomplete/how-to-customize.md b/docs/docs/autocomplete/how-to-customize.md index abf4c5b11..db77a43f0 100644 --- a/docs/docs/autocomplete/how-to-customize.md +++ b/docs/docs/autocomplete/how-to-customize.md @@ -5,20 +5,6 @@ keywords: [customize] sidebar_position: 5 --- -Continue offers a handful of parameters in [`config.json`](../json-reference.md) that can be tuned to find the perfect balance between suggestion quality and system performance for your specific needs and hardware capabilities: - -```json title="config.json" -{ - "tabAutocompleteOptions": { - "maxPromptTokens": 400, - "prefixPercentage": 0.5, - "multilineCompletions": "always" - } -} -``` - -- `maxPromptTokens`: Sets the maximum number of tokens for the prompt, balancing context and speed. -- `prefixPercentage`: Defines the proportion of the prompt dedicated to the code before the cursor. -- `multilineCompletions`: Controls whether suggestions can span multiple lines ("always", "never", or "auto"). +Continue offers a handful of settings to customize autocomplete behavior. For the most part, these options can be found in the [User Settings Page](../customize/settings.md). For a comprehensive guide on all configuration options and their impacts, see the [Autocomplete deep dive](../customize/deep-dives/autocomplete.mdx). diff --git a/docs/docs/customize/deep-dives/autocomplete.mdx b/docs/docs/customize/deep-dives/autocomplete.mdx index 6713e4653..c0ea86222 100644 --- a/docs/docs/customize/deep-dives/autocomplete.mdx +++ b/docs/docs/customize/deep-dives/autocomplete.mdx @@ -3,14 +3,17 @@ title: Autocomplete keywords: [autocomplete] --- -import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; +import Tabs from "@theme/Tabs"; ### Setting up with Codestral (recommended) If you want to have the best autocomplete experience, we recommend using Codestral, which is available through the [Mistral API](https://console.mistral.ai/). To do this, obtain an API key and add it to your config: - + + + [Mistral Codestral model block](https://hub.continue.dev/mistral/codestral) + ```yaml title="config.yaml" models: @@ -41,7 +44,7 @@ If you want to have the best autocomplete experience, we recommend using Codestr If you'd like to run your autocomplete model locally, we recommend using Ollama. To do this, first download the latest version of Ollama from [here](https://ollama.ai). Then, run the following command to download our recommended model: ```bash -ollama run qwen2.5-coder:1.5b-base +ollama run qwen2.5-coder:1.5b ``` Once it has been downloaded, you should begin to see completions in VS Code. @@ -50,13 +53,16 @@ Once it has been downloaded, you should begin to see completions in VS Code. All of the configuration options available for chat models are available to use for tab-autocomplete. For example, if you wanted to use a remote Ollama instance you would edit your `config.json` like this (note that it is not inside the models array): - + + + [Qwen 2.5 Coder 1.5B model block](https://hub.continue.dev/lmstudio/qwen2.5-coder-1.5b) + ```yaml title="config.yaml" models: - name: Tab Autocomplete Model provider: ollama - model: qwen2.5-coder:1.5b-base + model: qwen2.5-coder:1.5b apiBase: https:// roles: - autocomplete @@ -68,7 +74,7 @@ All of the configuration options available for chat models are available to use "tabAutocompleteModel": { "title": "Tab Autocomplete Model", "provider": "ollama", - "model": "qwen2.5-coder:1.5b-base", + "model": "qwen2.5-coder:1.5b", "apiBase": "https://" } } diff --git a/docs/docs/customize/model-roles/apply.mdx b/docs/docs/customize/model-roles/apply.mdx index 00a670db0..be1879b03 100644 --- a/docs/docs/customize/model-roles/apply.mdx +++ b/docs/docs/customize/model-roles/apply.mdx @@ -13,3 +13,5 @@ When editing code, Chat and Edit model output often doesn't clearly align with e Generally speaking, models proficient in editing can also be used for applying code. Explore apply models in [the hub](https://hub.continue.dev/explore/models?roles=apply). + +{/* HUB_TODO recommended apply models? */} diff --git a/docs/docs/customize/model-roles/autocomplete.md b/docs/docs/customize/model-roles/autocomplete.md index f6a29eefc..9641d5dcb 100644 --- a/docs/docs/customize/model-roles/autocomplete.md +++ b/docs/docs/customize/model-roles/autocomplete.md @@ -7,10 +7,8 @@ sidebar_position: 2 An "autocomplete model" is an LLM that is trained on a special format called fill-in-the-middle (FIM). This format is designed to be given the prefix and suffix of a code file and predict what goes between. This task is very specific, which on one hand means that the models can be smaller (even a 3B parameter model can perform well). On the other hand, this means that Chat models, though larger, will often perform poorly even with extensive prompting. -In Continue, autocomplete models are used to display inline [Autocomplete](../../autocomplete/how-to-use-it.md) suggestions as you type. Autocomplete models are designated using the `autocomplete` role. +In Continue, autocomplete models are used to display inline [Autocomplete](../../autocomplete/how-to-use-it.md) suggestions as you type. Autocomplete models are designated by adding the `autocomplete` to the model's `roles` in `config.yaml`. ## Recommended Autocomplete models -If you have the ability to use any model, we recommend `Codestral` with [Mistral](../model-providers/top-level/mistral.mdx#autocomplete-model) or [Vertex AI](../model-providers/top-level/vertexai.mdx#autocomplete-model). - -If you want to run a model locally, we recommend `Qwen2.5-Coder 1.5B` with [Ollama](../model-providers/top-level/ollama.mdx#autocomplete-model). +Visit the [Autocomplete Deep Dive](../deep-dives/autocomplete.mdx) for recommended models and more details. diff --git a/docs/docs/customize/model-roles/chat.md b/docs/docs/customize/model-roles/chat.md index 3f2719b31..c0401cd53 100644 --- a/docs/docs/customize/model-roles/chat.md +++ b/docs/docs/customize/model-roles/chat.md @@ -7,11 +7,11 @@ sidebar_position: 1 A "chat model" is an LLM that is trained to respond in a conversational format. Because they should be able to answer general questions and generate complex code, the best chat models are typically large, often 405B+ parameters. -In Continue, these models are used for [Chat](../../chat/how-to-use-it.md), [Edit](../../edit/how-to-use-it.md), and [Actions](../../actions/how-to-use-it.md). +In Continue, these models are used for [Chat](../../chat/how-to-use-it.md) and [Actions](../../actions/how-to-use-it.md). The selected chat model will also be used for [Edit](../../edit/how-to-use-it.md) and [Apply](./apply.mdx) if no `edit` or `apply` models are specified, respectively. ## Recommended Chat models -If you have the ability to use any model, we recommend [Claude 3.5 Sonnet](../model-providers/top-level/anthropic.mdx). +If you have the ability to use any model, we recommend [Claude 3.7 Sonnet](../model-providers/top-level/anthropic.mdx). Otherwise, some of the next best options are: diff --git a/docs/docs/customize/model-roles/edit.mdx b/docs/docs/customize/model-roles/edit.mdx index 368d4f5a1..aa86ff0d8 100644 --- a/docs/docs/customize/model-roles/edit.mdx +++ b/docs/docs/customize/model-roles/edit.mdx @@ -10,7 +10,7 @@ import Tabs from "@theme/Tabs"; It's often useful to select a different model to respond to Edit prompts than for chat prompts, as Edits are often more code-specific and may require less conversational readability. -Continue offers an `edit` model role to specify models to be used for `edit`. If no edit models are specified, the selected `chat` model is used. +In Continue, you can add `edit` to a model's roles to specify that it can be used for Edit requests. If no edit models are specified, the selected `chat` model is used. Explore edit models in [the hub](https://hub.continue.dev/explore/models?roles=edit). -{/* HUB_TODO */} +{/* HUB_TODO recommended edit models? */} diff --git a/docs/docs/customize/model-roles/embeddings.mdx b/docs/docs/customize/model-roles/embeddings.mdx index abe842348..af01afe4c 100644 --- a/docs/docs/customize/model-roles/embeddings.mdx +++ b/docs/docs/customize/model-roles/embeddings.mdx @@ -12,8 +12,10 @@ An "embeddings model" is trained to convert a piece of text into a vector, which In Continue, embeddings are generated during indexing and then used by [@Codebase](../deep-dives/codebase.mdx) to perform similarity search over your codebase. -:::info[Default model (VS Code only)] -`transformers.js` is used as a default embeddings model in VS Code. In JetBrains, there currently is no default. +You can add `embed` to a model's `roles` to specify that it can be used to embed. + +:::info[Built-in model (VS Code only)] +`transformers.js` is used as a built-in embeddings model in VS Code. In JetBrains, there currently is no built-in embedder. ::: ## Recommended embedding models @@ -87,8 +89,11 @@ See [here](../model-providers/top-level/ollama.mdx#embeddings-model) for instruc [Hugging Face Text Embeddings Inference](https://huggingface.co/docs/text-embeddings-inference/en/index) enables you to host your own embeddings endpoint. You can configure embeddings to use your endpoint as follows: - - + + + [HuggingFace Text Embedder Block](https://hub.continue.dev/) + {/* HUB_TODO block doesn't exist */} + ```yaml title="config.yaml" models: diff --git a/docs/docs/customize/model-roles/intro.mdx b/docs/docs/customize/model-roles/intro.mdx index e1162bf3f..e09f057ff 100644 --- a/docs/docs/customize/model-roles/intro.mdx +++ b/docs/docs/customize/model-roles/intro.mdx @@ -24,7 +24,7 @@ These roles can be specified for a `config.yaml` model block using `roles`. See You can control which of the models in your assistant for a given role will be currently used for that role. Visit the [Settings page](../settings.md) and go to the **Active Models** section. -![Settings Active Models Section](/img/hub/settings-model-roles.png) +![Settings Active Models Section](/img/settings-model-roles.png) :::info Note that `roles` do not exist within `config.json` - they are infered by the top level keys like `embeddingsProvider` diff --git a/docs/docs/customize/model-roles/reranking.mdx b/docs/docs/customize/model-roles/reranking.mdx index 745f1a9ea..a4b7b091e 100644 --- a/docs/docs/customize/model-roles/reranking.mdx +++ b/docs/docs/customize/model-roles/reranking.mdx @@ -57,7 +57,7 @@ See Cohere's documentation for rerankers [here](https://docs.cohere.com/docs/rer [Cohere Reranker English v3](https://hub.continue.dev/) - {/* HUB_TODO */} + {/* HUB_TODO block doesn't exist */} ```yaml title="config.yaml" @@ -92,7 +92,7 @@ If you only have access to a single LLM, then you can use it as a reranker. This [GPT-4o LLM Reranker Block](https://hub.continue.dev/) - {/* HUB_TODO */} + {/* HUB_TODO block doesn't exist */} ```yaml title="config.yaml" diff --git a/docs/docs/getting-started/install.md b/docs/docs/getting-started/install.md index f144a37a1..b62dbacd8 100644 --- a/docs/docs/getting-started/install.md +++ b/docs/docs/getting-started/install.md @@ -9,6 +9,7 @@ keywords: [install, installation, getting started, vs code, jetbrains] 1. Click `Install` on the [Continue extension page in the Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=Continue.continue) 2. This will open the Continue extension page in VS Code, where you will need to click `Install` again 3. The Continue logo will appear on the left sidebar. For a better experience, move Continue to the right sidebar +4. [Sign in to the hub](#signing-in) to get started with your first assistant. ![move-to-right-sidebar](/img/move-to-right-sidebar.gif) @@ -21,9 +22,16 @@ If you have any problems, see the [troubleshooting guide](../troubleshooting.mdx 1. Open your JetBrains IDE and open **Settings** using Ctrl + Alt + S 2. Select **Plugins** on the sidebar and search for "Continue" in the marketplace 3. Click `Install`, which will cause the Continue logo to show up on the right toolbar +4. [Sign in to the hub](#signing-in) to get started with your first assistant. ![jetbrains-getting-started.png](/img/jetbrains-getting-started.png) :::info[Troubleshooting] If you have any problems, see the [troubleshooting guide](../troubleshooting.mdx) or ask for help in [our Discord](https://discord.com/invite/EfJEfdFnDQ) ::: + +## Signing in + +Click "Get started" to sign in to the hub and start using assistants. + +![Hub Onboarding in the Extension](/img/hub/hub-onboarding-card.png) diff --git a/docs/docs/yaml-reference.md b/docs/docs/yaml-reference.md index 28b8be6e7..acc8c9542 100644 --- a/docs/docs/yaml-reference.md +++ b/docs/docs/yaml-reference.md @@ -133,7 +133,7 @@ The `models` section defines the language models used in your configuration. Mod - `name` (**required**): A unique name to identify the model within your configuration. - `provider` (**required**): The provider of the model (e.g., `openai`, `ollama`). - `model` (**required**): The specific model name (e.g., `gpt-4`, `starcoder`). -- `roles`: An array specifying the roles this model can fulfill, such as `chat`, `autocomplete`, `embed`, `rerank`, `edit`, `apply`, `summarize`. +- `roles`: An array specifying the roles this model can fulfill, such as `chat`, `autocomplete`, `embed`, `rerank`, `edit`, `apply`, `summarize`. The default value is `[chat, edit, apply, summarize]`. Note that the `summarize` role is not currently used. - `defaultCompletionOptions`: Default completion options for model settings. **Properties:** diff --git a/docs/static/img/hub/hub-onboarding-card.png b/docs/static/img/hub/hub-onboarding-card.png new file mode 100644 index 000000000..8fc2798f5 Binary files /dev/null and b/docs/static/img/hub/hub-onboarding-card.png differ diff --git a/docs/static/img/hub/settings-model-roles.png b/docs/static/img/settings-model-roles.png similarity index 100% rename from docs/static/img/hub/settings-model-roles.png rename to docs/static/img/settings-model-roles.png