-
Notifications
You must be signed in to change notification settings - Fork 319
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
up #1678
up #1678
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Changes requested. Reviewed everything up to 0b073d4 in 2 minutes and 20 seconds
More details
- Looked at
2234
lines of code in24
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. py/core/main/api/v3/chunks_router.py:333
- Draft comment:
Theprint
statement here is likely for debugging purposes and should be removed in production code to avoid unnecessary console output. - Reason this comment was not posted:
Marked as duplicate.
2. py/core/main/api/v3/chunks_router.py:335
- Draft comment:
Ensure that changing the filter key fromid
tochunk_id
is intentional and aligns with the application's logic. This change affects how chunks are identified for deletion. - Reason this comment was not posted:
Comment did not seem useful.
Workflow ID: wflow_VzUAE8zcJ2DSyDqi
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
) | ||
print("vector_delete_results = ", vector_delete_results) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the print
statement used for debugging purposes to avoid unnecessary console output in production.
@@ -98,7 +98,7 @@ async def _make_streaming_request( | |||
if line.strip(): # Ignore empty lines | |||
try: | |||
yield json.loads(line) | |||
except json.JSONDecodeError: | |||
except: # json.JSONDecodeError: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Catch specific exceptions like json.JSONDecodeError
instead of using a bare except
to avoid masking other potential issues.
from r2r import GenerationConfig, Message, R2RClient, R2RException | ||
|
||
|
||
def assert_http_error(condition, message): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This helper function is duplicated. Consider importing and reusing the existing implementation instead.
- function
assert_http_error
(runner_collections.py)
Important
This PR enhances testing for chunks, collections, documents, and retrieval, updates configurations, and fixes core logic issues.
chunks
,collections
,documents
, andretrieval
inrunner_chunks.py
,runner_collections.py
,runner_documents.py
, andrunner_retrieval.py
..github/actions
.r2r_azure.toml
to useopenai/text-embedding-3-small
for embeddings.pyproject.toml
version to3.3.9
.delete_chunk()
inchunks_router.py
.retrieval_router.py
.transform_chunk_id_to_id
logic inmanagement_service.py
to handle nested filters.multi_search.py
to useazure/gpt-4o
model.graph_search
ingraph.py
to improve filter handling.This description was created by for 0b073d4. It will automatically update as commits are pushed.