Skip to content
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

Merged
merged 2 commits into from
Dec 10, 2024
Merged

up #1678

merged 2 commits into from
Dec 10, 2024

Conversation

emrgnt-cmplxty
Copy link
Contributor

@emrgnt-cmplxty emrgnt-cmplxty commented Dec 10, 2024

Important

This PR enhances testing for chunks, collections, documents, and retrieval, updates configurations, and fixes core logic issues.

  • Testing:
    • Added new integration tests for chunks, collections, documents, and retrieval in runner_chunks.py, runner_collections.py, runner_documents.py, and runner_retrieval.py.
    • Removed old test actions for CLI and SDK in .github/actions.
  • Configuration:
    • Updated r2r_azure.toml to use openai/text-embedding-3-small for embeddings.
    • Updated pyproject.toml version to 3.3.9.
  • Core Changes:
    • Fixed off-by-one error in delete_chunk() in chunks_router.py.
    • Added error handling for streaming responses in retrieval_router.py.
    • Modified transform_chunk_id_to_id logic in management_service.py to handle nested filters.
    • Updated multi_search.py to use azure/gpt-4o model.
    • Refactored graph_search in graph.py to improve filter handling.

This description was created by Ellipsis for 0b073d4. It will automatically update as commits are pushed.

@emrgnt-cmplxty emrgnt-cmplxty marked this pull request as ready for review December 10, 2024 06:05
@emrgnt-cmplxty emrgnt-cmplxty merged commit d3ae925 into main Dec 10, 2024
1 of 19 checks passed
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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 in 24 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:
    The print 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 from id to chunk_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)
Copy link
Contributor

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:
Copy link
Contributor

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):
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant