-
Notifications
You must be signed in to change notification settings - Fork 903
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): fix list docs #1094
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 8367d6a in 8 seconds
More details
- Looked at
12
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. agents-api/agents_api/queries/docs/list_docs.py:38
- Draft comment:
Ensure that the added conditionAND d.index = e.index
in the SQL join does not introduce logical errors or performance issues. Verify thatindex
is a valid field for joining and that it aligns with the intended logic of the query. - Reason this comment was not posted:
Confidence changes required:50%
The PR adds a condition to the SQL query to join on bothdoc_id
andindex
. This change seems to be intended to ensure that the join is more precise by matching both fields. However, it's important to ensure that this change does not introduce any logical errors or performance issues.
Workflow ID: wflow_mYihH7nWVqyP4wFo
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
PR Code Suggestions ✨Explore these optional code suggestions:
|
CI Feedback 🧐(Feedback updated until commit ba4ec16)A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
add a test for this please @Ahmad-mtos |
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 ba4ec16 in 10 seconds
More details
- Looked at
12
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. agents-api/agents_api/queries/docs/get_doc.py:32
- Draft comment:
Ensure that all non-aggregated columns are included in theGROUP BY
clause to prevent unexpected results. The currentGROUP BY
clause seems correct, but verify that the aggregation logic aligns with the intended data structure. - Reason this comment was not posted:
Confidence changes required:50%
The query usesarray_agg
to aggregate content, indices, and embeddings. However, theGROUP BY
clause should include all non-aggregated columns to ensure correct aggregation. The currentGROUP BY
clause seems correct, but it's important to ensure that the aggregation logic aligns with the intended data structure.
Workflow ID: wflow_IUEMLInPIPnPVyCF
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
PR Type
Bug fix
Description
Fixed a join condition in
list_docs
query.Improved query logic for better data accuracy.
Changes walkthrough 📝
list_docs.py
Fix join condition in `list_docs` query
agents-api/agents_api/queries/docs/list_docs.py
docs_embeddings
.index
field is matched in the join.Important
Fix join condition in
list_docs.py
to ensure accurate data retrieval by matchingindex
field.list_docs.py
by addingd.index = e.index
to the query.index
field in join withdocs_embeddings
.This description was created by for ba4ec16. It will automatically update as commits are pushed.