-
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
fix(agents-api, memory-store): Add migration for delete cascade + search docs fixes #1023
Conversation
…s_task`` foreign key
…ngs and content + Fix confidence issue
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:
|
CI Failure Feedback 🧐
✨ CI feedback usage guide:The CI feedback tool (
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:
where Configuration options
See more information about the |
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 e1b406c in 1 minute and 48 seconds
More details
- Looked at
194
lines of code in10
files - Skipped
0
files when reviewing. - Skipped posting
4
drafted comments based on config settings.
1. agents-api/agents_api/queries/docs/search_docs_by_embedding.py:77
- Draft comment:
Consider updating the function's documentation to reflect the change in howconfidence
is used (i.e.,1.0 - confidence
). This will help maintain clarity for future developers. - Reason this comment was not posted:
Confidence changes required:50%
The change fromconfidence
to1.0 - confidence
in thesearch_docs_by_embedding
function is a logical change that should be reflected in the function's documentation or comments to avoid confusion for future developers.
2. agents-api/agents_api/queries/docs/search_docs_hybrid.py:94
- Draft comment:
Consider updating the function's documentation to reflect the change in howconfidence
is used (i.e.,1.0 - confidence
). This will help maintain clarity for future developers. - Reason this comment was not posted:
Confidence changes required:50%
The change fromconfidence
to1.0 - confidence
in thesearch_docs_hybrid
function is a logical change that should be reflected in the function's documentation or comments to avoid confusion for future developers.
3. agents-api/agents_api/queries/docs/get_doc.py:46
-
Draft comment:
This function is identical to the existingtransform_list_docs
. Consider using that function instead to avoid duplication. -
function
transform_list_docs
(list_docs.py) -
Reason this comment was not posted:
Comment was on unchanged code.
4. agents-api/agents_api/queries/docs/list_docs.py:54
-
Draft comment:
This function is identical to the existingtransform_get_doc
. Consider reusing that function instead of duplicating the code. -
function
transform_get_doc
(get_doc.py) -
Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_I4zB8AHZkoRwOyhd
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
PR Type
Bug fix, Enhancement
Description
Added cascading delete behavior to
fk_executions_task
foreign key inmemory-store
.Updated confidence default value to 0 in multiple search request models.
Fixed transformation logic for content and embeddings in
get_doc
andlist_docs
.Adjusted confidence calculation in hybrid and embedding-based search queries.
Changes walkthrough 📝
6 files
Updated confidence default value in search request models
Updated confidence default value in search request models
Added migration to remove cascading delete behavior
Added migration to enable cascading delete behavior
Updated confidence default value in TypeSpec models
Updated confidence default value in OpenAPI spec
4 files
Fixed content and embeddings transformation logic
Fixed content and embeddings transformation logic
Adjusted confidence calculation in embedding-based search
Adjusted confidence calculation in hybrid search
Important
Adds migration for cascading deletes in
executions
and updates document search confidence handling.000020_executions_task_cascade.up.sql
to implement cascading deletes forexecutions
table foreign keyfk_executions_task
.000020_executions_task_cascade.down.sql
to revert cascading delete changes.confidence
to0
inHybridDocSearchRequest
andVectorDocSearchRequest
inDocs.py
andmodels.tsp
.confidence
calculation insearch_docs_by_embedding.py
andsearch_docs_hybrid.py
to use1.0 - confidence
.transform_get_doc()
andtransform_list_docs()
inget_doc.py
andlist_docs.py
by removing single-item extraction logic.This description was created by for e1b406c. It will automatically update as commits are pushed.