Adds an experimental command /symf
that provides an indexed keyword search capability
#728
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds an experimental
/symf
command to the Cody sidebar./symf
usessymf
, a CLI that implements LLM-enabled keyword search. MVP for #583Use
symf
:go get github.com/sourcegraph/symf/cmd/symf@latest
The first time
![](https://private-user-images.githubusercontent.com/1646931/261823786-e7441242-5f3f-4a6a-8351-03aa76faeea0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg1Mjc2MzIsIm5iZiI6MTcxODUyNzMzMiwicGF0aCI6Ii8xNjQ2OTMxLzI2MTgyMzc4Ni1lNzQ0MTI0Mi01ZjNmLTRhNmEtODM1MS0wM2FhNzZmYWVlYTAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MTZUMDg0MjEyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjMzMjMyNWMyNGZjNWY2OTgyZWI5MDYwMzE0YjlmZmViYTExYWQ1MGM0NjgxMGEyNjEwZWQwN2M1MzM1MjNjNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Cw9ZUS9xuRE0mJIzZP6LuUYKvB4g4P8g7a4-ZA75zG4)
/symf
is used for a given repository, it will need to build an index, so you'll see a message like this:An alert will appear when the index is finished building:
![](https://private-user-images.githubusercontent.com/1646931/261823805-9e978933-fd07-4e38-adde-2cabff22d0a8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg1Mjc2MzIsIm5iZiI6MTcxODUyNzMzMiwicGF0aCI6Ii8xNjQ2OTMxLzI2MTgyMzgwNS05ZTk3ODkzMy1mZDA3LTRlMzgtYWRkZS0yY2FiZmYyMmQwYTgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MTZUMDg0MjEyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OGNjZDkxMmRhNTIwNzBlN2FiZDUwZTVhZjNmYTdjMTcwZjEyOGQxY2NiZmQ2YzQwNDFhNjg0ODYxODQwMmNjZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.piQY_mJABTFqf3GnDWU25jkjfiAzeCZowNqJ2XlWIrk)
Comments
The command is experimental and requires manual steps (installing the binary and setting the config fields) at the moment. It's intended for internal use to test out the quality of the search results within the Cody UI.
Currently, the following languages are supported by
symf
:The next milestone is to make this a viable replacement for
/search
. This will require:Test plan
Command is experimental only at the moment.