LAION-AI / LAION-AI/Open-Assistant
Handle edge case search queries better
Open
@jsugg is already working on this.
Since May 30, 2023.
backend
good first issue
- Dominant language
- Python
- Stars
- 37.4k
- Forks
- 3.3k
- PR merge metrics
- No merged PRs in 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.