The Code Search Action in Glean allows users to search through their deployment’s GitHub or GitLab code repositories directly from Glean’s interface. This functionality is designed to assist with various code-related tasks, such as:
Debugging Errors: A user can search for recent code changes that might have introduced errors into a specific component. The tool will look through recent commits and pull requests to identify potential causes and summarize them.
Example: “What recent changes could have caused errors in runtime configs?” The tool might identify PRs that addressed configuration errors and suggest reviewing those changes.
Feature Implementation Status: A user can inquire about the implementation status of a specific feature. The tool can identify if the feature has been implemented, locate the documentation, and even provide instructions on enabling it.
Example: “Is indexing of code content from GitHub files enabled?” The agent would confirm if the feature is active and outline the steps to enable it.
Code Implementation Guidance: A user, unsure where to start with implementing a new feature, can get guidance on which files to modify based on past similar changes.
Example: “Where can I add a new endpoint in QE?” The tool would search for similar past implementations and provide sample code snippets and file locations to get started.
Configure the code search connector by entering search queries in one of two ways:
Define Fixed Queries Manually
Write a Plain Text Prompt for Glean to Generate Queries From
Test the setup in a controlled environment to ensure that the Code Search Action performs as expected. After successful testing, deploy it for use by all intended users.
The Code Search Action in Glean allows users to search through their deployment’s GitHub or GitLab code repositories directly from Glean’s interface. This functionality is designed to assist with various code-related tasks, such as:
Debugging Errors: A user can search for recent code changes that might have introduced errors into a specific component. The tool will look through recent commits and pull requests to identify potential causes and summarize them.
Example: “What recent changes could have caused errors in runtime configs?” The tool might identify PRs that addressed configuration errors and suggest reviewing those changes.
Feature Implementation Status: A user can inquire about the implementation status of a specific feature. The tool can identify if the feature has been implemented, locate the documentation, and even provide instructions on enabling it.
Example: “Is indexing of code content from GitHub files enabled?” The agent would confirm if the feature is active and outline the steps to enable it.
Code Implementation Guidance: A user, unsure where to start with implementing a new feature, can get guidance on which files to modify based on past similar changes.
Example: “Where can I add a new endpoint in QE?” The tool would search for similar past implementations and provide sample code snippets and file locations to get started.
Configure the code search connector by entering search queries in one of two ways:
Define Fixed Queries Manually
Write a Plain Text Prompt for Glean to Generate Queries From
Test the setup in a controlled environment to ensure that the Code Search Action performs as expected. After successful testing, deploy it for use by all intended users.