-
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
X/migration fix: Fixed migrations and docs search route #1026
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
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 e588162 in 22 seconds
More details
- Looked at
76
lines of code in5
files - Skipped
0
files when reviewing. - Skipped posting
3
drafted comments based on config settings.
1. agents-api/agents_api/queries/docs/search_docs_by_embedding.py:39
- Draft comment:
The docstring mentionsconfidence (float)
, but the type hint isint | float
. Update the docstring to reflect the correct type. - Reason this comment was not posted:
Confidence changes required:50%
The change fromconfidence: float
toconfidence: int | float
is not reflected in the docstring, which still mentionsconfidence (float)
. This should be updated for consistency and clarity.
2. agents-api/agents_api/queries/docs/search_docs_hybrid.py:49
- Draft comment:
The docstring mentionsconfidence (float)
, but the type hint isint | float
. Update the docstring to reflect the correct type. - Reason this comment was not posted:
Confidence changes required:50%
The change fromconfidence: float
toconfidence: int | float
is not reflected in the docstring, which still mentionsconfidence (float)
. This should be updated for consistency and clarity.
3. agents-api/tests/test_docs_routes.py:72
- Draft comment:
Thecontent
field is expected to be a list here, but it was posted as a string. Ensure consistency in thecontent
field format. - Reason this comment was not posted:
Confidence changes required:50%
The test for deleting a document initially posts a document withcontent
as a string, but the subsequent GET request expectscontent
to be a list. This inconsistency should be addressed.
Workflow ID: wflow_Ay9DUBj0xOWgR4an
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
PR Code Suggestions ✨Explore these optional code suggestions:
|
PR Type
Bug fix, Tests
Description
Fixed type annotation for
confidence
parameter in search functions.Updated test to reflect changes in document content format.
Added migration scripts to fix unique constraint on
tools
table.Improved documentation and search route functionality.
Changes walkthrough 📝
search_docs_by_embedding.py
Update type annotation for `confidence` parameter
agents-api/agents_api/queries/docs/search_docs_by_embedding.py
confidence
parameter to supportint |
float
.search_docs_hybrid.py
Update type annotation for `confidence` parameter
agents-api/agents_api/queries/docs/search_docs_hybrid.py
confidence
parameter to supportint |
float
.test_docs_routes.py
Update test for document content format
agents-api/tests/test_docs_routes.py
000021_fix_toolname_contraint.down.sql
Add migration script to revert unique constraint
memory-store/migrations/000021_fix_toolname_contraint.down.sql
tools
table.developer_id
.000021_fix_toolname_contraint.up.sql
Add migration script to update unique constraint
memory-store/migrations/000021_fix_toolname_contraint.up.sql
tools
table.developer_id
in the new unique constraint.