[FR] Improve AI search, avoid hitting maximum context length
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Funcionalidade
- Clareza
- Precisa de esclarecimento
- Status de atividade
- Estagnada
- Stack de tecnologia
- typescript
Direção de pesquisa
No files, tests, or implementation entry points are named. Start by locating the Ask/global search implementation and how it builds model context, then determine how repository selection and context-limit failures are handled. Done would require a defined strategy that lets global searches answer file-location questions without exceeding the model context limit.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
I think the AI search ("Ask") feature could be improved a lot. Right now, you can quickly select one repository or do a global search with one click. It's quite tedious to select individual repos and if you have a global question it's often unclear which repositories you should select in the first place. Sourcebot' most powerful feature is to be able to search globally.
nfortunately, it's too easy to hit the maximum context size of a model. I think the AI feature should be a bit more intelligent on what it does. For example, one of the most frequent questions we have is: "Where do I find...."? For example: "Where do I find the arrow icon image file?" etc.
In this case, it should perhaps first find out which files might be affected at all (PNG, JPEG, SVG). Then it should search over filenames and paths only and see whether it could answer the question that way. Perhaps it should even automatically try to segment the search and search iteratively over chunks of e.g. 16 repositories. I think a lot more stuff could be done to make this feature work better. Right now most global searches end without an answer due to context limits.
- Linguagem predominante
- TypeScript
- Estrelas
- 3.9k
- Forks
- 374
- Merge médio
- 21h 18min
- PRs com merge (30d)
- 39
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de sourcebot-dev/sourcebot
-
bug triage needed
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
sourcebot-dev/sourcebot#1681 · 1 comentário ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
sourcebot-dev/sourcebot#1633 ·
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
sourcebot-dev/sourcebot#1384 · 4 comentários ·
-
ask_sb bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
sourcebot-dev/sourcebot#1137 · 4 comentários ·
-
bug triage needed
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 48/100
sourcebot-dev/sourcebot#1661 · 1 comentário ·
Todas as issues de sourcebot-dev/sourcebot
Issues semelhantes
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 88/100
motiondivision/motion#3849 ·
-
Add: S Play Event HD Abertacheck:passed streams:add
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
-
LiteLLM proxy response_cost (x-litellm-response-cost) is never applied to ChatModelOutput.cost Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
i-am-bee/beeai-framework#1697 · 1 reação ·
-
Support bun dedupe Abertaenhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
antfu/node-modules-inspector#214 ·