Merge pull request #2304 from continuedev/pe/docs-update-slash-commands

docs: use correct naming for context providers
This commit is contained in:
Patrick Erichsen 2024-09-18 16:05:42 -07:00 • committed by GitHub
commit bd773f3ef9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 112 additions and 118 deletions

View file

@ -19,27 +19,27 @@ You can include the currently open file as context by pressing `cmd/ctrl + opt +
## Specific file
You can include a specific file in your current workspace as context by typing [`@files`](../customize/context-providers.md#files) and selecting the file.
You can include a specific file in your current workspace as context by typing [`@Files`](../customize/context-providers.md#files) and selecting the file.
## Specific folder
You can include a folder in your current workspace as context by typing [`@directory`](../customize/context-providers.md#folders) and selecting the directory. It [works like `@codebase`](../customize/deep-dives/codebase.md) but only includes the files in the selected directory.
You can include a folder in your current workspace as context by typing [`@Folder`](../customize/context-providers.md#folders) and selecting the directory. It [works like `@Codebase`](../customize/deep-dives/codebase.md) but only includes the files in the selected folder.
## Entire codebase
You can include your entire codebase as context by typing [`@codebase`](../customize/context-providers.md#codebase-retrieval). You can learn about how @codebase works [here](../customize/deep-dives/codebase.md).
You can include your entire codebase as context by typing [`@Codebase`](../customize/context-providers.md#codebase-retrieval). You can learn about how @Codebase works [here](../customize/deep-dives/codebase.md).
## Documentation site
You can include a documentation site as context by typing [`@docs`](../customize/context-providers.md#documentation) and selecting the documentation site. You can learn about how @docs works [here](../customize/deep-dives/docs.md).
You can include a documentation site as context by typing [`@Docs`](../customize/context-providers.md#documentation) and selecting the documentation site. You can learn about how @Docs works [here](../customize/deep-dives/docs.md).
## Terminal contents
You can include the contents of the terminal in your IDE as context by typing [`@terminal`](../customize/context-providers.md#terminal).
You can include the contents of the terminal in your IDE as context by typing [`@Terminal`](../customize/context-providers.md#terminal).
## Git diff
You can include all of the changes you've made to your current branch by typing [`@diff`](../customize/context-providers.md#git-diff).
You can include all of the changes you've made to your current branch by typing [`@Git Diff`](../customize/context-providers.md#git-diff).
## Other context

View file

@ -11,4 +11,4 @@ The model response is then streamed directly back to the sidebar. Each code sect
If you would like to view the exact prompt that is sent to the model during Chat, you can [view this in the prompt logs](troubleshooting.md#llm-prompt-logs).
You can learn more about how `@codebase` works [here](../customize/deep-dives/codebase.md) and `@docs` [here](../customize/deep-dives/docs.md).
You can learn more about how `@Codebase` works [here](../customize/deep-dives/codebase.md) and `@Docs` [here](../customize/deep-dives/docs.md).

View file

@ -7,7 +7,7 @@ sidebar_position: 5
There are a number of different ways to customize Chat
- You can configure [`@codebase`](../customize/deep-dives/codebase.md)
- You can configure [`@Codebase`](../customize/deep-dives/codebase.md)
- You can create your own [custom code RAG](../customize/tutorials/custom-code-rag.md)
- You can configure [`@docs`](../customize/deep-dives/docs.md)
- You can configure [`@Docs`](../customize/deep-dives/docs.md)
- You can [build your own context provider](../customize/tutorials/build-your-own-context-provider.md)

View file

@ -6,7 +6,7 @@ keywords: [context, "@", provider, LLM]
Context Providers allow you to type '@' and see a dropdown of content that can all be fed to the LLM as context. Every context provider is a plugin, which means if you want to reference some source of information that you don't see here, you can request (or build!) a new context provider.
As an example, say you are working on solving a new GitHub Issue. You type '@issue' and select the one you are working on. Continue can now see the issue title and contents. You also know that the issue is related to the files 'readme.md' and 'helloNested.py', so you type '@readme' and '@hello' to find and select them. Now these 3 "Context Items" are displayed inline with the rest of your input.
As an example, say you are working on solving a new GitHub Issue. You type '@Isse' and select the one you are working on. Continue can now see the issue title and contents. You also know that the issue is related to the files 'readme.md' and 'helloNested.py', so you type '@readme' and '@hello' to find and select them. Now these 3 "Context Items" are displayed inline with the rest of your input.
![Context Items](/img/context-provider-example.png)
@ -14,9 +14,9 @@ As an example, say you are working on solving a new GitHub Issue. You type '@iss
To use any of the built-in context providers, open `config.json` and add it to the `contextProviders` list.
### Files
### `@File`
Type '@file' to reference any file in your current workspace.
Reference any file in your current workspace.
```json title="config.json"
{
@ -28,9 +28,9 @@ Type '@file' to reference any file in your current workspace.
}
```
### Code
### `@Code`
Type '@code' to reference specific functions or classes from throughout your project.
Reference specific functions or classes from throughout your project.
```json title="config.json"
{
@ -42,9 +42,9 @@ Type '@code' to reference specific functions or classes from throughout your pro
}
```
### Git Diff
### `@Git Diff`
Type '@diff' to reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing.
Reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing.
```json title="config.json"
{
@ -56,9 +56,9 @@ Type '@diff' to reference all of the changes you've made to your current branch.
}
```
### Terminal
### `@Terminal`
Type '@terminal' to reference the contents of your IDE's terminal.
Reference the contents of your IDE's terminal.
```json title="config.json"
{
@ -70,9 +70,9 @@ Type '@terminal' to reference the contents of your IDE's terminal.
}
```
### Documentation
### `@Docs`
Type `@docs` to index and retrieve snippets from any documentation site.
Reference the contents from any documentation site.
```json title="config.json"
{
@ -84,11 +84,13 @@ Type `@docs` to index and retrieve snippets from any documentation site.
}
```
To learn more, visit `[@docs](customize/deep-dives/docs.md)`.
Note that this will only enable the `@Docs` context provider.
### Open Files
To use it, you need to add a documentation site to your `config.json`. See the [docs](../customize/deep-dives/docs.md) page for more information.
Type '@open' to reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files.
### `@Open`
Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files.
```json title="config.json"
{
@ -103,9 +105,9 @@ Type '@open' to reference the contents of all of your open files. Set `onlyPinne
}
```
### Codebase Retrieval
### `@Codebase`
Type '@codebase' to automatically retrieve the most relevant snippets from your codebase. Read more about indexing and retrieval [here](customize/deep-dives/codebase.md).
Reference the most relevant snippets from your codebase.
```json title="config.json"
{
@ -117,9 +119,11 @@ Type '@codebase' to automatically retrieve the most relevant snippets from your
}
```
### Folders
Read more about indexing and retrieval [here](../customize/deep-dives/codebase.md).
Type '@folder' to use the same retrieval mechanism as '@codebase', but only on a single folder.
### `@Folder`
Uses the same retrieval mechanism as `@Codebase`, but only on a single folder.
```json title="config.json"
{
@ -131,9 +135,9 @@ Type '@folder' to use the same retrieval mechanism as '@codebase', but only on a
}
```
### Exact Search
### `@Search`
Type '@search' to reference the results of codebase search, just like the results you would get from VS Code search. This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep).
Reference the results of codebase search, just like the results you would get from VS Code search.
```json title="config.json"
{
@ -145,9 +149,11 @@ Type '@search' to reference the results of codebase search, just like the result
}
```
### URL
This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep).
Type '@url' and input a URL, then Continue will convert it to a markdown document to pass to the model.
### `@Url`
Reference the markdown converted contents of a given URL.
```json title="config.json"
{
@ -159,9 +165,9 @@ Type '@url' and input a URL, then Continue will convert it to a markdown documen
}
```
### File Tree
### `@Tree`
Type '@tree' to reference the structure of your current workspace. The LLM will be able to see the nested directory structure of your project.
Reference the structure of your current workspace.
```json title="config.json"
{
@ -173,9 +179,9 @@ Type '@tree' to reference the structure of your current workspace. The LLM will
}
```
### Google
### `@Google`
Type '@google' to reference the results of a Google search. For example, type "@google python tutorial" if you want to search and discuss ways of learning Python.
Reference the results of a Google search.
```json title="config.json"
{
@ -190,11 +196,13 @@ Type '@google' to reference the results of a Google search. For example, type "@
}
```
For example, type "@Google python tutorial" if you want to search and discuss ways of learning Python.
Note: You can get an API key for free at [serper.dev](https://serper.dev).
### GitHub Issues
### `@Isse`
Type '@issue' to reference the conversation in a GitHub issue. Make sure to include your own [GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) to avoid being rate-limited:
Reference the conversation in a GitHub issue.
```json title="config.json"
{
@ -215,13 +223,11 @@ Type '@issue' to reference the conversation in a GitHub issue. Make sure to incl
}
```
### GitLab Merge Request
Make sure to include your own [GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) to avoid being rate-limited.
Type `@gitlab-mr` to reference an open MR for this branch on GitLab.
### `@Gitlab Merge Request`
#### Configuration
You will need to create a [personal access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) with the `read_api` scope. then add the following to your configuration:
Reference an open MR for this branch on GitLab.
```json title="config.json"
{
@ -236,6 +242,8 @@ You will need to create a [personal access token](https://docs.gitlab.com/ee/use
}
```
You will need to create a [personal access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) with the `read_api` scope.
#### Using Self-Hosted GitLab
You can specify the domain to communicate with by setting the `domain` parameter in your configurtion. By default this is set to `gitlab.com`.
@ -258,9 +266,9 @@ You can specify the domain to communicate with by setting the `domain` parameter
If you select some code to be edited, you can have the context provider filter out comments for other files. To enable this feature, set `filterComments` to `true`.
### Jira Issues
### `@Jira`
Type '@jira' to reference the conversation in a Jira issue. Make sure to include your own [Atlassian API Token](https://id.atlassian.com/manage-profile/security/api-tokens), or use your `email` and `token`, with token set to your password for basic authentication. If you use your own Atlassian API Token, don't configure your email.
Reference the conversation in a Jira issue.
```json title="config.json"
{
@ -276,6 +284,8 @@ Type '@jira' to reference the conversation in a Jira issue. Make sure to include
}
```
Make sure to include your own [Atlassian API Token](https://id.atlassian.com/manage-profile/security/api-tokens), or use your `email` and `token`, with token set to your password for basic authentication. If you use your own Atlassian API Token, don't configure your email.
#### Jira Datacenter Support
This context provider supports both Jira API version 2 and 3. It will use version 3 by default since
@ -293,8 +303,6 @@ to set the API Version to 2 using the `apiVersion` property.
}
]
}
...
}
```
#### Issue Query
@ -307,36 +315,9 @@ assignee = currentUser() AND resolution = Unresolved order by updated DESC
You can override this query by setting the `issueQuery` parameter.
<!--
Note: We are currently omitting the following providers due to bugs.
See this issue for details: https://github.com/continuedev/continue/issues/1365
-->
### `@Postgres`
<!-- ### Code Outline
Type '@outline' to reference the outline of all currently open files. The outline of a files consists of only the function and class definitions in the file. Supported file extensions are '.js', '.mjs', '.go', '.c', '.cc', '.cs', '.cpp', '.el', '.ex', '.elm', '.java', '.ml', '.php', '.ql', '.rb', '.rs', '.ts'
```json title="config.json"
{ "name": "outline" }
```
### Code Highlights
Type '@highlights' to reference the 'highlights' from all currently open files. The highlights are computed using Paul Gauthier's so-called ['repomap'](https://aider.chat/docs/repomap.html) technique in [Aider Chat](https://github.com/paul-gauthier/aider). Supported file extensions are the same as for '@Outline' (behind the scenes, we use the corresponding tree-sitter grammars for language parsing).
```json title="config.json"
{ "name": "highlights" }
``` -->
### PostgreSQL
Type `@postgres` to reference the schema of a table, and some sample rows. A dropdown will appear, allowing you to select a specific table, or all tables.
The only required settings are those for creating the database connection: `host`, `port`, `user`, `password`, and `database`.
By default, the `schema` filter is set to `public`, and the `sampleRows` is set to 3. You may unset the schema if you want to include tables from all schemas.
[Here is a short demo.](https://github.com/continuedev/continue/pull/859)
Reference the schema of a table, and some sample rows
```json title="config.json"
{
@ -357,9 +338,15 @@ By default, the `schema` filter is set to `public`, and the `sampleRows` is set
}
```
### Database Tables
The only required settings are those for creating the database connection: `host`, `port`, `user`, `password`, and `database`.
Type `@database` to reference table schemas you can use the drop-down or start typeing table names based off of your configuration. Configuration supports multiple databases, allowing you to specify various connection details for PostgreSQL, MySQL, SQLite. Each connection should include a unique name, the connection_type (e.g., postgres, sqlite), and the necessary connection parameters specific to each database type.
By default, the `schema` filter is set to `public`, and the `sampleRows` is set to 3. You may unset the schema if you want to include tables from all schemas.
[Here is a short demo.](https://github.com/continuedev/continue/pull/859)
### `@Database`
Reference table schemas from Sqlite, Postgres, and MySQL databases.
```json title="config.json"
{
@ -393,9 +380,11 @@ Type `@database` to reference table schemas you can use the drop-down or start t
}
```
### Debugger: Local Variables
Each connection should include a unique name, the connection_type (e.g., postgres, sqlite), and the necessary connection parameters specific to each database type.
Type `@locals` to reference the contents of the local variables with top n level (defaulting to 3) of call stack for that thread. A dropdown will appear, allowing you to select a specific thread to see the local variables in that thread.
### `@Locals`
Reference the contents of the local variables in the debugger.
```json title="config.json"
{
@ -410,11 +399,11 @@ Type `@locals` to reference the contents of the local variables with top n level
}
```
### Repository map
Uses the top _n_ levels (defaulting to 3) of the call stack for that thread.
Provides an overview of all files and the call signatures of top-level classes, functions, and methods. This helps the model better understand how a particular piece of code relates to the rest of the codebase.
### `@Repository Map`
This context provider is inpsired by [Aider's repository map](https://aider.chat/2023/10/22/repomap.html).
Reference the outline of your codebase.
```json title="config.json"
{
@ -426,9 +415,13 @@ This context provider is inpsired by [Aider's repository map](https://aider.chat
}
```
### Operating System
Provides an overview of all files and the call signatures of top-level classes, functions, and methods. This helps the model better understand how a particular piece of code relates to the rest of the codebase.
Type `@os` to reference the architecture and platform of your current operating system.
This context provider is inpsired by [Aider's repository map](https://aider.chat/2023/10/22/repomap.html).
### `@Operating System`
Reference the architecture and platform of your current operating system.
```json title="config.json"
{
@ -442,4 +435,4 @@ Type `@os` to reference the architecture and platform of your current operating
### Requesting Context Providers
Not seeing what you want? Create an issue [here](https://github.com/continuedev/continue/issues/new?assignees=TyDunn&labels=enhancement&projects=&template=feature-request-%F0%9F%92%AA.md&title=) to request a new ContextProvider.
Not seeing what you want? Create an issue [here](https://github.com/continuedev/continue/issues/new?assignees=TyDunn&labels=enhancement&projects=&template=feature-request-%F0%9F%92%AA.md&title=) to request a new Context Provider.

View file

@ -3,11 +3,11 @@ description: Talk to your codebase
keywords: [talk, embeddings, reranker, codebase, experimental]
---
# @codebase
# @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.
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.
Here are some common use cases where it can be useful:
@ -19,10 +19,10 @@ Here are some common use cases where it can be useful:
- "Generate a new React component with a date picker, using the same patterns as existing components"
- "Write a draft of a CLI application for this project using Python's argparse"
- "Implement the `foo` method in the `bar` class, following the patterns seen in other subclasses of `baz`.
- Use `@folder` to ask questions about a specific folder, increasing the likelihood of relevant results
- Use `@Folder` to ask questions about a specific folder, increasing the likelihood of relevant results
- "What is the main purpose of this folder?"
- "How do we use VS Code's CodeLens API?"
- Or any of the above examples, but with `@folder` instead of `@codebase`
- Or any of the above examples, but with `@Folder` instead of `@Codebase`
Here are use cases where it is not useful:

View file

@ -4,31 +4,32 @@ keywords: [documentation, indexing, context provider, embeddings, docs]
toc_max_heading_level: 5
---
# @docs
# @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.
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
## Enabling the `@Docs` context provider
To enable the `@docs` context provider, you need to add it to the list of context providers in your `config.json` file.
To enable the `@Docs` context provider, you need to add it to the list of context providers in your `config.json` file.
```json
{
"contextProviders": [
{ "name": "docs" }
...
]
"contextProviders": [
{
"name": "docs"
}
]
}
```
## How It Works
The `@docs` context provider works by crawling specified documentation sites, generating embeddings, and storing them locally for you. This process allows for quick and efficient access to your documentation content.
The `@Docs` context provider works by crawling specified documentation sites, generating embeddings, and storing them locally for you. This process allows for quick and efficient access to your documentation content.
1. We crawl the specified documentation site
2. Generate embeddings for the content
3. Store the embeddings locally on your machine
4. Provide access to the indexed content through the `@docs` context provider
4. Provide access to the indexed content through the `@Docs` context provider
## Pre-indexed Documentation Sites
@ -36,11 +37,11 @@ We offer a selection of pre-indexed documentation sites for popular frameworks a
## Indexing Your Own Documentation
### Through the `@docs` Context Provider
### Through the `@Docs` Context Provider
To add a single documentation site, we recommend using the `@docs` context provider.
To add a single documentation site, we recommend using the `@Docs` context provider.
1. Type `@docs` in the chat panel, hit enter
1. Type `@Docs` in the chat panel, hit enter
2. Type "add" and select the "Add Docs" option
3. Enter the required information into the dialog

View file

@ -7,7 +7,7 @@ sidebar_position: 3
An "embeddings model" is trained to convert a piece of text into a vector, which can later be rapidly compared to other vectors to determine similarity between the pieces of text. Embeddings models are typically much smaller than LLMs, and will be extremely fast and cheap in comparison.
In Continue, embeddings are generated during indexing and then used by [@codebase](../deep-dives/codebase.md) to perform similarity search over your codebase.
In Continue, embeddings are generated during indexing and then used by [@Codebase](../deep-dives/codebase.md) to perform similarity search over your codebase.
## Recommended embedding models

View file

@ -7,7 +7,7 @@ sidebar_position: 4
A "reranking model" is trained to take two pieces of text (often a user question and a document) and return a relevancy score between 0 and 1, estimating how useful the document will be in answering the question. Rerankers are typically much smaller than LLMs, and will be extremely fast and cheap in comparison.
In Continue, reranking is used by [@codebase](../deep-dives/codebase.md) in order to select the most relevant code snippets after vector search.
In Continue, reranking is used by [@Codebase](../deep-dives/codebase.md) in order to select the most relevant code snippets after vector search.
## Recommended reranking models

View file

@ -12,9 +12,9 @@ Slash commands are shortcuts that can be activated by typing '/' and selecting f
To use any of the built-in slash commands, open `config.json` and add it to the `slashCommands` list.
### `/edit`
### `/Edit`
Select code with `ctrl/cmd + L` (VS Code) or `ctrl/cmd + J` (JetBrains), and then type "/edit", followed by instructions for the edit. Continue will stream the changes into a side-by-side diff editor.
Select code with `ctrl/cmd + L` (VS Code) or `ctrl/cmd + J` (JetBrains), and then type `/Edit`, followed by instructions for the edit. Continue will stream the changes into a side-by-side diff editor.
```json title="config.json"
{
@ -27,9 +27,9 @@ Select code with `ctrl/cmd + L` (VS Code) or `ctrl/cmd + J` (JetBrains), and the
}
```
### `/comment`
### `/Comment`
Comment works just like /edit, except it will automatically prompt the LLM to comment the code.
Comment works just like `/Edit`, except it will automatically prompt the LLM to comment the code.
```json title="config.json"
{
@ -42,9 +42,9 @@ Comment works just like /edit, except it will automatically prompt the LLM to co
}
```
### `/share`
### `/Share`
Type "/share" to generate a shareable markdown transcript of your current chat history.
Generate a shareable markdown transcript of your current chat history.
```json title="config.json"
{
@ -60,7 +60,7 @@ Type "/share" to generate a shareable markdown transcript of your current chat h
Use the `outputDir` parameter to specify where you want to the markdown file to be saved.
### `/cmd`
### `/Cmd`
Generate a shell command from natural language and (only in VS Code) automatically paste it into the terminal.
@ -75,7 +75,7 @@ Generate a shell command from natural language and (only in VS Code) automatical
}
```
### `/commit`
### `/Commit`
Shows the LLM your current git diff and asks it to generate a commit message.
@ -90,7 +90,7 @@ Shows the LLM your current git diff and asks it to generate a commit message.
}
```
### `/http`
### `/Http`
Write a custom slash command at your own HTTP endpoint. Set 'url' in the params object for the endpoint you have setup. The endpoint should return a sequence of string updates, which will be streamed to the Continue sidebar. See our basic [FastAPI example](https://github.com/continuedev/continue/blob/74002369a5e435735b83278fb965e004ae38a97d/core/context/providers/context_provider_server.py#L34-L45) for reference.
@ -106,7 +106,7 @@ Write a custom slash command at your own HTTP endpoint. Set 'url' in the params
}
```
### `/issue`
### `/Issue`
Describe the issue you'd like to generate, and Continue will turn into a well-formatted title and body, then give you a link to the draft so you can submit. Make sure to set the URL of the repository you want to generate issues for.
@ -122,7 +122,7 @@ Describe the issue you'd like to generate, and Continue will turn into a well-fo
}
```
### `/so`
### `/So`
The StackOverflow slash command will automatically pull results from StackOverflow to answer your question, quoting links along with its answer.
@ -137,7 +137,7 @@ The StackOverflow slash command will automatically pull results from StackOverfl
}
```
### `/onboard`
### `/Onboard`
The Onboard slash command helps to familiarize yourself with a new project by analyzing the project structure, READMEs, and dependency files. It identifies key folders, explains their purpose, and highlights popular packages used. Additionally, it offers insights into the project's architecture.

View file

@ -1,6 +1,6 @@
# Custom code RAG
While Continue comes with [@codebase](../deep-dives/codebase.md) out of the box, you might wish to set up your own vector database and build a custom retrieval-augmented generation (RAG) system. This can allow you to access code that is not available locally, to index code a single time across all users, or to include custom logic. In this guide, we'll walk you through the steps it takes to build this.
While Continue comes with [@Codebase](../deep-dives/codebase.md) out of the box, you might wish to set up your own vector database and build a custom retrieval-augmented generation (RAG) system. This can allow you to access code that is not available locally, to index code a single time across all users, or to include custom logic. In this guide, we'll walk you through the steps it takes to build this.
## Step 1: Choose an embeddings model

View file

@ -8,7 +8,7 @@ export const selectSlashCommands = createSelector(
return (
slashCommands?.map((cmd) => {
return {
title: `/${cmd.name}`,
title: `/${cmd.name.charAt(0).toUpperCase() + cmd.name.slice(1)}`,
description: cmd.description,
type: "slashCommand" as ComboBoxItemType,
};