From 154343c86c63ee06a8d7ec6a0d3dfeb384f8080c Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 28 Oct 2024 17:25:53 -0700 Subject: [PATCH] bugfix(jb): no embeddings w/ transformers.js --- .gitignore | 2 + .vscode/settings.json | 3 +- .../pipelines/BaseRetrievalPipeline.ts | 3 +- .../pipelines/NoRerankerRetrievalPipeline.ts | 9 ++- .../pipelines/RerankerRetrievalPipeline.ts | 7 ++- core/context/retrieval/retrieval.ts | 15 +++-- docs/docs/customize/deep-dives/codebase.md | 6 +- docs/docs/customize/model-types/embeddings.md | 8 ++- .../src/main/resources/config_schema.json | 4 +- extensions/vscode/config_schema.json | 4 +- extensions/vscode/continue_rc_schema.json | 61 +++++++++++++------ 11 files changed, 81 insertions(+), 41 deletions(-) diff --git a/.gitignore b/.gitignore index bc9856690..2e8665fe9 100644 --- a/.gitignore +++ b/.gitignore @@ -166,3 +166,5 @@ extensions/intellij/.idea/** **/.idea/workspace.xml **/.idea/usage.statistics.xml **/.idea/shelf/ + +extensions/intellij/bin diff --git a/.vscode/settings.json b/.vscode/settings.json index eaf1da238..b302a1157 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -17,7 +17,8 @@ "**/core/vendor/**": true, "**/gui/dist": true, "**/extensions/vscode/gui/**": true, - "**/extensions/vscode/out/**": true + "**/extensions/vscode/out/**": true, + "**/extensions/intellij/build/**": true }, "eslint.workingDirectories": ["./core"] } diff --git a/core/context/retrieval/pipelines/BaseRetrievalPipeline.ts b/core/context/retrieval/pipelines/BaseRetrievalPipeline.ts index 8be43ce0f..9495f1608 100644 --- a/core/context/retrieval/pipelines/BaseRetrievalPipeline.ts +++ b/core/context/retrieval/pipelines/BaseRetrievalPipeline.ts @@ -14,13 +14,13 @@ export interface RetrievalPipelineOptions { llm: ILLM; config: ContinueConfig; ide: IDE; - input: string; nRetrieve: number; nFinal: number; tags: BranchAndDir[]; pathSep: string; filterDirectory?: string; + includeEmbeddings?: boolean; // Used to handle JB w/o an embeddings model } export interface IRetrievalPipeline { @@ -29,6 +29,7 @@ export interface IRetrievalPipeline { export default class BaseRetrievalPipeline implements IRetrievalPipeline { private lanceDbIndex: LanceDbIndex; + constructor(protected readonly options: RetrievalPipelineOptions) { this.lanceDbIndex = new LanceDbIndex( options.config.embeddingsProvider, diff --git a/core/context/retrieval/pipelines/NoRerankerRetrievalPipeline.ts b/core/context/retrieval/pipelines/NoRerankerRetrievalPipeline.ts index f6f83a4f2..6caef72dd 100644 --- a/core/context/retrieval/pipelines/NoRerankerRetrievalPipeline.ts +++ b/core/context/retrieval/pipelines/NoRerankerRetrievalPipeline.ts @@ -5,7 +5,7 @@ import BaseRetrievalPipeline from "./BaseRetrievalPipeline.js"; export default class NoRerankerRetrievalPipeline extends BaseRetrievalPipeline { async run(): Promise { - const { input, nFinal, filterDirectory } = this.options; + const { input, nFinal, filterDirectory, includeEmbeddings } = this.options; // We give 1/4 weight to recently edited files, 1/4 to full text search, // and the remaining 1/2 to embeddings @@ -17,10 +17,9 @@ export default class NoRerankerRetrievalPipeline extends BaseRetrievalPipeline { const ftsChunks = await this.retrieveFts(input, ftsNFinal); - const embeddingsChunks = await this.retrieveEmbeddings( - input, - embeddingsNFinal, - ); + const embeddingsChunks = includeEmbeddings + ? await this.retrieveEmbeddings(input, embeddingsNFinal) + : []; const recentlyEditedFilesChunks = await this.retrieveAndChunkRecentlyEditedFiles(recentlyEditedNFinal); diff --git a/core/context/retrieval/pipelines/RerankerRetrievalPipeline.ts b/core/context/retrieval/pipelines/RerankerRetrievalPipeline.ts index faac97957..375f1b17b 100644 --- a/core/context/retrieval/pipelines/RerankerRetrievalPipeline.ts +++ b/core/context/retrieval/pipelines/RerankerRetrievalPipeline.ts @@ -6,12 +6,15 @@ import BaseRetrievalPipeline from "./BaseRetrievalPipeline.js"; export default class RerankerRetrievalPipeline extends BaseRetrievalPipeline { private async _retrieveInitial(): Promise { - const { input, nRetrieve, filterDirectory } = this.options; + const { input, nRetrieve, filterDirectory, includeEmbeddings } = + this.options; let retrievalResults: Chunk[] = []; const ftsChunks = await this.retrieveFts(input, nRetrieve); - const embeddingsChunks = await this.retrieveEmbeddings(input, nRetrieve); + const embeddingsChunks = includeEmbeddings + ? await this.retrieveEmbeddings(input, nRetrieve) + : []; const recentlyEditedFilesChunks = await this.retrieveAndChunkRecentlyEditedFiles(nRetrieve); diff --git a/core/context/retrieval/retrieval.ts b/core/context/retrieval/retrieval.ts index 2652bfa0f..2fb5723ae 100644 --- a/core/context/retrieval/retrieval.ts +++ b/core/context/retrieval/retrieval.ts @@ -1,8 +1,10 @@ import path from "path"; + import { BranchAndDir, ContextItem, ContextProviderExtras } from "../../"; import TransformersJsEmbeddingsProvider from "../../indexing/embeddings/TransformersJsEmbeddingsProvider"; import { resolveRelativePathInWorkspace } from "../../util/ideUtils"; import { INSTRUCTIONS_BASE_ITEM } from "../providers/utils"; + import { RetrievalPipelineOptions } from "./pipelines/BaseRetrievalPipeline"; import NoRerankerRetrievalPipeline from "./pipelines/NoRerankerRetrievalPipeline"; import RerankerRetrievalPipeline from "./pipelines/RerankerRetrievalPipeline"; @@ -21,15 +23,17 @@ export async function retrieveContextItemsFromEmbeddings( // transformers.js not supported in JetBrains IDEs right now const isJetBrainsAndTransformersJs = - extras.embeddingsProvider.id === TransformersJsEmbeddingsProvider.model && + extras.embeddingsProvider.providerName === + TransformersJsEmbeddingsProvider.providerName && (await extras.ide.getIdeInfo()).ideType === "jetbrains"; if (isJetBrainsAndTransformersJs) { - throw new Error( - "The 'transformers.js' context provider is not currently supported in JetBrains. " + - "For now, you can use Ollama to set up local embeddings, or use our 'free-trial' " + + void extras.ide.showToast( + "warning", + "Codebase retrieval is limited when `embeddingsProvider` is empty or set to `transformers.js` in JetBrains. " + + "You can use Ollama to set up local embeddings, or use our 'free-trial' " + "embeddings provider. See here to learn more: " + - "https://docs.continue.dev/walkthroughs/codebase-embeddings#embeddings-providers", + "https://docs.continue.dev/customize/model-types/embeddings", ); } @@ -85,6 +89,7 @@ export async function retrieveContextItemsFromEmbeddings( input: extras.fullInput, llm: extras.llm, config: extras.config, + includeEmbeddings: !isJetBrainsAndTransformersJs, }; const pipeline = new pipelineType(pipelineOptions); diff --git a/docs/docs/customize/deep-dives/codebase.md b/docs/docs/customize/deep-dives/codebase.md index 0a582b774..f106fea14 100644 --- a/docs/docs/customize/deep-dives/codebase.md +++ b/docs/docs/customize/deep-dives/codebase.md @@ -5,7 +5,11 @@ keywords: [talk, embeddings, reranker, codebase, experimental] # @Codebase -Continue indexes your codebase so that it can later automatically pull in the most relevant context from throughout your workspace. This is done via a combination of embeddings-based retrieval and keyword search. By default, all embeddings are calculated locally with `all-MiniLM-L6-v2` and stored locally in `~/.continue/index`. +Continue indexes your codebase so that it can later automatically pull in the most relevant context from throughout your workspace. This is done via a combination of embeddings-based retrieval and keyword search. By default, all embeddings are calculated locally using `transformers.js` and stored locally in `~/.continue/index`. + +:::info[`transformers.js cannot be used in JetBrains`] +Currently, `transformers.js` cannot be used in JetBrains IDEs. However, you can select a differet embeddings model from [the list here](../model-types/embeddings.md). +::: Currently, the codebase retrieval feature is available as the "codebase" and "folder" context providers. You can use them by typing `@Codebase` or `@Folder` in the input box, and then asking a question. The contents of the input box will be compared with the embeddings from the rest of the codebase (or folder) to determine relevant files. diff --git a/docs/docs/customize/model-types/embeddings.md b/docs/docs/customize/model-types/embeddings.md index a84346fa0..621c96af1 100644 --- a/docs/docs/customize/model-types/embeddings.md +++ b/docs/docs/customize/model-types/embeddings.md @@ -9,6 +9,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.md) 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. +::: + ## Recommended embedding models If you have the ability to use any model, we recommend `voyage-code-2`, which is listed below along with the rest of the options for embeddings models. @@ -35,7 +39,7 @@ See [here](../model-providers/top-level/ollama.md#embeddings-model) for instruct ### Transformers.js (currently VS Code only) -[Transformers.js](https://huggingface.co/docs/transformers.js/index) is a JavaScript port of the popular [Transformers](https://huggingface.co/transformers/) library. It allows embeddings to be calculated entirely locally. The model used is `all-MiniLM-L6-v2`, which is shipped alongside the Continue extension and used as the default when you have not explicitly configured an embeddings provider. +[Transformers.js](https://huggingface.co/docs/transformers.js/index) is a JavaScript port of the popular [Transformers](https://huggingface.co/transformers/) library. It allows embeddings to be calculated entirely locally. The model used is `all-MiniLM-L6-v2`, which is shipped alongside the Continue extension. ```json title="config.json" { @@ -72,4 +76,4 @@ See [here](../model-providers/top-level/gemini.md#embeddings-model) for instruct ### Vertex -See [here](../model-providers/more/vertex.md#embeddings-model) for instructions on how to use Vertex for embeddings. \ No newline at end of file +See [here](../model-providers/more/vertex.md#embeddings-model) for instructions on how to use Vertex for embeddings. diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index a439eb1e3..90a0623a8 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -2425,8 +2425,8 @@ }, "embeddingsProvider": { "title": "Embeddings Provider", - "markdownDescription": "The method that will be used to generate codebase embeddings. The default is transformers.js, which will run locally in the browser. Learn about the other options [here](https://docs.continue.dev/features/codebase-embeddings#embeddings-providers).", - "x-intellij-html-description": "The method that will be used to generate codebase embeddings. The default is transformers.js, which will run locally in the browser. Learn about the other options here.", + "markdownDescription": "The method that will be used to generate codebase embeddings. The default is `transformers.js`, which will run locally in the browser. Learn about the other options [here](https://docs.continue.dev/features/codebase-embeddings#embeddings-providers).\n\n **Note**: `transformers.js` currently cannot be used in JetBrains.", + "x-intellij-html-description": "The method that will be used to generate codebase embeddings. The default is transformers.js, which will run locally in the browser. Learn about the other options here.

Note: transformers.js currently cannot be used in JetBrains.", "type": "object", "properties": { "provider": { diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index a439eb1e3..470cae9bc 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -2425,8 +2425,8 @@ }, "embeddingsProvider": { "title": "Embeddings Provider", - "markdownDescription": "The method that will be used to generate codebase embeddings. The default is transformers.js, which will run locally in the browser. Learn about the other options [here](https://docs.continue.dev/features/codebase-embeddings#embeddings-providers).", - "x-intellij-html-description": "The method that will be used to generate codebase embeddings. The default is transformers.js, which will run locally in the browser. Learn about the other options here.", + "markdownDescription": "The method that will be used to generate codebase embeddings. The default is `transformers.js`, which will run locally in the browser. Learn about the other options [here](https://docs.continue.dev/features/codebase-embeddings#embeddings-providers).", + "x-intellij-html-description": "The method that will be used to generate codebase embeddings. The default is transformers.js, which will run locally in the browser. Learn about the other options here.

Note: transformers.js currently cannot be used in JetBrains.", "type": "object", "properties": { "provider": { diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 86304fa6e..ed4f2f0d9 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -353,6 +353,7 @@ "promptTemplates": { "title": "Prompt Templates", "markdownDescription": "A mapping of prompt template name ('edit' is currently the only one used in Continue) to a string giving the prompt template. See [here](https://docs.continue.dev/model-setup/configuration#customizing-the-edit-prompt) for an example.", + "x-intellij-html-description": "A mapping of prompt template name ('edit' is currently the only one used in Continue) to a string giving the prompt template. See here for an example.", "type": "object", "additionalProperties": { "type": "string" @@ -401,6 +402,7 @@ "apiType": { "title": "Api Type", "markdownDescription": "OpenAI API type, either `openai` or `azure`", + "x-intellij-html-description": "OpenAI API type, either openai or azure", "enum": [ "openai", "azure" @@ -687,7 +689,8 @@ } ] }, - "markdownDescription": "Select a pre-defined option, or find an exact model ID from Replicate [here](https://replicate.com/collections/streaming-language-models)." + "markdownDescription": "Select a pre-defined option, or find an exact model ID from Replicate [here](https://replicate.com/collections/streaming-language-models).", + "x-intellij-html-description": "Select a pre-defined option, or find an exact model ID from Replicate here." } } }, @@ -963,7 +966,7 @@ "then": { "properties": { "model": { - "markdownDescription": "SageMaker endpoint name" + "description": "SageMaker endpoint name" } } } @@ -1082,7 +1085,8 @@ "type": "string" } ], - "markdownDescription": "Select a pre-defined option, or find an exact model string from Together AI [here](https://docs.together.ai/docs/inference-models)." + "markdownDescription": "Select a pre-defined option, or find an exact model string from Together AI [here](https://docs.together.ai/docs/inference-models).", + "x-intellij-html-description": "Select a pre-defined option, or find an exact model string from Together AI here." } } } @@ -1103,7 +1107,8 @@ "then": { "properties": { "model": { - "markdownDescription": "Find the model name you want to use from DeepInfra [here](https://deepinfra.com/models?type=text-generation)." + "markdownDescription": "Find the model name you want to use from DeepInfra [here](https://deepinfra.com/models?type=text-generation).", + "x-intellij-html-description": "Find the model name you want to use from DeepInfra here." } } } @@ -1221,7 +1226,8 @@ "type": "string" } ], - "markdownDescription": "Select a pre-defined option, or find the exact model tag for an Ollama model [here](https://ollama.ai/library)." + "markdownDescription": "Select a pre-defined option, or find the exact model tag for an Ollama model [here](https://ollama.ai/library).", + "x-intellij-html-description": "Select a pre-defined option, or find the exact model tag for an Ollama model here." } } } @@ -1696,7 +1702,7 @@ "type": "string" } ], - "markdownDescription": "Select a pre-defined option." + "description": "Select a pre-defined option." } } } @@ -1828,11 +1834,12 @@ "properties": { "recap": { "type": "boolean", - "markdownDescription": "If recap is set to `true`, Continue will generate a summary of the changes after making the edit." + "markdownDescription": "If recap is set to `true`, Continue will generate a summary of the changes after making the edit.", + "x-intellij-html-description": "If recap is set to true, Continue will generate a summary of the changes after making the edit." }, "tokenLimit": { "type": "integer", - "markdownDescription": "By default, Continue doesn't let you edit extremely large ranges (beyond 1,200 tokens), because the LLM is unlikely to succeed. But if you would like to override this limit with the understanding of possible failure you may do so here." + "description": "By default, Continue doesn't let you edit extremely large ranges (beyond 1,200 tokens), because the LLM is unlikely to succeed. But if you would like to override this limit with the understanding of possible failure you may do so here." } } } @@ -1855,7 +1862,8 @@ "properties": { "outputDir": { "type": "string", - "markdownDescription": "If outputDir is set to `.` or begins with `./` or `.\\`, file will be saved to the current workspace or a subdirectory thereof, respectively. `~` can similarly be used to specify the user's home directory." + "markdownDescription": "If outputDir is set to `.` or begins with `./` or `.\\`, file will be saved to the current workspace or a subdirectory thereof, respectively. `~` can similarly be used to specify the user's home directory.", + "x-intellij-html-description": "If outputDir is set to . or begins with ./ or .\\, file will be saved to the current workspace or a subdirectory thereof, respectively. ~ can similarly be used to specify the user's home directory." } } } @@ -1878,7 +1886,8 @@ "properties": { "includeUnstaged": { "type": "boolean", - "markdownDescription": "If includeUnstaged is set to true, then unstaged changes are also included in the prompt, otherwise only staged changes are included. Default is false." + "markdownDescription": "If set to `true`, then unstaged changes are also included in the prompt, otherwise only staged changes are included. Default is `false`.", + "x-intellij-html-description": "If set to true, then unstaged changes are also included in the prompt, otherwise only staged changes are included. Default is false." } } } @@ -2355,7 +2364,8 @@ }, "apiVersion": { "type": "integer", - "markdownDescription": "This context provider supports both Jira API version 2 and 3. It will use version 3 by default since that's what the cloud version uses, but if you have the datacenter version of Jira, you'll need to set the API Version to 2 using the `apiVersion` property." + "markdownDescription": "This context provider supports both Jira API version 2 and 3. It will use version 3 by default since that's what the cloud version uses, but if you have the datacenter version of Jira, you'll need to set the API Version to 2 using the `apiVersion` property.", + "x-intellij-html-description": "This context provider supports both Jira API version 2 and 3. It will use version 3 by default since that's what the cloud version uses, but if you have the datacenter version of Jira, you'll need to set the API Version to 2 using the apiVersion property." }, "requestOptions": { "title": "Request Options", @@ -2605,13 +2615,15 @@ }, "allowAnonymousTelemetry": { "title": "Allow Anonymous Telemetry", - "markdownDescription": "If this field is set to True, we will collect anonymous telemetry as described in the documentation page on telemetry. If set to `false`, we will not collect any data. Learn more in [the docs](https://docs.continue.dev/telemetry).", + "markdownDescription": "If this field is set to `true`, we will collect anonymous telemetry as described in the documentation page on telemetry. If set to `false`, we will not collect any data. Learn more in [the docs](https://docs.continue.dev/telemetry).", + "x-intellij-html-description": "If this field is set to `true`, we will collect anonymous telemetry as described in the documentation page on telemetry. If set to `false`, we will not collect any data. Learn more in the docs.", "default": true, "type": "boolean" }, "models": { "title": "Models", "markdownDescription": "Learn about setting up models in [the documentation](https://docs.continue.dev/model-setup/overview).", + "x-intellij-html-description": "Learn about setting up models in the documentation.", "default": [ { "title": "GPT-4 (trial)", @@ -2660,6 +2672,7 @@ "slashCommands": { "title": "Slash Commands", "markdownDescription": "An array of slash commands that let you take custom actions from the sidebar. Learn more in the [documentation](https://docs.continue.dev/customization/slash-commands).", + "x-intellij-html-description": "An array of slash commands that let you take custom actions from the sidebar. Learn more in the documentation.", "default": [], "type": "array", "items": { @@ -2668,7 +2681,8 @@ }, "customCommands": { "title": "Custom Commands", - "markdownDescription": "An array of custom commands that allow you to reuse prompts. Each has name, description, and prompt properties. When you enter / in the text input, it will act as a shortcut to the prompt. Learn more in the [documentation](https://docs.continue.dev/customization/slash-commands#custom-commands-use-natural-language).", + "markdownDescription": "An array of custom commands that allow you to reuse prompts. Each has name, description, and prompt properties. When you enter `/` in the text input, it will act as a shortcut to the prompt. Learn more in the [documentation](https://docs.continue.dev/customization/slash-commands#custom-commands-use-natural-language).", + "x-intellij-html-description": "An array of custom commands that allow you to reuse prompts. Each has name, description, and prompt properties. When you enter / in the text input, it will act as a shortcut to the prompt. Learn more in the documentation.", "default": [ { "name": "test", @@ -2684,6 +2698,7 @@ "contextProviders": { "title": "Context Providers", "markdownDescription": "A list of ContextProvider objects that can be used to provide context to the LLM by typing '@'. Read more about ContextProviders in [the documentation](https://docs.continue.dev/customization/context-providers).", + "x-intellij-html-description": "A list of ContextProvider objects that can be used to provide context to the LLM by typing '@'. Read more about ContextProviders in the documentation.", "default": [], "type": "array", "items": { @@ -2698,18 +2713,21 @@ "disableIndexing": { "title": "Disable Indexing", "markdownDescription": "If set to `true`, Continue will not index the codebase. This is mainly used for debugging purposes.", + "x-intellij-html-description": "If set to true, Continue will not index the codebase. This is mainly used for debugging purposes.", "default": false, "type": "boolean" }, "disableSessionTitles": { "title": "Disable Session Titles", "markdownDescription": "If set to `true`, Continue will not make extra requests to the LLM to generate a summary title of each session.", + "x-intellij-html-description": "If set to true, Continue will not make extra requests to the LLM to generate a summary title of each session.", "default": false, "type": "boolean" }, "embeddingsProvider": { "title": "Embeddings Provider", - "markdownDescription": "The method that will be used to generate codebase embeddings. The default is transformers.js, which will run locally in the browser. Learn about the other options [here](https://docs.continue.dev/features/codebase-embeddings#embeddings-providers).", + "markdownDescription": "The method that will be used to generate codebase embeddings. The default is `transformers.js`, which will run locally in the browser. Learn about the other options [here](https://docs.continue.dev/features/codebase-embeddings#embeddings-providers).\n\n **Note**: `transformers.js` currently cannot be used in JetBrains.", + "x-intellij-html-description": "The method that will be used to generate codebase embeddings. The default is transformers.js, which will run locally in the browser. Learn about the other options here.

Note: transformers.js currently cannot be used in JetBrains.", "type": "object", "properties": { "provider": { @@ -2809,7 +2827,7 @@ "then": { "properties": { "model": { - "markdownDescription": "SageMaker endpoint name" + "description": "SageMaker endpoint name" } }, "required": [ @@ -2833,10 +2851,10 @@ "then": { "properties": { "projectId": { - "markdownDescription": "The name of your vertexAI project" + "description": "The name of your VertexAI project" }, "region": { - "markdownDescription": "The region your vertexAI model is hosted in - typically central1", + "description": "The region your VertexAI model is hosted in - typically central1", "default": "central1" }, "model": { @@ -2854,7 +2872,7 @@ }, "reranker": { "title": "Reranker", - "markdownDescription": "The reranker is responsible for selecting the final results when retrieving snippets from your codebase.", + "description": "The reranker is responsible for selecting the final results when retrieving snippets from your codebase.", "type": "object", "properties": { "name": { @@ -3004,7 +3022,7 @@ }, "truncate": { "type": "boolean", - "description": "Wether to truncate long sequences to the maximum allowed context length.", + "description": "Whether to truncate long sequences to the maximum allowed context length.", "default": false }, "truncation_direction": { @@ -3012,7 +3030,7 @@ "Right", "Left" ], - "markdownDescription": "Wether to truncate sequences from the `left` or `right`.", + "description": "Whether to truncate sequences from the left or right.", "default": "Right" } }, @@ -3040,6 +3058,7 @@ "tabAutocompleteModel": { "title": "Tab Autocomplete Model", "markdownDescription": "The model used for tab autocompletion. If undefined, Continue will default to using starcoder2:3b on a local Ollama instance.\n\n*IMPORTANT*:\n\nIf you use a custom model, ensure that it is one trained for fill-in-the-middle completions. An instruct model is typically not well-suited to autocomplete and you may receive unsatisfactory completions.", + "x-intellij-html-description": "The model used for tab autocompletion. If undefined, Continue will default to using starcoder2:3b on a local Ollama instance.

IMPORTANT:

If you use a custom model, ensure that it is one trained for fill-in-the-middle completions. An instruct model is typically not well-suited to autocomplete and you may receive unsatisfactory completions.", "default": { "title": "Tab Autocomplete Model", "provider": "ollama", @@ -3061,6 +3080,7 @@ "title": "TabAutocompleteOptions", "type": "object", "markdownDescription": "These options let you customize your tab-autocomplete experience. Read about all options in [the docs](https://docs.continue.dev/features/tab-autocomplete#configuration-options).", + "x-intellij-html-description": "These options let you customize your tab-autocomplete experience. Read about all options in the docs.", "properties": { "disable": { "type": "boolean", @@ -3147,6 +3167,7 @@ "showChatScrollbar": { "title": "Show Chat Scrollbar", "markdownDescription": "If set to `true`, a scrollbar will be displayed in the chat window to navigate through messages.", + "x-intellij-html-description": "If set to true, a scrollbar will be displayed in the chat window to navigate through messages.", "default": false, "type": "boolean" }