sourcegraph/internal/search/codycontext
Stefan Hengl 92373c305a
context: detect if README is required (#63199)
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
2024-06-14 10:30:26 +02:00
..
BUILD.bazel Context: detect symbol names in query (#62976) 2024-05-30 11:52:01 -07:00
job_test.go Context: detect symbol names in query (#62976) 2024-05-30 11:52:01 -07:00
job.go Context: detect symbol names in query (#62976) 2024-05-30 11:52:01 -07:00
query_parser_test.go context: detect if README is required (#63199) 2024-06-14 10:30:26 +02:00
query_parser.go context: detect if README is required (#63199) 2024-06-14 10:30:26 +02:00
stop_words.go Context: remove key words from stopwords (#61663) 2024-04-09 08:22:19 -07:00
string_set.go Rename 'keyword' patterntype to 'codyContext' (#59529) 2024-01-12 10:30:43 -08:00
term_utils.go context: handle qualified symbol names (#62142) 2024-04-25 10:24:57 +02:00