mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:31:54 +00:00
This adds a thin layer to expand a query with keywords which are not explicitly mentioned. As a first application, we detect if a README should be returned. See /vscode/src/chat/chat-view/context.ts for how a similar logic is implemented in the client. Test plan: - new and updated unit tests - Cody web client: I tested the "what does this codebase do?" for `sourcegraph/sourcegraph` and `sourcegraph/zoekt` as selected context. For Zoekt we return `/README.md` in the top 3, which leads to a good answer. The Sourcegraph repo has many README files and our ranking ranks other README files higher, for example if they contain the string "README", which leads to a vague answer. Addresses SPLF-94 |
||
|---|---|---|
| .. | ||
| BUILD.bazel | ||
| job_test.go | ||
| job.go | ||
| query_parser_test.go | ||
| query_parser.go | ||
| stop_words.go | ||
| string_set.go | ||
| term_utils.go | ||