-
Notifications
You must be signed in to change notification settings - Fork 902
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
feat(agents-api): Added mmr search and get history system tool + configurable doc search params in chat.py #940
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.
No issues flagged.
Standard Input can make mistakes. Check important info.
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.
👍 Looks good to me! Reviewed everything up to 79ab127 in 1 minute and 23 seconds
More details
- Looked at
617
lines of code in13
files - Skipped
0
files when reviewing. - Skipped posting
3
drafted comments based on config settings.
1. agents-api/agents_api/activities/execute_system.py:6
- Draft comment:
The removal of theHTTPException
import might cause issues if it's used elsewhere in the file. Please ensure it's not needed before removing. - Reason this comment was not posted:
Confidence changes required:50%
The removal of the import statement forHTTPException
inexecute_system.py
seems unnecessary unless it's confirmed thatHTTPException
is not used anywhere in the file. This could lead to runtime errors ifHTTPException
is used but not imported.
2. agents-api/agents_api/workflows/task_execution/transition.py:17
- Draft comment:
The removal oftemporal_activity_after_retry_timeout
import might cause issues if it's used elsewhere in the file. Please ensure it's not needed before removing. - Reason this comment was not posted:
Confidence changes required:50%
The removal oftemporal_activity_after_retry_timeout
import intransition.py
should be verified to ensure it's not used elsewhere in the file. This could lead to runtime errors if it's used but not imported.
3. agents-api/tests/test_execution_workflow.py:17
- Draft comment:
The removal ofasync_cozo_client
import might cause issues if it's used elsewhere in the file. Please ensure it's not needed before removing. - Reason this comment was not posted:
Confidence changes required:50%
The removal ofasync_cozo_client
import intest_execution_workflow.py
should be verified to ensure it's not used elsewhere in the file. This could lead to runtime errors if it's used but not imported.
Workflow ID: wflow_sDQMpi5ThgRD1FVQ
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
79ab127
to
8f38603
Compare
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.
👍 Looks good to me! Incremental review on 8f38603 in 19 seconds
More details
- Looked at
617
lines of code in13
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. agents-api/agents_api/models/chat/gather_messages.py:30
- Draft comment:
The use ofmatch
requires Python 3.10 or later. Ensure the project supports this version or handle this with if-elif statements for compatibility with older versions. - Reason this comment was not posted:
Confidence changes required:50%
Theget_search_fn_and_params
function uses a match-case statement, which is only available in Python 3.10 and later. This could cause compatibility issues if the project supports older Python versions.
2. agents-api/agents_api/models/chat/gather_messages.py:147
- Draft comment:
Ensurequery_embedding
is notNone
before using it, especially whenrecall_options.mode
istext
. This could lead to issues if not handled properly. - Reason this comment was not posted:
Confidence changes required:50%
Thegather_messages
function usesquery_embedding
without checking if it isNone
. This could lead to issues ifrecall_options.mode
is set totext
, wherequery_embedding
is not set.
Workflow ID: wflow_O0AjUzsUlOZbMoQc
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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.
👍 Looks good to me! Incremental review on e2ea7f3 in 21 seconds
More details
- Looked at
36
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. agents-api/agents_api/activities/utils.py:311
- Draft comment:
Unused importget_history_query
. Consider removing it to clean up the code. - Reason this comment was not posted:
Confidence changes required:50%
The import ofget_history
inutils.py
is not used anywhere in the file. This is unnecessary and should be removed to keep the code clean.
Workflow ID: wflow_r915ItKBShuYc4Td
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
@ellipsis-dev review this |
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 5ce27f5 in 1 minute and 27 seconds
More details
- Looked at
633
lines of code in13
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. agents-api/agents_api/activities/execute_system.py:6
- Draft comment:
TheHTTPException
import was removed, but it is still used in the file. This will cause a NameError. Please re-add the import. - Reason this comment was not posted:
Comment looked like it was already resolved.
2. agents-api/agents_api/models/chat/gather_messages.py:153
- Draft comment:
Ensuresearch_fn
is notNone
before calling it to prevent a potential TypeError. - Reason this comment was not posted:
Comment did not seem useful.
Workflow ID: wflow_ulhXqtedQJgO4LN6
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.
@ellipsis-dev generate a summary for this PR |
Pull Request SummaryThis pull request introduces several key updates:
|
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. Incremental review on 11a98f9 in 92 minutes and 20 seconds
More details
- Looked at
470
lines of code in6
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. memory-store/Dockerfile:20
- Draft comment:
Remove the commented-out RUN command if it's no longer needed:
# RUN cargo install --git https://github.com/cozo-community/cozo.git --branch f/publish-crate --rev 592f49b --profile release -F graph-algo -F jemalloc -F io-uring -F storage-new-rocksdb -F malloc-usable-size --target x86_64-unknown-linux-gnu cozo-ce-bin
- Reason this comment was not posted:
Confidence changes required:50%
In the Dockerfile, the commented-out RUN command should be removed if it's no longer needed. Additionally, the Dockerfile should specify the version of the base image to ensure reproducibility.
2. scripts/generate_changelog.py:174
- Draft comment:
Wrapos.remove('pr_data.json')
in a try-except block to handle potential file not found errors:
try:
os.remove('pr_data.json')
logging.info("Deleted pr_data.json file")
except FileNotFoundError:
logging.warning("pr_data.json file not found")
- Reason this comment was not posted:
Confidence changes required:50%
In the Python script, the use ofos.remove('pr_data.json')
should be wrapped in a try-except block to handle potential file not found errors gracefully.
Workflow ID: wflow_YAReB9rKwXX3bN8v
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.
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.
👍 Looks good to me! Incremental review on 5829b6e in 14 seconds
More details
- Looked at
11
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
0
drafted comments based on config settings.
Workflow ID: wflow_QO6FPjZSZIl3kpyi
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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.
👍 Looks good to me! Incremental review on 84a1a95 in 9 seconds
More details
- Looked at
15
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. .github/workflows/generate-changelog.yml:1
- Draft comment:
The PR description mentions removing unused imports and variables, but this is not reflected in the diff provided. Please ensure that all changes are included in the PR. - Reason this comment was not posted:
Confidence changes required:50%
The PR description mentions removing unused imports and variables, but this is not reflected in the diff provided. I will need to explore the codebase to verify this claim.
Workflow ID: wflow_sZRDG4gvedxEiTWg
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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.
👍 Looks good to me! Incremental review on d43cc8b in 10 seconds
More details
- Looked at
68
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. .github/workflows/generate-changelog.yml:2
- Draft comment:
Consider re-adding therun-name
key for better logging and tracking of workflow runs. - Reason this comment was not posted:
Confidence changes required:33%
Therun-name
key was removed, but it might be useful for logging and tracking purposes.
Workflow ID: wflow_ft73rBGvygzhVeGy
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Important
Adds MMR search with configurable parameters, updates documentation, and introduces changelog generation workflow.
gather_messages.py
with configurablemmr_strength
.get_search_fn_and_params()
to select search function based onRecallOptions
.limit
,lang
,metadata_filter
,alpha
,confidence
.BaseDocSearchRequest
andRecallOptions
inDocs.py
andSessions.py
..github/workflows/generate-changelog.yml
.This description was created by for d43cc8b. It will automatically update as commits are pushed.