Skip to content

Commit a1f27b3

Browse files
authored
1 parent 52ee726 commit a1f27b3

File tree

3 files changed

+7
-164
lines changed

3 files changed

+7
-164
lines changed

docs/cody/capabilities/chat.mdx

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
<p className="subtitle">Chat with the AI assistant in your code editor or via the Sourcegraph web app to get intelligent suggestions, code autocompletions, and contextually aware answers.</p>
44

5-
<Tabs>
6-
<Tab title="Free/Pro">
75
You can **chat** with Cody to ask questions about your code, generate code, and edit code. By default, Cody has the context of your open file and entire repository, and you can use `@` to add context for specific files, symbols, remote repositories, or other non-code artifacts.
86

97
You can do it from the **chat** panel of the supported editor extensions ([VS Code](/cody/clients/install-vscode), [JetBrains](/cody/clients/install-jetbrains), [Visual Studio](/cody/clients/install-visual-studio)) or in the [web](/cody/clients/cody-with-sourcegraph) app.
@@ -103,71 +101,3 @@ If Cody's answer isn't helpful, you can try asking again with a different contex
103101
- **Public knowledge only**: Cody will not use your own code files as context; it’ll only use knowledge trained into the base model.
104102
- **Current file only**: Re-run the prompt again using the current file as context.
105103
- **Add context**: Provides @-mention context options to improve the response by explicitly including files, symbols, remote repositories, or even web pages (by URL).
106-
</Tab>
107-
<Tab title="Enterprise Starter/Enterprise">
108-
109-
The enhanced chat experience input can be accessed from the chat panel of the supported editor extensions (VS Code and JetBrains) and the web app. It combines light code search, AI-powered chat, and agentic capabilities into a unified developer interface. It's designed to accelerate the entire developer workflow by providing a more intuitive and powerful way to interact with code.
110-
111-
## Prerequisites
112-
113-
To use Cody's chat, you'll need the following:
114-
115-
- [Sourcegraph Enterprise Starter](https://sourcegraph.com/pricing) or [Enterprise account](https://sourcegraph.com/pricing)
116-
- A supported editor extension [VS Code](https://marketplace.visualstudio.com/items?itemName=sourcegraph.cody-ai), [JetBrains](https://plugins.jetbrains.com/plugin/9682-cody-ai-coding-assistant-with-autocomplete--chat) installed or use via Web app
117-
118-
## Key features
119-
120-
The enhanced chat experience includes everything in the Free plan, plus the following:
121-
122-
## Smart search integration
123-
124-
The smart search integration enhances Sourcegraph's chat experience by providing lightweight code search capabilities directly within the chat interface. This feature simplifies developer workflows by offering quick access to code search without leaving the chat environment.
125-
126-
The integration delivers personalized search results ranked by your contribution history, with frequently accessed repositories appearing higher in results. Users can view code snippets with relevant context and open files directly in their editor.
127-
128-
Search results automatically become available as context for follow-up queries, with flexible controls for selecting which results to include. While optimized for keyword-style queries and searching across a few repositories, this integration complements rather than replaces the full [Code Search](/code-search) product, which remains the recommended tool for comprehensive enterprise-wide code search.
129-
130-
## Context-aware responses
131-
132-
Search results generated through smart search integration can be automatically used as context for follow-up queries. Here's what happens with each scenario:
133-
134-
### Search responses
135-
136-
* Search results can be used directly as context for follow-up queries
137-
* Users can select which search results to include as context using checkboxes
138-
* By default, all search results are added as context
139-
* A context chip shows the number of search results being used (e.g., "10 code search results")
140-
* Users can remove the context chip if they don't want to use it for follow-ups
141-
142-
### Chat responses
143-
144-
<Callout type="info">Executing terminal commands for additional context is an experimental feature.</Callout>
145-
146-
* Performs background searches for context
147-
* Retrieves full context from files, symbols, remote repos, and web pages
148-
* Can execute terminal commands (with permission) for additional context
149-
* Creates personal notes usable across chat sessions
150-
* Pulls in [OpenCtx](/cody/capabilities/openctx) providers for additional context
151-
152-
## How does chat work?
153-
154-
The following is a general walkthrough of the chat experience:
155-
156-
1. The user enters a query in the chat interface
157-
2. By default a user gets a chat response for the query
158-
3. To get integrated search results, toggle to **Run as search** from the drop-down selector or alternatively use `Cmd+Opt+Enter` (macOS)
159-
4. For search:
160-
- Displays ranked results with code snippets
161-
- Shows personalized repository ordering
162-
- Provides checkboxes to select context for follow-ups
163-
5. For chat:
164-
- Delivers AI-powered responses
165-
- Can incorporate previous search results as context
166-
6. Users can:
167-
- Switch between search and chat modes
168-
- Click on results to open files in their editor
169-
- Ask follow-up questions using selected context
170-
- Use `@` to add context for specific files, symbols, remote repositories, or other non-code artifacts
171-
172-
</Tab>
173-
</Tabs>

docs/cody/capabilities/query-types.mdx

Lines changed: 0 additions & 94 deletions
This file was deleted.

src/data/redirects.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6811,6 +6811,13 @@ const redirectsData = [
68116811
permanent: true
68126812
},
68136813

6814+
//Rmv Query types permanentaly:https://sourcegraph.com/docs/cody/capabilities/query-types
6815+
{
6816+
source: "/cody/capabilities/query-types",
6817+
destination: "/cody/capabilities/chat",
6818+
permanent: true
6819+
},
6820+
68146821

68156822
];
68166823

0 commit comments

Comments
 (0)