progress on hub docs

This commit is contained in:
Dallin Romney 2025-02-24 20:48:26 -08:00
parent 9bd95affdd
commit 3fee4a3385
17 changed files with 102 additions and 79 deletions

View file

@ -5,8 +5,8 @@ keywords: [model, autocomplete]
sidebar_position: 2
---
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
:::info
This page recommends models and providers for Autocomplete. Read more about how to set up your `config.yaml` [here](../reference.md).

View file

@ -13,6 +13,10 @@ As an example, say you are working on solving a new GitHub Issue. You type '@Iss
![Context Items](/img/context-provider-example.png)
## Context blocks
You can add context providers to assistants using [`context` blocks](../hub/blocks/block-types.md#context). Explore available context blocks in [the hub](https://hub.continue.dev/explore/context).
## Built-in Context Providers
You can add any built-in context-providers in your config file as shown below:

View file

@ -14,8 +14,8 @@ keywords:
toc_max_heading_level: 5
---
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# @Docs
@ -62,6 +62,10 @@ Pre-indexed docs are only available in VS Code because the VS Code extension shi
## Indexing Your Own Documentation
### Hub `docs` Blocks
@Docs uses [`docs` blocks](../../hub/blocks/block-types.md#docs) in Assistants from the hub. Visit the hub to [explore `docs` blocks](https://hub.continue.dev/explore/docs) or [create your own](https://hub.continue.dev/new?type=block&block=docs).
### Through the `@Docs` Context Provider
To add a single documentation site, we recommend using the **Add Documentation** Form within the GUI. This can be accessed
@ -85,7 +89,7 @@ Documentation sources may be suggested based on package files in your repo. This
![Add documentation form](/img/docs-form.png)
### Through global configuration
### In a configuration file
For bulk documentation site adds or edits, we recommend editing your global configuration file directly. Documentation sites are stored in an array within `docs` in your global configuration, as follows:

View file

@ -4,13 +4,13 @@ title: Prompt files
Prompt files provide a convenient way to standardize common patterns and share a collection of LLM prompts with your team. They make it easy to build and use these prompts.
On the [hub](../../hub/getting-started.md), prompt files are stored within [prompt blocks](../../hub/blocks/block-types.md#prompts), which show up as [slash commands](../slash-commands.mdx) in Chat. Visit the hub to [explore prompts](https://hub.continue.dev/explore/prompts) or [create your own](https://hub.continue.dev/new?type=block&block=rules).
Prompt files can also be stored within your project's root directory as `.prompt` files. See below.
## Quick start
<!-- :::tip[Prompt library]
To assist you in getting started, [we've curated a small library of `.prompt` files](https://github.com/continuedev/prompt-file-examples). We encourage community contributions to this repository, so please consider opening up a pull request with your own prompts!
::: -->
Below is a quick example of setting up a prompt file to de
Below is a quick example of setting up a prompt file:
1. Create a folder called `.continue/prompts` at the top level of your workspace (or you can use the button in the UI by typing @, selecting "Prompt Files", and selecting "New Prompt File").
2. Add a file called `rails.prompt` to this folder.

View file

@ -3,11 +3,19 @@ description: Learn how to customize the system prompt with a `.continuerules` fi
keywords: [rules, .continuerules, system, prompt, message]
---
# `.continuerules`
# Rules
You can create a project-specific system message by adding a `.continuerules` file to the root of your project. This file is raw text and its contents will be inserted into the system message for all chat requests. Rules are not used for autocomplete.
Rules are used to provide instructions to **chat** models. They are inserted into the system message for all chat requests. Rules are _only_ used during Chat, they are not used for autocomplete or other roles.
## Simple Examples
## Hub `rules` blocks
Rules can be added to an Assistant on the Continue Hub. Explore available rules [here](https://hub.continue.dev/explore/rules), or [create your own](https://hub.continue.dev/new?type=block&block=rules) in the Hub.
## `.continuerules`
You can create a project-specific system message by adding a `.continuerules` file to the root of your project. This file is raw text and its full contents will be used as rules.
### Simple Examples
- If you want concise answers:

View file

@ -11,6 +11,8 @@ Tools allow Continue to take action in your IDE and beyond (when you give permis
- [Anthropic](./model-providers/top-level/anthropic.mdx) - see recommended models [here](https://docs.anthropic.com/en/docs/build-with-claude/tool-use#choosing-a-model).
- [Ollama](./model-providers/top-level/ollama.mdx) - see recommended models [here](https://ollama.com/search?c=tools).
- [OpenAI](./model-providers/top-level/openai.mdx)
- [Gemini](./model-providers/top-level/gemini.mdx)
To use tools, click on the icon in the input toolbar like below.
@ -24,7 +26,11 @@ To let you balance speed and safety, each tool can be set to 1 of 3 modes:
### Custom tools
Currently custom tools can be configured using the [Model Context Protocol](https://modelcontextprotocol.io/introduction), a standard proposed by Anthropic to unify prompts, context, and tool use. Read their [quickstart](https://modelcontextprotocol.io/quickstart) to learn how to set up a local server and then configure your [config](../customize/deep-dives/configuration.md) like this:
Currently custom tools can be configured using the [Model Context Protocol](https://modelcontextprotocol.io/introduction), a standard proposed by Anthropic to unify prompts, context, and tool use.
MCP Servers can be added to hub Assistants using `mcpServers` blocks. You can explore available MCP server blocks [here](https://hub.continue.dev/explore/mcp).
To set up your own MCP server, read the [MCP quickstart](https://modelcontextprotocol.io/quickstart) and then [create an `mcpServers` block](https://hub.continue.dev/new?type=block&block=mcpServers) or add the following to your [config file](../customize/deep-dives/configuration.md):
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">

View file

@ -7,6 +7,16 @@ keywords: [assistants, usage, use, guide]
# Use an Assistant
Assistants
Once you know which assistant you want to use, you’ll need to
You can explore pre-made [here](https://hub.continue.dev/explore/assistants)
1. Click “Add assistant” on its page
2. Add any required inputs (e.g. secrets)
3. Select “Save” in assistant sidebar on the right hand side
[SCREENSHOT OF ASSISTANT READY TO BE SAVED]
After this, you can then go to your IDE extension and begin using the assistant.
[SCREENSHOT OF VS CODE WITH ASSISTANT READY TO BE USED]
You can explore pre-made assistants [here](https://hub.continue.dev/explore/assistants)

View file

@ -9,56 +9,44 @@ sidebar_label: Types
## Models
Models are blocks that let you specify Large Language Models (LLMs) and other deep learning models to be used in different affordances like Chat, Autocomplete, Edit, @Codebase, and @Docs.
Models are blocks that let you specify Large Language Models (LLMs) and other deep learning models to be used for various roles in the Continue Extension, like Chat, Autocomplete, Edit, or @Codebase, and @Docs embeddings. Explore available models on [the hub](https://hub.continue.dev/explore/models).
Models can have one or more of the following roles depending on its capabilities: chat, edit, autocomplete, embed, rerank, and apply.
View [`models`](../../yaml-reference.md#models) in the YAML Reference for more details.
Continue supports [many model providers](../../customize/model-providers), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, DeepSeek, and more. Models can have one or more of the following roles depending on its capabilities, including `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`. Read more about roles [here](../../customize/model-types). View [`models`](../../yaml-reference.md#models) in the YAML Reference for more details.
## Context
Context are blocks that define a context provider which can be referenced in Chat with @ to pull in data from external sources like Jira or Confluence.
Context blocks define a context provider which can be referenced in Chat with `@` to pull in data from external sources such as files and folders, a URL, Jira or Confluence, and Github issues, among others. [Explore context provider blocks](https://hub.continue.dev/explore/context) on the hub.
The list of possible context providers can be found here. If you want to create a custom context provider, you will want to use the "http" context provider to call a server that hosts your own code and returns the context requested as described here.
View [`context`](../../yaml-reference.md#context) in the YAML Reference for more details.
Learn more about context providers [here](../../yaml-reference.md#context), and check out [this guide](../../customize/tutorials/build-your-own-context-provider.md) to creating your own custom context provider. The `config.yaml` spec for context can be found [`here`](../../yaml-reference.md#context).
## Docs
Docs are blocks that point to documentation sites, which @Docs indexes locally for you to reference as context when using Chat. Read more in the [@Docs deep dive](../../customize/deep-dives/docs.mdx)
Docs are blocks that point to documentation sites, which will be indexed locally and then can be referenced as context using @Docs in Chat. [Explore docs](https://hub.continue.dev/explore/docs) on the hub.
View [`docs`](../../yaml-reference.md#docs) in the YAML Reference for more details.
## Tools
View [`tools`](../../yaml-reference.md#tools) in the YAML Reference for more details.
Learn more in the [@Docs deep dive](../../customize/deep-dives/docs.mdx), and view [`docs`](../../yaml-reference.md#docs) in the YAML Reference for more details.
## MCP Servers
Model Context Protocol (MCP) servers are blocks that define a standard way of building and sharing tools for language models.
Model Context Protocol (MCP) is a standard way of building and sharing tools for language models. MCP Servers can be defined in `mcpServers` blocks. [Explore MCP Servers](https://hub.continue.dev/explore/mcp) on the hub.
You can read more about MCP in Continue here and MCP in general here.
View [`mcpServers`](../../yaml-reference.md#mcpservers) in the YAML Reference for more details.
Learn more in the [Tools deep dive](../../customize/tools.mdx), and view [`mcpServers`](../../yaml-reference.md#mcpservers) in the YAML Reference for more details.
## Rules
Rules are blocks with instructions that your custom AI code assistant will always follow (i.e. its contents will be inserted into the system message for all Chat requests)
Rules blocks are instructions that your custom AI code assistant will always keep in mind - the contents of rules are inserted into the system message for all Chat requests. [Explore rules](https://hub.continue.dev/explore/rules) on the hub.
You can read more in the [.continuerules deep dive](../../customize/deep-dives/rules.md). The one difference is that when you use rules in an assistant created on the hub, the rules are not placed in the root of your project.
View [`rules`](../../yaml-reference.md#rules) in the YAML Reference for more details.
Learn more in the [rules deep dive](../../customize/deep-dives/rules.md), and view [`rules`](../../yaml-reference.md#rules) in the YAML Reference for more details.
## Prompts
Prompts are blocks with pre-written model prompts that let you invoke complex instructions with a slash command in Chat.
Prompts blocks are pre-written, reusable prompts that can be referenced at any time during chat. They are especially useful as context for repetitive and/or complex tasks. [Explore prompts](https://hub.continue.dev/explore/prompts) on the hub.
You can read more in the prompt files deep dive. There are a couple differences when you use prompts in an assistant created on the hub:
Prompt blocks have the same syntax as [prompt files](../../customize/deep-dives/prompt-files.md). There are two important differences between prompt blocks and prompt files:
1. the prompts are not placed in the `.continue/prompts` project directory and
2. you can only use prompts via slash commands.
1. Prompt blocks are stored within `config.yaml` rather than `.continue/prompts` in project directory and
2. Prompt blocks only show up as slash commands in Chat, not under the `@Prompt Files` context provider
View [`prompts`](../../yaml-reference.md#prompts) in the YAML Reference for more details.
The `config.yaml` spec for `prompts` can be found [here](../../yaml-reference.md#prompts).
## Data

View file

@ -1,5 +1,5 @@
---
title: Continue Hub
title: The Hub
description: Getting Started with the Continue Hub
keywords: [continue, hub, resolution]
sidebar_label: Getting Started
@ -9,4 +9,4 @@ sidebar_label: Getting Started
![Continue Hub](/img/hub/models-page.png)
[Continue Hub](https://hub.continue.dev) makes it simple to create custom AI code [assistants](./assistants/intro.md), providing a registry for defining, managing, and sharing assistant [building blocks](./blocks/introduction.md). Assistants can contain several types of blocks, including models, rules, context, prompts, docs, data destinations, and MCP servers. Continue Hub offers [organization and admin governance](./governance/org-permissions.md) features, as well as a centralized place to store and configure [secrets](./secrets/secret-types.md) like API keys.
Continue's [hub](https://hub.continue.dev) makes it simple to create custom AI code [assistants](./assistants/intro.md), providing a registry for defining, managing, and sharing assistant [building blocks](./blocks/introduction.md). Assistants can contain several types of blocks, including models, rules, context, prompts, docs, data destinations, and MCP servers. Continue Hub offers [organization and admin governance](./governance/org-permissions.md) features, as well as a centralized place to store and configure [secrets](./secrets/secret-types.md) like API keys.

View file

@ -6,6 +6,6 @@ keywords: [governance, enterprise, tier]
# Enterprise Tier
Everything in the solo tier and teams tier are available in the enterprise tier. In addition, enterprises can manage users from a single, central directory with Single Sign-On (SSO) via any IdP supporting SAML or OIDC, and admins can see a detailed trail of account activity with Audit Logs. There is also onboarding and training to roll out to your entire organization . You can reach out to the sales team at Continue to discuss this here.
Everything in the solo tier and teams tier are available in the enterprise tier. In addition, enterprises can manage users from a single, central directory with Single Sign-On (SSO) via any IdP supporting SAML or OIDC, and admins can see a detailed trail of account activity with Audit Logs. There is also onboarding and training to roll out to your entire organization (will be set up with the sales team at Continue).
[Point to pricing page]
[**View tier pricing**](https://hub.continue.dev/pricing)

View file

@ -5,3 +5,15 @@ keywords: [governance, models, add-on]
---
# Models Add-On
The models add-on allows you to use a variety of frontier models for a flat monthly fee. It’s designed to cover the usage of most developers.
You can use the following Chat / Edit / Apply official model blocks (up to 500 requests): Claude Sonnet 3.5 from Anthropic, [ADD ALL MODEL BLOCKS AND LINK]
You can use the following Autocomplete official model blocks (up to 10,000 requests): Codestral from Mistral, [ADD ALL MODEL BLOCKS AND LINK]
<!-- HUB_TODO - best experience bundle -->
You can use the following Embeddings / Rerank (regular Continue usage): Voyage AI, [ADD ALL MODEL BLOCKS AND LINK]
[**View pricing here**](https://hub.continue.dev/pricing)

View file

@ -6,8 +6,13 @@ keywords: [governance, organization, org, permissions]
# Organization Permissions
There are two types of organization roles:
Admin: users who can invite members, delete the organization, etc.
Member: users who can use approved blocks and assistants
Users can have the following roles within an organization:
Their exact permissions depend on if you are on the solo tier, teams tier, or enterprise tier.
1. Admin: users who can invite members, delete the organization, etc.
2. Member: users who can use approved blocks and assistants
Exact user permissions depend on the organization tier:
- [Solo](./solo-tier.md)
- [Teams](./teams-tier.md)
- [Enterprise](./enterprise-tier.md)

View file

@ -10,4 +10,4 @@ The solo tier allows individuals to create and share custom AI code assistants,
Blocks and assistants across both your profile and any organizations can have one of the following visibilities: public (Anyone on the internet), organization (Only visible to members of your organization), or private (Only you and admins of your organization). Since you only use user secrets on the solo tier, they will be sent to the IDE extensions alongside the config.yaml. This allows requests to APIs to be made directly from the IDE extensions.
[Point to pricing page]
[**View tier pricing**](https://hub.continue.dev/pricing)

View file

@ -10,4 +10,4 @@ Everything in the solo tier is available in the teams tier. Organization admins
Org secrets are assumed to not be shareable with the user (e.g. you are a team lead who wants to give team members access to models without passing out API keys). In this case, the LLM requests are proxied through Continue (api.continue.dev or the on-premise proxy) and the secrets are never sent to the IDE extensions. The data plane can be separated from the control with an on-premises proxy that can be deployed in your own cloud and ensure no code or other sensitive data leaves your environment.
[Point to pricing page]
[**View tier pricing**](https://hub.continue.dev/pricing)

View file

@ -7,15 +7,15 @@ sidebar_label: Resolution
# Secret Resolution
hub.continue.dev comes with built-in secrets management built in. There are multiple levels of secrets depending on how users want them to be shared and their organization tier.
[User or Org secrets](./secret-types.md) should be used depending on how users want them to be shared within their organization and assistants.
For individual users and solo tier organizations, secret resolution is done in the following order:
For individual users and solo tier organizations, secret resolution is performed in the following order:
1. User models add-on (if subscribed)
2. User secrets (if set)
3. Free trial (if below limit)
For teams tier and enterprise tier organizations, secret resolution is done in the following order:
For teams tier and enterprise tier organizations, secret resolution is performed in the following order:
1. Org models add-on (if subscribed)
2. Org secrets (if set)

View file

@ -7,10 +7,12 @@ sidebar_label: Types
# Secret Types
The Continue Hub comes with secrets management built-in. Secrets are values such as API keys or endpoints that can be shared between assistants and within organizations.
## User secrets
User secrets are defined by the user for themselves. This means that user secrets are available only to the user that created them. User secrets are assumed to be safe for the user to know, so they will be sent to the IDE extensions alongside the config.yaml. This allows requests to APIs to be made directly from the IDE extensions. You can use user secrets on solo, teams, and enterprise tiers.
User secrets are defined by the user for themselves. This means that user secrets are available only to the user that created them. User secrets are assumed to be safe for the user to know, so they will be sent to the IDE extensions alongside the Assistant `config.yaml`. This allows API requessts to be made directly from the IDE extensions. You can use user secrets on solo, teams, and enterprise tiers. User secrets can be managed [here](https://hub.continue.dev/settings/secrets) in the hub.
## Org secrets
Org secrets are defined by admins for their organization. Org secrets are available to anyone in the organization to use with assistants in that organization. Org secrets are assumed to not be shareable with the user (e.g. you are a team lead who wants to give team members access to models without passing out API keys). In this case, the LLM requests are proxied through Continue (api.continue.dev or the on-premise proxy) and the secrets are never sent to the IDE extensions. You can only use org secrets on teams and enterprise tiers.
Org secrets are defined by admins for their organization. Org secrets are available to anyone in the organization to use with assistants in that organization. Org secrets are assumed to not be shareable with the user (e.g. you are a team lead who wants to give team members access to models without passing out API keys). In this case, the LLM requests are proxied through Continue (api.continue.dev or the on-premise proxy) and the secrets are never sent to the IDE extensions. You can only use org secrets on teams and enterprise tiers. If you are an admin, you can manage your Organization's secrets from the org settings page.

View file

@ -23,14 +23,12 @@ Config YAML replaces `config.json`. View the **[Migration Guide](/yaml-migration
The top-level properties in the `config.yaml` configuration file are:
- [`name`](#name) (**required**)
<!-- - [`packages`](#packages) -->
- [`version`](#version) (**required**)
- [`models`](#models)
- [`context`](#context)
- [`rules`](#rules)
- [`prompts`](#prompts)
- [`docs`](#docs)
<!-- - [`tools`](#tools) -->
- [`mcpServers`](#mcpservers)
- [`data`](#data)
@ -195,25 +193,6 @@ docs:
---
<!-- ### `tools`
The `tools` section specifies external tools or APIs that can be used within your configuration.
**Properties:**
- `url` (**required**): The URL of the tool's API or endpoint.
- `apiKey`: An optional API key required by the tool.
**Example:**
```yaml title="config.yaml"
tools:
- url: https://api.exampletool.com/tool1
apiKey: <YOUR_API_KEY>
```
--- -->
### `mcpServers`
<!-- TODO is this correct? -->
@ -335,9 +314,14 @@ mcpServers:
- dev
env:
PORT: "3000"
data:
-
- name: My Private Company
destination: https://mycompany.com/ingest
schema: 0.2.0
level: noCode
events:
- autocomplete
- chatInteraction
```
### Fully deprecated settings