-
Notifications
You must be signed in to change notification settings - Fork 930
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 -> main #1047
dev -> main #1047
Conversation
fix(memory-store): fix vector search function
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
CI Failure Feedback 🧐(Checks updated until commit 1e7cd34)
✨ 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
|
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 1e7cd34 in 1 minute and 53 seconds
More details
- Looked at
186
lines of code in7
files - Skipped
0
files when reviewing. - Skipped posting
8
drafted comments based on config settings.
1. agents-api/agents_api/autogen/Docs.py:153
- Draft comment:
The change in confidence range from 0.0 to -1.0 seems incorrect. Confidence values should logically be between 0 and 1. This change might introduce logical errors in the application. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable:
While traditionally confidence values are often between 0 and 1, in search contexts negative confidence values can be meaningful - they could represent inverse correlations or distance metrics. Since this is a generated file from an OpenAPI spec, the change was likely intentional to support a specific search functionality. Without knowing the search implementation details, we can't definitively say this is wrong.
I might be missing important implementation details about how confidence is used in the search system. The comment author could be right that negative confidences could cause issues.
However, since this is a generated file from an API spec, the change was likely intentional and tested. Without strong evidence of an actual problem, we shouldn't block this change.
Delete the comment since we don't have strong evidence that the change is incorrect, and the change was likely intentional given it's in a generated file.
2. agents-api/agents_api/autogen/Docs.py:222
- Draft comment:
The change in confidence range from 0.0 to -1.0 seems incorrect. Confidence values should logically be between 0 and 1. This change might introduce logical errors in the application. - Reason this comment was not posted:
Marked as duplicate.
3. integrations-service/integrations/autogen/Docs.py:153
- Draft comment:
The change in confidence range from 0.0 to -1.0 seems incorrect. Confidence values should logically be between 0 and 1. This change might introduce logical errors in the application. - Reason this comment was not posted:
Marked as duplicate.
4. integrations-service/integrations/autogen/Docs.py:222
- Draft comment:
The change in confidence range from 0.0 to -1.0 seems incorrect. Confidence values should logically be between 0 and 1. This change might introduce logical errors in the application. - Reason this comment was not posted:
Marked as duplicate.
5. typespec/docs/models.tsp:129
- Draft comment:
The change in confidence range from 0.0 to -1.0 seems incorrect. Confidence values should logically be between 0 and 1. This change might introduce logical errors in the application. - Reason this comment was not posted:
Marked as duplicate.
6. typespec/docs/models.tsp:150
- Draft comment:
The change in confidence range from 0.0 to -1.0 seems incorrect. Confidence values should logically be between 0 and 1. This change might introduce logical errors in the application. - Reason this comment was not posted:
Marked as duplicate.
7. typespec/tsp-output/@typespec/openapi3/openapi-1.0.0.yaml:2987
- Draft comment:
The change in confidence range from 0.0 to -1.0 seems incorrect. Confidence values should logically be between 0 and 1. This change might introduce logical errors in the application. - Reason this comment was not posted:
Marked as duplicate.
8. typespec/tsp-output/@typespec/openapi3/openapi-1.0.0.yaml:3070
- Draft comment:
The change in confidence range from 0.0 to -1.0 seems incorrect. Confidence values should logically be between 0 and 1. This change might introduce logical errors in the application. - Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_PbcICD3nFRRH9KAy
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
PR Type
Bug fix, Enhancement
Description
Adjusted
confidence
range to allow values from -1 to 1.Updated vector search logic for improved accuracy and flexibility.
Disabled the
translate-readme
GitHub action.Refactored SQL and TypeSpec models for consistency with new
confidence
range.Changes walkthrough 📝
Docs.py
Adjust `confidence` range in API models
agents-api/agents_api/autogen/Docs.py
confidence
range to allow values from -1 to 1.Docs.py
Adjust `confidence` range in integration models
integrations-service/integrations/autogen/Docs.py
confidence
range to allow values from -1 to 1.models.tsp
Update TypeSpec models for new confidence range
typespec/docs/models.tsp
confidence
range to allow values from -1 to 1.search_docs.py
Minor formatting cleanup in search_docs router
agents-api/agents_api/routers/docs/search_docs.py
translate-readme.yml
Disable translate-readme GitHub action
.github/workflows/translate-readme.yml
translate-readme
GitHub action.000022_vector_search.up.sql
Update vector search SQL logic and confidence validation
memory-store/migrations/000022_vector_search.up.sql
confidence
range validation to allow -1 to 1.confidence
range.openapi-1.0.0.yaml
Update OpenAPI spec for new confidence range
typespec/tsp-output/@typespec/openapi3/openapi-1.0.0.yaml
confidence
values from -1 to1.
confidence
.Important
Adjusted confidence range for document search requests and updated vector search SQL function.
HybridDocSearchRequest
andVectorDocSearchRequest
inDocs.py
andmodels.tsp
.search_by_vector
function in000022_vector_search.up.sql
to handle confidence range [-1.0, 1.0] and adjusted search threshold calculation.on.push.paths
trigger intranslate-readme.yml
.This description was created by
for 1e7cd34. It will automatically update as commits are pushed.