-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
array out of bounds error in retrieval #453
Comments
Can you please post a self-contained reproducible example so I can take a look at it? |
I am able to reproduce the issue if I have an extra space or double space in the the query text. |
This does not fix the bug. I have submitted the fix already with PR#471 |
doberst
added a commit
that referenced
this issue
Mar 1, 2024
fix tokenize whitespace issue (Issue #453)
doberst
added a commit
that referenced
this issue
Mar 16, 2024
fix tokenize whitespace issue (Issue #453)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When making a RAG request to of a semantic query I experienced the following stack trace. I am able to reproduce this.
File "/llmware/llmware/retrieval.py", line 670, in semantic_query
results_dict = self._cursor_to_qr(query, qr_raw, result_count=result_count)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/llmware/llmware/retrieval.py", line 578, in _cursor_to_qr
matches_found = self.locate_query_match(query, raw_qr["text"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/llmware/llmware/retrieval.py", line 1375, in locate_query_match
if core_text[x].lower() == key_term[0].lower():
~~~~~~~~^^^
IndexError: string index out of range
The text was updated successfully, but these errors were encountered: