You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For repositories without embeddings, the LLM reranker was disabled in #1722 as it added significant latency to all chat/commands/edits.
We should still investigate how we can still rerank results if we don't already have them ranked.
Some thoughts:
If, in a world with app-less embeddings, embeddings are so easily enabled for users, do we need to invest time in supporting cases where we don't have them (Probably)
Are there alternative, quicker, ways to rerank results?
Can we use code intelligence? E.g. # symbols in code snippet that are also included in selected code
Distance to current file, measuring directory relevance
Other heuristics?
The text was updated successfully, but these errors were encountered:
Part of #1544
Part of #1464
## Description
The LLM reranker adds a significant amount of latency to reranking any
fetched context. This applies to all commands, chat and edits. The
latency is typically between 2-5 seconds.
This PR just disables the reranker for now.
I think this is worth doing as:
- The added latency from the reranker is not worth the possible benefit
right now. It still can sometimes rerank poorly and doesn't provide
enough value to justify waiting that long.
- Context doesn't have a constant value, in many cases context will
provide little value (e.g. simple fixups) in some cases, like chat,
context would provide a lot more value. We don't have a way of
determining that right now, so we're often adding lots of latency for no
good reason.
I created an issue here: #1721
to evaluate a different or improved approach. Possible details there on
how we could improve this.
## Test plan
On a repository without embeddings, run:
- Chat
- Commands
- Edits
Review results and context included.
This issue is marked as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed automatically in 5 days.
Description
For repositories without embeddings, the LLM reranker was disabled in #1722 as it added significant latency to all chat/commands/edits.
We should still investigate how we can still rerank results if we don't already have them ranked.
Some thoughts:
The text was updated successfully, but these errors were encountered: