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

fix retrieval #1669

Merged
merged 1 commit into from
Dec 6, 2024
Merged

fix retrieval #1669

merged 1 commit into from
Dec 6, 2024

Conversation

emrgnt-cmplxty
Copy link
Contributor

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

Important

Add "custom" parameter to search function and handle empty search results in retrieval.py and search.py.

  • Behavior:
    • Add "custom" parameter to client.retrieval.search() in retrieval.py to specify search type.
    • Handle empty graph_search_results and web_search_results in as_dict() in search.py by returning empty lists.
  • Versioning:
    • Increment version from 3.3.4 to 3.3.5 in pyproject.toml.

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

@emrgnt-cmplxty emrgnt-cmplxty marked this pull request as ready for review December 6, 2024 18:49
@emrgnt-cmplxty emrgnt-cmplxty merged commit 8e71fb8 into main Dec 6, 2024
1 of 4 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.

👍 Looks good to me! Reviewed everything up to e85378e in 10 seconds

More details
  • Looked at 44 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. py/cli/commands/retrieval.py:84
  • Draft comment:
    Consider using the SearchMode enum instead of the hardcoded string "custom" for better maintainability and to avoid potential errors from typos.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The change in retrieval.py adds a hardcoded string "custom" to the search function call. This might be intended to specify a search mode, but it should be verified if this is the correct approach. The SearchSettings class has a method get_default that uses modes like "basic", "advanced", and "custom". It would be better to use an enum or a constant for these modes to avoid hardcoding strings.

Workflow ID: wflow_t9TrlaagqyrjTwsZ


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

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