Skip to content

Commit 1df444a

Browse files
committed
Update query types documentation with new demos and content
- Update the subtitle and content for the "Query Types" page to focus on Sourcegraph chat instead of the omnibox - Add new video demos for the Symbol Search, File Search, String Literal Search, and Error Lookups features - Refine the content and examples for each query type to provide a more comprehensive overview
1 parent fbead65 commit 1df444a

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

docs/cody/chat/query-types.mdx

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Query Types
22

3-
<p className="subtitle">This page lists the all the query types that will return search results with the Sourcegraph omnibox.</p>
3+
<p className="subtitle">This page lists the all the query types that will return search results with Sourcegraph chat.</p>
44

55
## Symbol Search
66

@@ -16,7 +16,9 @@ It enables developers to explore and understand symbol usage patterns through a
1616

1717
### Demo
1818

19-
🔴 Waiting for UI to update 🔴
19+
<video width="100%" controls>
20+
<source src="https://storage.googleapis.com/sourcegraph-assets/Docs/chat-query-types-symbol-search-20250124.mp4" type="video/mp4" />
21+
</video>
2022

2123
## File Search
2224

@@ -29,41 +31,38 @@ This two-step approach is particularly powerful when you need to analyze pattern
2931
### Try it
3032

3133
1. Type `package.json`
32-
2. Above the results, you will find the message "Query review selected a code search response."
34+
2. Check the checkbox next to the results you want to analyze
3335
3. Follow up with `List all the dependencies used across these package.json files`
3436

3537
### Demo
3638

37-
🔴 Draft, replace with final version and upload to GCP 🔴
38-
3939
<video width="100%" controls>
40-
<source src="https://p21.p4.n0.cdn.zight.com/items/BlumxXBE/55c5afa3-dee3-4b6c-bfd9-d3802360db2f.mp4?v=ec57e9a8c8e4a3d3af88635fcaf796d7" type="video/mp4" />
40+
<source src="https://storage.googleapis.com/sourcegraph-assets/Docs/chat-query-types-file-search-20250124.mp4" type="video/mp4" />
4141
</video>
4242

4343
## String Literal Search
4444

4545
<p className="subtitle">String literal search is a query type or workflow that allows you to find exact text matches by enclosing your search term in quotes, ensuring precise matching instead of keyword-based results.</p>
4646

47-
When you enclose text in quotes like `"// Scheme for Authorization header"` or `"unrecognized HTTP Authorization request"`, Sourcegraph performs an exact match search rather than keyword matching. After finding relevant files, you can select specific ones to analyze and ask follow-up questions about their contents - creating an interactive workflow that combines precise search with contextual code analysis.
48-
49-
🔴 Temp image 🔴
50-
![](https://p21.p4.n0.cdn.zight.com/items/8LuW5obg/895c40c8-82ff-4f42-ab21-c500ab3ce0d5.png?v=23fd39830504212ba80e2f51a31a0a4b)
47+
When you enclose text in quotes like `""authInfo: async provider =>""`, Sourcegraph performs an exact match search rather than keyword matching. After finding relevant files, you can select specific ones to analyze and ask follow-up questions about their contents - creating an interactive workflow that combines precise search with contextual code analysis.
5148

52-
### Try it out
49+
### Try it
5350

54-
1. Start a new chat with `"// Scheme for Authorization header"`
51+
1. Start a new chat with `"authInfo: async provider =>"`
5552
2. Select a subset of the search results which include usage for the string
5653
3. Follow up with `Summarize the contents`
5754

5855
### Demo
5956

60-
🔴 Video coming soon 🔴
57+
<video width="100%" controls>
58+
<source src="https://storage.googleapis.com/sourcegraph-assets/Docs/chat-query-types-string-literal-search-20250124.mp4" type="video/mp4" />
59+
</video>
6160

6261
## Error Lookups
6362

64-
<p className="subtitle">Error Lookups is a conversational workflow for the Sourcegraph omnibox that helps developers understand error messages by providing plain-English explanations of when and why specific errors occur in their codebase and external service calls.</p>
63+
<p className="subtitle">Error Lookups is a conversational workflow for Sourcegraph chat that helps developers understand error messages by providing plain-English explanations of when and why specific errors occur in their codebase and external service calls.</p>
6564

66-
Developers can use Error Lookups to understand error messages occurring in their codebase. When encountering an error, especially from external services or dependencies, developers can use the omnibox to:
65+
Developers can use Error Lookups to understand error messages occurring in their codebase. When encountering an error, especially from external services or dependencies, developers can use chat to:
6766

6867
1. Search for specific error messages across their codebase
6968
2. Select relevant files where the error is thrown or handled
@@ -80,14 +79,12 @@ This approach helps developers make more informed decisions about error handling
8079

8180
### Try it
8281

83-
* Query for `"unsupported value for type filter"`
82+
* Query for `"unsupported platform"`
8483
* Select the file(s) where the error is thrown
8584
* Follow up with "Explain when and why this error is thrown"
8685

8786
### Demo
8887

89-
🔴 Upload video to GCP 🔴
90-
9188
<video width="100%" controls>
92-
<source src="https://p21.p4.n0.cdn.zight.com/items/QwuyA4q7/dda31e22-d3ba-4844-b1d5-95978f2a7b1f.mp4?v=75789259e408c85fa268aa105c974894" type="video/mp4" />
89+
<source src="https://storage.googleapis.com/sourcegraph-assets/Docs/chat-query-types-error-lookups-20250124.mp4" type="video/mp4" />
9390
</video>

0 commit comments

Comments
 (0)