LAION-AI/Open-Assistant
Handle edge case search queries better
Aberta
#3.259 aberto em 29 de mai. de 2023
backendgood first issue
Métricas do repositório
- Stars
- (37.363 estrelas)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
We should do some preprocessing of search_query here to prevent errors in edge cases, e.g. where the query ends with an operator like & or |.
Words separated by only a space and no operator also have no effect currently, we could modify these such that & is inserted automatically.
List of valid operations I am aware of:
&
|
<->
!
The syntax also allows combinations like &! and groupings via parantheses.