-
Notifications
You must be signed in to change notification settings - Fork 894
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
dev->switch-to-pg #1010
dev->switch-to-pg #1010
Conversation
Signed-off-by: Diwank Singh Tomer <[email protected]>
feat(agents-api): Add missing columns to indices
feat: Add prometheus summary for cozo queries
fix: Fix and refactor metrics
feat(agents-api): Added mmr search and get history system tool + configurable doc search params in chat.py
fix: bug fixs for github action generate changelog
Update CHANGELOG.md
x/memory-store: revert docker cozo
fix(agents-api): Fix None-valued `passed_settings` from overriding agent's settings in `prompt` step
…nsitions fix(agents-api): Allow consecutive `finish_branch` transitions
fix(agents-api): Miscellaneous fixes in `sessions`
docs: updated hooks
fix(agents-api): Bug fixes in sessions
fix(agents-api): Session & system tool fixes
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
chore(agents-api): Add `/healthz` endpoint
Backtick in the colab link URL (decompiles as UTF8 %60 in the URL) This created an invalid path to the Google Colab File just a single backtick edit. that's it ⛵
Signed-off-by: Diwank Singh Tomer <[email protected]>
Update README.md
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.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
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 a166d86 in 1 minute and 29 seconds
More details
- Looked at
2580
lines of code in68
files - Skipped
1
files when reviewing. - Skipped posting
8
drafted comments based on config settings.
1. .github/workflows/generate-changelog.yml:11
- Draft comment:
Consider removing 'ref: dev' if the workflow is intended to run on the default branch to avoid potential errors if the 'dev' branch is not available. - Reason this comment was not posted:
Confidence changes required:50%
The code uses 'ref: dev' in the checkout step, which might not be necessary if the workflow is intended to run on the default branch. This could lead to confusion or errors if the 'dev' branch is not available.
2. .github/workflows/generate-changelog.yml:15
- Draft comment:
Check if 'gh auth login' is necessary, as GITHUB_TOKEN might already be available in the environment, making this step redundant. - Reason this comment was not posted:
Confidence changes required:50%
The 'Setup GitHub CLI' step uses 'gh auth login' which might not be necessary if the GITHUB_TOKEN is already available in the environment. This could be redundant.
3. .github/workflows/generate-changelog.yml:45
- Draft comment:
Ensure all necessary dependencies are listed here to avoid runtime errors. - Reason this comment was not posted:
Confidence changes required:50%
The 'Install dependencies' step installs 'PyYAML' and 'julep', but it's not clear if these are the only dependencies needed. This could lead to runtime errors if other dependencies are required.
4. .github/workflows/generate-changelog.yml:51
- Draft comment:
Ensure 'pr_data' is set as an output in the 'collect_prs' step to avoid logical errors. - Reason this comment was not posted:
Comment did not seem useful.
5. .github/workflows/generate-changelog.yml:67
- Draft comment:
Ensure 'success()' correctly handles cases where no PRs are found to avoid unnecessary PR creation attempts. - Reason this comment was not posted:
Confidence changes required:50%
The 'Create Pull Request' step uses 'success()' which might not correctly handle the case where no PRs are found. This could lead to unnecessary PR creation attempts.
6. agents-api/agents_api/activities/utils.py:373
- Draft comment:
Consider removing or implementing the 'delete_session' case to avoid confusion or errors. - Reason this comment was not posted:
Confidence changes required:50%
The 'get_handler' function has a commented-out case for 'delete_session'. This could lead to confusion or errors if this functionality is needed.
7. agents-api/agents_api/models/agent/create_agent.py:60
- Draft comment:
Ensure all instances of 'increase_counter' are replaced with 'query_metrics_update' to maintain consistency and avoid errors. This applies to other files as well. - Reason this comment was not posted:
Confidence changes required:50%
The 'query_metrics_update' decorator is used in multiple files, replacing 'increase_counter'. This is a consistent change, but ensure that all instances are correctly updated to avoid errors.
8. agents-api/agents_api/models/chat/gather_messages.py:28
- Draft comment:
Document the reasoning behind using 'recall_options.limit * 3' for vector and hybrid modes when MMR is enabled to avoid confusion. - Reason this comment was not posted:
Confidence changes required:50%
The 'get_search_fn_and_params' function in 'gather_messages.py' uses 'recall_options.limit * 3' for vector and hybrid modes when MMR is enabled. This could lead to unexpected behavior if not properly documented.
Workflow ID: wflow_d2qRaksHNk5n0QSq
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
PR Type
Enhancement, Bug fix, Tests, Documentation
Description
Introduced MMR search and configurable parameters for enhanced document retrieval.
Refactored metrics with Prometheus Summary and Histogram for improved observability.
Added health check endpoint and integrated it into the API gateway.
Enhanced changelog generation with a new script and GitHub Action workflow.
Changes walkthrough 📝
16 files
Added MMR search and configurable parameters for document retrieval
Added changelog generation script with Julep API integration
Refactored metrics with Prometheus Summary and Histogram
Added health check endpoint for API
Added GitHub Action for changelog generation
Updated RecallOptions model with new search parameters
Integrated RecallOptions into session creation
Added recall options handling and improved error handling
Updated document search logic with new indices
Enhanced session update with recall options
Added router for health check endpoint
Added transformation for session retrieval
Enhanced session listing with updated transformations
Updated session data preparation logic
Enhanced session patching with updated transformations
Updated RecallOptions model with additional fields
2 files
Added HTML template for changelog header
Updated changelog with recent changes
1 files
Integrated health check endpoint into API gateway
1 files
Updated tests for chat routes with new recall options
49 files