This commit is contained in:
Test 2024-09-06 13:48:10 -07:00
parent 97040d59b4
commit baa371ca2b
59 changed files with 124 additions and 102 deletions

View file

@ -1,11 +1,9 @@
---
title: 🧑‍💻 Development data
title: Development data
description: Collecting data on how you build software
keywords: [development data, dev data, LLM-aided development]
---
# 🧑‍💻 Development Data
When you use Continue, you automatically collect data on how you build software. By default, this development data is saved to `.continue/dev_data` on your local machine. When combined with the code that you ultimately commit, it can be used to improve the LLM that you or your team use (if you allow).
You can read more about how development data is generated as a byproduct of LLM-aided development and why we believe that you should start collecting it now: [It’s time to collect data on how you build software](https://blog.continue.dev/its-time-to-collect-data-on-how-you-build-software)

View file

@ -7,7 +7,7 @@ keywords: [edit, cmd l, works]
You can configure a particular model to be used for Edit using the `inlineEdit` property.
```json title="~/.continue/config.json"
```json title="config.json"
"experimental": {
"modelRoles": {
"inlineEdit": "MODEL_TITLE",

View file

@ -23,22 +23,22 @@ To get a quick sense of how to use the most common features of Continue, check o
</Admonition>
</TabItem>
<TabItem value="autocomplete" label="Autocomplete" icon="📚">
<TabItem value="autocomplete" label="Autocomplete">
Tab through Autocomplete suggestions that intelligently reference import statements, recently used files, clipboard content, and more.
![autocomplete](/img/autocomplete.gif)
<Admonition type="info" title="Learn more">
<Admonition type="info" title="Learn more" icon="📚">
Learn more about [Autocomplete](../autocomplete.md)
</Admonition>
</TabItem>
<TabItem value="edit" label="Edit" icon="📚">
<TabItem value="edit" label="Edit">
Edit is a convenient way to modify code without leaving your current file. Highlight a block of code, describe your code changes, and a diff will be streamed inline to your file which you can accept or reject.
![edit](/img/edit.gif)
<Admonition type="info" title="Learn more">
<Admonition type="info" title="Learn more" icon="📚">
Learn more about [Edit](http://LINK-TODO)
</Admonition>

View file

@ -1,6 +1,7 @@
---
title: Introduction
description: The open-source AI code assistant for developers
slug: /docs
keywords: [continue, AI, code assistant, autocomplete, chat, VS Code, JetBrains]
---

View file

@ -133,7 +133,7 @@ You can add custom slash commands by adding to the `customCommands` property in
Custom commands are great when you are frequently reusing a prompt. For example, if you've crafted a great prompt and frequently ask the LLM to check for mistakes in your code, you could add a command like this:
```json title="~/.continue/config.json"
```json title="config.json"
customCommands=[{
"name": "check",
"description": "Check for mistakes in my code",

View file

@ -4,8 +4,6 @@ description: Learn how Continue collects anonymous usage information and how you
keywords: [telemetry, anonymous, usage info, opt out]
---
# Telemetry
## Overview
Continue collects and reports **anonymous** usage information to help us improve our product. This data enables us to understand user interactions and optimize the user experience effectively. You can opt out of telemetry collection at any time if you prefer not to share your usage information.
@ -30,9 +28,9 @@ The following usage information is collected and reported:
You can disable anonymous telemetry by modifying the `config.json` file located in the `~/.continue` directory. This file typically includes the following entry:
```json title="~/.continue/config.json"
```json title="config.json"
{
"allowAnonymousTelemetry": true,
"allowAnonymousTelemetry": true
}
```

View file

@ -1,3 +1,8 @@
---
slug: /reference
keywords: [config.json, configuration, options]
---
import Schema from "@site/static/schemas/config.json";
import JSONSchemaViewer from "@theme/JSONSchemaViewer";

View file

@ -1,9 +1,10 @@
---
title: Codebase Retrieval
description: Talk to your codebase
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`.
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.
@ -35,7 +36,7 @@ Here are use cases where it is not useful:
There are a few options that let you configure the behavior of the codebase context provider. These can be set in `config.json`, and are the same for the codebase and folder context providers:
```json title="~/.continue/config.json"
```json title="config.json"
{
"contextProviders": [
{

View file

@ -1,10 +1,11 @@
---
title: Talk To Your Docs
description: Learn how to access and search your project's documentation directly within Continue
keywords: [documentation, indexing, context provider, embeddings]
keywords: [documentation, indexing, context provider, embeddings, docs]
toc_max_heading_level: 5
---
# @docs
The [`@docs` context provider](http://localhost:3000/customization/context-providers#documentation) allows you to interact with your documentation directly within Continue. This feature enables you to index any static site or GitHub markdown pages, making it easier to access and utilize your documentation while coding.
## Enabling the `@docs` context provider

View file

@ -1,7 +1,7 @@
---
title: Quick Actions (experimental, VS Code only)
title: Quick actions (experimental, VS Code only)
description: Quick Actions streamline your development workflow by allowing quick edits on selected classes or functions
keywords: [experimental, automate, configuration]
keywords: [experimental, automate, configuration, quick, actions]
toc_max_heading_level: 5
---

View file

@ -1,4 +1,7 @@
# Tab Autocomplete (beta)
---
title: Tab autocomplete
keywords: [tab, autocomplete]
---
Continue now provides support for tab autocomplete in [VS Code](https://marketplace.visualstudio.com/items?itemName=Continue.continue) and [JetBrains IDEs](https://plugins.jetbrains.com/plugin/22707-continue/edit). We will be greatly improving the experience over the next few releases, and it is always helpful to hear feedback. If you have any problems or suggestions, please let us know in our [Discord](https://discord.gg/vapESyrFmJ).

View file

@ -4,7 +4,7 @@ title: Cohere
Configuration for the `embed-english-v3.0` model. This is the default.
```json title="~/.continue/config.json"
```json title="config.json"
{
"embeddingsProvider": {
"provider": "cohere",

View file

@ -6,7 +6,7 @@ Gemini's _Text Embedding_ model is optimized for creating embeddings with 768 di
As of May 2024, the only available embedding model from Gemini is [`text-embedding-004`](https://ai.google.dev/gemini-api/docs/models/gemini#text-embedding-and-embedding).
```json title="~/.continue/config.json"
```json title="config.json"
{
"embeddingsProvider": {
"provider": "gemini",

View file

@ -4,7 +4,7 @@ title: Hugging Face Text Embeddings Inference
[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:
```json title="~/.continue/config.json"
```json title="config.json"
{
"embeddingsProvider": {
"provider": "huggingface-tei",

View file

@ -4,7 +4,7 @@ title: Ollama
[Ollama](https://ollama.ai) is the easiest way to get up and running with open-source language models. It provides an entirely local REST API for working with LLMs, including generating embeddings. We recommend using an embeddings model like `nomic-embed-text`:
```json title="~/.continue/config.json"
```json title="config.json"
{
"embeddingsProvider": {
"provider": "ollama",

View file

@ -8,7 +8,7 @@ title: Open AI
This is default. The `text-embedding-3-small` model offers an outstanding balance between performance and efficiency, suitable for a versatile range of applications.
```json title="~/.continue/config.json"
```json title="config.json"
{
"embeddingsProvider": {
"provider": "openai",
@ -23,7 +23,7 @@ This is default. The `text-embedding-3-small` model offers an outstanding balanc
For those requiring the highest level of embedding detail and precision, the `text-embedding-3-large` model is the better choice.
```json title="~/.continue/config.json"
```json title="config.json"
{
"embeddingsProvider": {
"provider": "openai",
@ -38,7 +38,7 @@ For those requiring the highest level of embedding detail and precision, the `te
For certain scenarios, you may still find the `text-embedding-ada-002` model relevant. Below is the configuration example:
```json title="~/.continue/config.json"
```json title="config.json"
{
"embeddingsProvider": {
"provider": "openai",

View file

@ -8,7 +8,7 @@ Note that Transformers.js is currently only available in VS Code
[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 locally in the browser (or in this case inside of the sidebar of your IDE). The model used is `all-MiniLM-L6-v2`, which is shipped alongside the Continue extension and generates embeddings of size 384.
```json title="~/.continue/config.json"
```json title="config.json"
{
"embeddingsProvider": {
"provider": "transformers.js"

View file

@ -4,7 +4,7 @@ title: Voyage AI
Voyage AI offers the best embeddings for code with their voyage-code-2 model. After obtaining an API key from [here](https://www.voyageai.com/), you can configure like this:
```json title="~/.continue/config.json"
```json title="config.json"
{
"embeddingsProvider": {
"provider": "openai",

View file

@ -18,7 +18,7 @@ Ollama is the fastest way to get up and running with local language models. We r
2. Open a terminal and run `ollama run llama3.1:8b`
3. Change your Continue config file like this:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{
@ -37,7 +37,7 @@ Groq provides the fastest available inference for open-source language models, i
1. Obtain an API key [here](https://console.groq.com/keys)
2. Update your Continue config file like this:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{
@ -58,7 +58,7 @@ Together AI provides fast and reliable inference of open-source models. You'll b
2. Copy your API key that appears on the welcome screen
3. Update your Continue config file like this:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{
@ -78,7 +78,7 @@ Replicate makes it easy to host and run open-source AI with an API.
1. Get your Replicate API key [here](https://replicate.ai/)
2. Change your Continue config file like this:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -16,7 +16,7 @@ keywords: [codestral, mistral, model setup]
4. To use Codestral as your model for both `autocomplete` and `chat`, replace `[API_KEY]` with your Mistral API key below and add it to your `config.json` file:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{
@ -43,7 +43,7 @@ keywords: [codestral, mistral, model setup]
Mistral AI recently changed the API endpoint to `codestral.mistral.ai` instead of `api.mistral.ai`, and our updated JetBrains extension is waiting on approval from the store. In the meantime, you will have to specify apiBase as `https://codestral.mistral.ai/v1` in the config.json like this:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -2,7 +2,7 @@
To setup Anthropic, obtain an API key from [here](https://www.anthropic.com/api) and add the following to your `config.json` file:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -12,7 +12,7 @@ You need to apply for access to the Azure OpenAI service. Response times are typ
You can configure Azure OpenAI service through the UI, or you can configure it manually in `config.json`.
```json title="~/.continue/config.json"
```json title="config.json"
"models": [{
"title": "Azure OpenAI",
"provider": "azure",

View file

@ -2,7 +2,7 @@
To setup Bedrock, add the following to your `config.json` file:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -2,7 +2,7 @@
To setup Bedrock using custom imported models, add the following to your `config.json` file:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -2,7 +2,7 @@
Cloudflare Workers AI can be used for both chat and tab autocompletion in Continue. To setup Cloudflare Workers AI, add the following to your `config.json` file:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -2,7 +2,7 @@
To setup Cohere, add the following to your `config.json` file:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -2,7 +2,7 @@
[DeepInfra](https://deepinfra.com) provides inference for open-source models at very low cost. To get started with DeepInfra, obtain your API key [here](https://deepinfra.com/dash). Then, find the model you want to use [here](https://deepinfra.com/models?type=text-generation) and copy the name of the model. Continue can then be configured to use the `DeepInfra` LLM class, like the example here:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -2,7 +2,7 @@
To setup DeepSeek, obtain an API key from [here](https://www.deepseek.com/) and add the following to your `config.json` file:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -2,7 +2,7 @@
[Flowise](https://flowiseai.com/) is a low-code/no-code drag & drop tool with the aim to make it easy for people to visualize and build LLM apps. Continue can then be configured to use the `Flowise` LLM class, like the example here:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -17,7 +17,7 @@ Ollama is a local service that makes it easy to run language models on your lapt
2. Open `~/.continue/config.json`. You can do this by clicking the gear icon in the bottom right corner of the Continue sidebar
3. Add the following to your `config.json`:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{
@ -36,7 +36,7 @@ Groq provides lightning fast inference for open-source LLMs like Llama3, up to t
1. Obtain an API key from https://console.groq.com
2. Add the following to your `config.json`:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{
@ -54,7 +54,7 @@ Groq provides lightning fast inference for open-source LLMs like Llama3, up to t
1. Copy your API key from https://platform.openai.com/account/api-keys
2. Add the following to your `config.json`:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -1,8 +1,8 @@
# Gemini API
# Gemini
The Google Gemini API is currently in beta. You can [create an API key in Google AI Studio](https://aistudio.google.com) and use `gemini-1.5-pro-latest`. Change `~/.continue/config.json` to include the following entry in the "models" array:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -2,7 +2,7 @@
Hugging Face Inference Endpoints are an easy way to setup instances of open-source language models on any cloud. Sign up for an account and add billing [here](https://huggingface.co/settings/billing), access the Inference Endpoints [here](https://ui.endpoints.huggingface.co), click on “New endpoint”, and fill out the form (e.g. select a model like [WizardCoder-Python-34B-V1.0](https://huggingface.co/WizardLM/WizardCoder-Python-34B-V1.0)), and then deploy your model by clicking “Create Endpoint”. Change `~/.continue/config.json` to look like this:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -6,7 +6,7 @@
IPEX-LLM supports accelerated Ollama backend to be hosted on Intel GPU. Refer to [this guide](https://ipex-llm.readthedocs.io/en/latest/doc/LLM/Quickstart/ollama_quickstart.html) from IPEX-LLM official documentation about how to install and run Ollama serve accelerated by IPEX-LLM on Intel GPU. You can then configure Continue to use the IPEX-LLM accelerated `"ollama"` provider as follows:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{
@ -20,7 +20,7 @@ IPEX-LLM supports accelerated Ollama backend to be hosted on Intel GPU. Refer to
If you would like to reach the Ollama service from another machine, make sure you set or export the environment variable `OLLAMA_HOST=0.0.0.0` before executing the command `ollama serve`. Then, in the Continue configuration, set `'apiBase'` to correspond with the IP address / port of the remote machine. That is, Continue can be configured to be:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{
@ -34,6 +34,7 @@ If you would like to reach the Ollama service from another machine, make sure yo
```
:::tip
- For more configuration options regarding completion or authentication, you could refer to [here](./ollama.md#completion-options) for Ollama provider.
- If you would like to preload the model before your first conversation with that model in Continue, you could refer to [here](https://ipex-llm.readthedocs.io/en/latest/doc/LLM/Quickstart/continue_quickstart.html#pull-and-prepare-the-model) for more information.
:::
:::

View file

@ -1,9 +1,10 @@
# Kindo
Kindo offers centralized control over your organization's AI operations, ensuring data protection and compliance with internal policies while supporting various commercial and open-source models. To get started, sign up [here](https://app.kindo.ai/), create your API key on the [API keys page](https://app.kindo.ai/settings/api), and choose a model from the list of supported models in the [plugins tab](https://app.kindo.ai/plugins).
## Config Example
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{
@ -18,7 +19,7 @@ Kindo offers centralized control over your organization's AI operations, ensurin
## Tab Autocomplete Config Example
```json title="~/.continue/config.json"
```json title="config.json"
{
"tabAutocompleteModel": [
{
@ -39,4 +40,4 @@ Kindo offers centralized control over your organization's AI operations, ensurin
## Security
To update your organization's model access, adjust the controls in [security settings](https://app.kindo.ai/security-settings).
To update your organization's model access, adjust the controls in [security settings](https://app.kindo.ai/security-settings).

View file

@ -8,7 +8,7 @@ Run the llama.cpp server binary to start the API server. If running on a remote
After it's up and running, change `~/.continue/config.json` to look like this:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -2,7 +2,7 @@
A [llamafile](https://github.com/Mozilla-Ocho/llamafile#readme) is a self-contained binary that can run an open-source LLM. You can configure this provider in your config.json as follows:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -2,7 +2,7 @@
[LM Studio](https://lmstudio.ai) is an application for Mac, Windows, and Linux that makes it easy to locally run open-source models and comes with a great UI. To get started with LM Studio, download from the website, use the UI to download a model, and then start the local inference server. Continue can then be configured to use the `LMStudio` LLM class:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{
@ -18,7 +18,7 @@
To configure a remote instance of LM Studio, add the `"apiBase"` property to your model in config.json:
```json title="~/.continue/config.json"
```json title="config.json"
{
"title": "LM Studio",
"model": "codestral",

View file

@ -2,7 +2,7 @@
The [Mistral](https://mistral.ai) API provides hosted access to their models, including Mistral-7b, Mixtral, and the very capable mistral-medium. After you obtain your API key [here](https://docs.mistral.ai/), Continue can be configured as shown here:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -2,7 +2,7 @@
[Msty](https://msty.app/) is an application for Windows, Mac, and Linux that makes it really easy to run online as well as local open-source models, including Llama-2, DeepSeek Coder, etc. No need to fidget with your terminal, run a command, or anything. Just download the app from the website, click a button, and you are up and running. Continue can then be configured to use the `Msty` LLM class:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{
@ -29,7 +29,7 @@ In addition to the model type, you can also configure some of the parameters tha
If you need to send custom headers for authentication, you may use the `requestOptions.headers` property like this:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -2,7 +2,7 @@
[Ollama](https://ollama.ai/) is an application for Mac, Windows, and Linux that makes it easy to locally run open-source models, including Llama3. Download the app from the website, and it will walk you through setup in a couple of minutes. You can also read more in their [README](https://github.com/ollama/ollama). Continue can then be configured to use the `"ollama"` provider:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{
@ -30,7 +30,7 @@ In addition to the model type, you can also configure some of the parameters tha
If you need to send custom headers for authentication, you may use the `requestOptions.headers` property like this:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -21,7 +21,7 @@ OpenAI compatible APIs
If you are [using an OpenAI compatible server / API](../../setup/model-providers.md#local), you can change the `apiBase` like this:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -4,7 +4,7 @@ OpenRouter is a unified interface for commercial and open-source models, giving
Change `~/.continue/config.json` to look like the following.
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{
@ -22,7 +22,7 @@ To utilize features such as provider preferences or model routing configuration,
For example, to prevent extra long prompts from being compressed, you can explicitly turn off the feature like so:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -2,7 +2,7 @@
Replicate is a great option for newly released language models or models that you've deployed through their platform. Sign up for an account [here](https://replicate.ai/), copy your API key, and then select any model from the [Replicate Streaming List](https://replicate.com/collections/streaming-language-models). Change `~/.continue/config.json` to look like this:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -1,10 +1,10 @@
# AWS SageMaker
# AWS SageMaker
SageMaker provider support SageMaker endpoint deployed with [LMI](https://docs.djl.ai/docs/serving/serving/docs/lmi/index.html)
To setup SageMaker, add the following to your `config.json` file:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{
@ -12,19 +12,19 @@ To setup SageMaker, add the following to your `config.json` file:
"provider": "sagemaker",
"model": "lmi-model-deepseek-coder-xxxxxxx",
"region": "us-west-2"
},
}
]
}
```
The value in model should be the SageMaker endpoint name you deployed.
Authentication will be through temporary or long-term credentials in
Authentication will be through temporary or long-term credentials in
~/.aws/credentials under a profile called "sagemaker".
```title="~/.aws/credentials
[sagemaker]
aws_access_key_id = abcdefg
aws_secret_access_key = hijklmno
aws_session_token = pqrstuvwxyz # Optional: means short term creds.
aws_session_token = pqrstuvwxyz # Optional: means short term creds.
```

View file

@ -2,7 +2,7 @@
TextGenWebUI is a comprehensive, open-source language model UI and local server. You can set it up with an OpenAI-compatible server plugin, and then configure it in your `config.json` like this:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -2,7 +2,7 @@
The Together API is a cloud platform for running large AI models. You can sign up [here](https://api.together.xyz/signup), copy your API key on the initial welcome screen, and then hit the play button on any model from the [Together Models list](https://docs.together.ai/docs/models-inference). Change `~/.continue/config.json` to look like this:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -8,7 +8,7 @@ vllm serve NousResearch/Meta-Llama-3-8B-Instruct --max-model-len 1024
The continue implementation uses [OpenAI](./openai.md) under the hood and automatically selects the available model. You only need to set the `apiBase` like this:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -4,7 +4,7 @@ title: Cohere
See Cohere's documentation for rerankers [here](https://docs.cohere.com/docs/rerank-2).
```json title="~/.continue/config.json"
```json title="config.json"
{
"reranker": {
"name": "cohere",

View file

@ -4,7 +4,7 @@ title: Free trial
Continue offers a free trial of Voyage AI's reranking model.
```json title="~/.continue/config.json"
```json title="config.json"
{
"reranker": {
"name": "free-trial"

View file

@ -4,7 +4,7 @@ title: Hugging Face Text Embeddings Inference
[Hugging Face Text Embeddings Inference](https://huggingface.co/docs/text-embeddings-inference/en/index) enables you to host your own [reranker endpoint](https://huggingface.github.io/text-embeddings-inference/#/Text%20Embeddings%20Inference/rerank). You can configure your reranker as follows:
```json title="~/.continue/config.json"
```json title="config.json"
{
"reranker": {
"name": "huggingface-tei",

View file

@ -4,7 +4,7 @@ title: LLM
If you only have access to a single LLM, then you can use it as a reranker. This is discouraged unless truly necessary, because it will be much more expensive and still less accurate than any of the above models trained specifically for the task. Note that this will not work if you are using a local model, for example with Ollama, because too many parallel requests need to be made.
```json title="~/.continue/config.json"
```json title="config.json"
{
"reranker": {
"name": "llm",

View file

@ -4,7 +4,7 @@ title: Voyage AI
Voyage AI offers the best reranking model for code with their rerank-lite-1 model. After obtaining an API key from [here](https://www.voyageai.com/), you can configure like this:
```json title="~/.continue/config.json"
```json title="config.json"
{
"reranker": {
"name": "voyage",

View file

@ -20,7 +20,7 @@ You can use Continue in different ways. Here are some quick setups for common us
The `free-trial` lets new users try out Continue with GPT-4o, Llama3, Claude 3.5, and other models using a ContinueDev proxy server that securely makes API calls to these services.
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{
@ -54,7 +54,7 @@ This setup uses Claude 3.5 Sonnet for chatting, Codestral for autocomplete, and
3. Get an Voyage AI API key from [Voyage AI Dashboard](https://dash.voyageai.com/)
4. Replace `[CODESTRAL_API_KEY]`, `[ANTHROPIC_API_KEY]`, and `[VOYAGE_API_KEY]` with the keys you got from the above links.
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{
@ -97,7 +97,7 @@ This configuration leverages Ollama for all functionalities - chat, autocomplete
- For autocomplete: `ollama pull starcoder2:3b`
- For embeddings: `ollama pull nomic-embed-text`
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{
@ -154,7 +154,7 @@ However, if neither of these are the case, you will need to wire up a new LLM ob
Basic authentication can be done with any provider using the `apiKey` field:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{
@ -171,7 +171,7 @@ This translates to the header `"Authorization": "Bearer xxx"`.
If you need to send custom headers for authentication, you may use the `requestOptions.headers` property like in this example with Ollama:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{
@ -190,7 +190,7 @@ If you need to send custom headers for authentication, you may use the `requestO
Similarly if your model requires a Certificate for authentication, you may use the `requestOptions.clientCertificate` property like in the example below:
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{
@ -213,7 +213,7 @@ Similarly if your model requires a Certificate for authentication, you may use t
Continue by default knows the context length for common models. For example, it will automatically assume 200k tokens for Claude 3. For Ollama, the context length is determined automatically by asking Ollama. If neither of these are sufficient, you can manually specify the context length by using hte `"contextLength"` property in your model in config.json.
```json title="~/.continue/config.json"
```json title="config.json"
{
"models": [
{

View file

@ -23,10 +23,8 @@ const config = {
organizationName: "continuedev", // Usually your GitHub org/user name.
projectName: "continue", // Usually your repo name.
// TODO: Renable
onBrokenLinks: "ignore",
// onBrokenLinks: "throw",
// onBrokenMarkdownLinks: "warn",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
@ -75,7 +73,7 @@ const config = {
logo: {
alt: "Continue Logo",
src: "img/logo.png",
href: "https://continue.dev",
href: "/docs",
},
items: [
{

View file

@ -3,14 +3,18 @@
const sidebars = {
docsSidebar: [
"docs/introduction",
{
type: "doc",
id: "docs/introduction",
},
{
type: "category",
label: "Quickstart",
label: "Getting started",
collapsed: false,
items: [
{
type: "autogenerated",
dirName: "docs/quickstart",
dirName: "docs/getting-started",
},
],
},
@ -54,6 +58,11 @@ const sidebars = {
},
],
},
"docs/context-providers",
"docs/slash-commands",
"docs/development-data",
"docs/telemetry",
"docs/troubleshooting",
],
referenceSidebar: [
"reference/config",
@ -70,6 +79,9 @@ const sidebars = {
{
type: "category",
label: "LLM providers",
link: {
type: "generated-index",
},
items: [
{
type: "autogenerated",
@ -80,6 +92,9 @@ const sidebars = {
{
type: "category",
label: "Embeddings providers",
link: {
type: "generated-index",
},
items: [
{
type: "autogenerated",
@ -90,6 +105,9 @@ const sidebars = {
{
type: "category",
label: "Reranking providers",
link: {
type: "generated-index",
},
items: [
{
type: "autogenerated",
@ -97,8 +115,6 @@ const sidebars = {
},
],
},
"reference/context-providers",
"reference/slash-commands",
{
type: "category",
label: "Deep dives",
@ -111,15 +127,14 @@ const sidebars = {
},
{
type: "category",
label: "Tutorials",
label: "Guides",
items: [
{
type: "autogenerated",
dirName: "reference/tutorials",
dirName: "reference/guides",
},
],
},
"reference/troubleshooting",
"reference/changelog",
],
};