-
Notifications
You must be signed in to change notification settings - Fork 382
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
SDK #1631
SDK #1631
Conversation
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.
❌ Changes requested. Reviewed everything up to 3549dcf in 1 minute and 2 seconds
More details
- Looked at
2021
lines of code in14
files - Skipped
0
files when reviewing. - Skipped posting
0
drafted comments based on config settings.
Workflow ID: wflow_Y72LT44wVduTxJX0
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
js/sdk/src/v3/clients/collections.ts
Outdated
async removeUser(options: { | ||
id: string; | ||
userId: string; | ||
}): Promise<WrappedBooleanResponse> { | ||
return this.client.makeRequest( | ||
"DELETE", | ||
`collections/${options.id}/users/${options.userId}`, | ||
`collecstions/${options.id}/users/${options.userId}`, |
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.
Typo in endpoint path. Change collecstions
to collections
.
`collecstions/${options.id}/users/${options.userId}`, | |
`collections/${options.id}/users/${options.userId}`, |
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 5f976b0 in 30 seconds
More details
- Looked at
13
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. js/sdk/src/v3/clients/collections.ts:215
- Draft comment:
Fix the typo in the endpoint URL fromcollecstions
tocollections
. This typo is also present in the diff section of the PR. - Reason this comment was not posted:
Comment looked like it was already resolved.
Workflow ID: wflow_mWslDcM2xJqbfJI3
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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.
❌ Changes requested. Incremental review on 5c25740 in 1 minute and 26 seconds
More details
- Looked at
383
lines of code in8
files - Skipped
0
files when reviewing. - Skipped posting
3
drafted comments based on config settings.
1. js/sdk/__tests__/RetrievalIntegrationSuperUser.test.ts:88
- Draft comment:
Duplicate test name "Streaming RAG". Consider renaming to avoid confusion and potential issues when running tests. - Reason this comment was not posted:
Comment was on unchanged code.
2. js/sdk/src/types.ts:172
- Draft comment:
Ensuremetadata
is parsed from JSON if it's a string, similar to theRelationship
class ingraph.py
. - Reason this comment was not posted:
Confidence changes required:50%
Themetadata
field in theRelationshipResponse
interface should be parsed from JSON if it's a string, similar to how it's handled in theRelationship
class constructor.
3. py/core/main/api/v3/graph_router.py:1306
- Draft comment:
documents_req
is assigned but not used. This could lead to incorrect document processing. Ensuredocuments_req
is used appropriately. - Reason this comment was not posted:
Comment did not seem useful.
Workflow ID: wflow_CECl0SYhXwsCktiH
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
js/sdk/src/v3/clients/documents.ts
Outdated
includeVectors?: boolean; | ||
entityNames?: string[]; | ||
relationshipTypes?: string[]; | ||
}): Promise<WrappedEntitiesResponse> { |
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.
Incorrect return type. Use WrappedRelationshipsResponse
instead of WrappedEntitiesResponse
.
}): Promise<WrappedEntitiesResponse> { | |
}): Promise<WrappedRelationshipsResponse> { |
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 ecbb1a8 in 1 minute and 34 seconds
More details
- Looked at
585
lines of code in12
files - Skipped
0
files when reviewing. - Skipped posting
0
drafted comments based on config settings.
Workflow ID: wflow_Yg4JYUUWsy6sV2dq
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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 5bfbb93 in 28 seconds
More details
- Looked at
31
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. js/sdk/__tests__/GraphsIntegrationSuperUser.test.ts:70
- Draft comment:
Typo in test description. Change "Update the description graph 2" to "Update the description of graph 2". - Reason this comment was not posted:
Confidence changes required:10%
The test description has a typo in the word 'description'.
Workflow ID: wflow_fFQhHAZOWr7ZqSkQ
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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 36fe652 in 1 minute and 33 seconds
More details
- Looked at
712
lines of code in15
files - Skipped
0
files when reviewing. - Skipped posting
5
drafted comments based on config settings.
1. py/sdk/models.py:26
- Draft comment:
KGCreationResponse
is removed from imports but still referenced in the codebase. Ensure all references are removed or replaced. - Reason this comment was not posted:
Comment looked like it was already resolved.
2. py/sdk/models.py:52
- Draft comment:
KGEntityDeduplicationResponse
is removed from imports but still referenced in the codebase. Ensure all references are removed or replaced. - Reason this comment was not posted:
Marked as duplicate.
3. py/sdk/v2/kg.py:7
- Draft comment:
KGEntityDeduplicationResponse
is removed from imports but still referenced in the codebase. Ensure all references are removed or replaced. - Reason this comment was not posted:
Marked as duplicate.
4. py/sdk/v2/sync_kg.py:7
- Draft comment:
KGEntityDeduplicationResponse
is removed from imports but still referenced in the codebase. Ensure all references are removed or replaced. - Reason this comment was not posted:
Comment looked like it was already resolved.
5. py/shared/api/models/__init__.py:85
- Draft comment:
KGCreationResponse
is removed from imports but still referenced in the codebase. Ensure all references are removed or replaced. - Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_jWsDdjNFhBEM5qHY
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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 99e48e0 in 44 seconds
More details
- Looked at
51
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. py/core/main/services/retrieval_service.py:332
- Draft comment:
The logic for settingmessages
whenmessage
is provided butmessages
is not, is redundant. The checkif message and not messages:
is unnecessary sincemessages
is already set to an empty list if not provided. Consider simplifying this logic. - Reason this comment was not posted:
Confidence changes required:50%
The code inretrieval_service.py
has a potential issue with the handling ofmessage
andmessages
in theagent
method. The logic for settingmessages
whenmessage
is provided butmessages
is not, is redundant and can be simplified.
2. js/sdk/__tests__/RetrievalIntegrationSuperUser.test.ts:88
- Draft comment:
Consider using a configuration-based approach for test timeouts instead of hardcoding them. This will make the tests more flexible and less prone to flakiness in different environments. This comment applies to other tests with hardcoded timeouts as well. - Reason this comment was not posted:
Confidence changes required:50%
The test files have hardcoded timeouts for asynchronous tests. These timeouts might not be optimal for all environments and could lead to flaky tests.
Workflow ID: wflow_l2AFWmoegQoyFyIM
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
99e48e0
to
ef2e97a
Compare
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 ef2e97a in 2 minutes and 0 seconds
More details
- Looked at
51
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. py/core/main/services/retrieval_service.py:317
- Draft comment:
The checkif message and not messages:
is redundant as it is already ensured that eithermessage
ormessages
is provided. Consider removing this check. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable:
The code change introduces a condition to handle the case where 'message' is provided but 'messages' is not. The earlier checks ensure that either 'message' or 'messages' is provided, but they do not handle the specific case of 'message' being provided alone. Therefore, the added condition is not redundant and serves a purpose. The comment suggesting redundancy is incorrect.
I might be missing some context about how 'message' and 'messages' are used elsewhere in the code, but based on the provided code, the added condition seems necessary.
The context provided in the code is sufficient to determine that the added condition is necessary to handle a specific case not covered by the earlier checks.
The comment is incorrect because the added condition is necessary to handle a specific case where 'message' is provided but 'messages' is not. The comment should be deleted.
Workflow ID: wflow_sGLRXZxxvWky677H
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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.
❌ Changes requested. Incremental review on d245985 in 1 minute and 21 seconds
More details
- Looked at
663
lines of code in4
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. js/sdk/src/v3/clients/graphs.ts:302
- Draft comment:
The endpoint for removing a relationship is incorrect. It should berelationships
instead ofentities
.
`graphs/${options.collectionId}/relationships/${options.relationshipId}`,
- Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_y0gpbLohi5O73N9y
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
js/sdk/src/v3/clients/graphs.ts
Outdated
}): Promise<WrappedRelationshipResponse> { | ||
return this.client.makeRequest( | ||
"GET", | ||
`graphs/${options.collectionId}/entities/${options.relationshipId}`, |
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.
The endpoint for retrieving a relationship is incorrect. It should be relationships
instead of entities
.
`graphs/${options.collectionId}/entities/${options.relationshipId}`, | |
`graphs/${options.collectionId}/relationships/${options.relationshipId}`, |
js/sdk/src/v3/clients/graphs.ts
Outdated
}; | ||
return this.client.makeRequest( | ||
"POST", | ||
`graphs/${options.collectionId}/entities/${options.communityId}`, |
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.
The endpoint for updating a community is incorrect. It should be communities
instead of entities
.
`graphs/${options.collectionId}/entities/${options.communityId}`, | |
`graphs/${options.collectionId}/communities/${options.communityId}`, |
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.
❌ Changes requested. Incremental review on 81e0e30 in 1 minute and 11 seconds
More details
- Looked at
972
lines of code in4
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. js/sdk/__tests__/GraphsIntegrationSuperUser.test.ts:89
- Draft comment:
The test case for checking relationships in the graph is missing a length check. Consider addingexpect(response.results.entries).toHaveLength(0);
to ensure the graph has no relationships. - Reason this comment was not posted:
Comment looked like it was already resolved.
2. js/sdk/src/v3/clients/graphs.ts:500
- Draft comment:
Ensure that theremoveDocument
method endpoint and method are consistent with the rest of the codebase. It seems correct here, but double-check for consistency. - Reason this comment was not posted:
Confidence changes required:50%
TheremoveDocument
method ingraphs.ts
is correctly implemented, but it's important to ensure that the endpoint and method are consistent with the rest of the codebase.
Workflow ID: wflow_P95uvVUduavGTauM
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
js/sdk/src/v3/clients/graphs.ts
Outdated
*/ | ||
@feature("communities.build") | ||
async build(options: { | ||
collection_id: string; |
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.
The build
method uses collection_id
instead of collectionId
. For consistency, it should be:
collection_id: string; | |
collectionId: string; |
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 06eeddb in 1 minute and 0 seconds
More details
- Looked at
972
lines of code in5
files - Skipped
0
files when reviewing. - Skipped posting
0
drafted comments based on config settings.
Workflow ID: wflow_dlUZ8NZ1kiHHeK0j
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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.
❌ Changes requested. Incremental review on 32c4054 in 56 seconds
More details
- Looked at
225
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. js/sdk/__tests__/GraphsIntegrationUser.test.ts.txt:18
- Draft comment:
Avoid using hardcoded passwords in tests. Consider using environment variables or a configuration file to manage sensitive information securely. - Reason this comment was not posted:
Marked as duplicate.
2. js/sdk/__tests__/GraphsIntegrationUser.test.ts.txt:73
- Draft comment:
Typo in test description: "Update the desription graph 2" should be "Update the description of graph 2". - Reason this comment was not posted:
Confidence changes required:50%
The test description has a typo in the word 'description'. This should be corrected for clarity and consistency.
Workflow ID: wflow_mOKswZMUut2fPBKV
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
client = new r2rClient(baseUrl); | ||
await client.users.login({ | ||
email: "[email protected]", | ||
password: "change_me_immediately", |
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.
Avoid using hardcoded passwords in tests. Consider using environment variables or a configuration file to manage sensitive information securely.
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 759150b in 1 minute and 2 seconds
More details
- Looked at
71
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. js/sdk/src/v3/clients/documents.ts:446
- Draft comment:
Inconsistent metadata handling: In theupdate
method, metadata is wrapped in an array when stringified. This is inconsistent with thecreate
method and may lead to unexpected behavior. Consider using the same format for both methods. - Reason this comment was not posted:
Comment was on unchanged code.
2. js/sdk/src/v3/clients/graphs.ts:356
- Draft comment:
The endpoint path for deleting a relationship was corrected fromentities
torelationships
. Ensure that all related documentation and tests are updated accordingly to reflect this change. - Reason this comment was not posted:
Comment did not seem useful.
Workflow ID: wflow_zFqMFBvJ3mCPBR5W
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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 588b7b3 in 2 minutes and 27 seconds
More details
- Looked at
228
lines of code in5
files - Skipped
0
files when reviewing. - Skipped posting
0
drafted comments based on config settings.
Workflow ID: wflow_5vNyLcKEQH38Yz14
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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.
❌ Changes requested. Incremental review on 326509a in 1 minute and 26 seconds
More details
- Looked at
38
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
0
drafted comments based on config settings.
Workflow ID: wflow_k1lxYD2qpXAVrMy2
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
@@ -40,11 +30,87 @@ jobs: | |||
version: 8.x | |||
run_install: false | |||
- name: Install JS SDK dependencies | |||
working-directory: ./js/sdk | |||
working-directory: /home/runner/work/R2R/js/sdk |
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.
Using an absolute path for working-directory
is not recommended. Consider using a relative path like ./js/sdk
for better portability and to avoid issues if the runner's working directory changes.
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 2d45e09 in 1 minute and 29 seconds
More details
- Looked at
110
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. .github/workflows/r2r-js-sdk-integration-tests.yml:55
- Draft comment:
The setup steps are repeated in each job. Consider extracting these into a separate job or reusable workflow to avoid repetition and improve maintainability. - Reason this comment was not posted:
Comment looked like it was already resolved.
Workflow ID: wflow_NYWcE08UYUFHS6jc
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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 8b5dbb2 in 51 seconds
More details
- Looked at
20
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. .github/workflows/r2r-js-sdk-integration-tests.yml:86
- Draft comment:
The 'fail-fast' option is set to false, meaning all tests will run even if one fails. Ensure this is the intended behavior. - Reason this comment was not posted:
Confidence changes required:50%
The 'fail-fast' option is set to false in the matrix strategy for both 'v2-integration-tests' and 'v3-integration-tests'. This means that if one test fails, the others will continue to run. This is a deliberate choice, but it's important to ensure that this behavior is intended.
Workflow ID: wflow_QnpA1qBN2GAivJTJ
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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 2a4c8e6 in 1 minute and 24 seconds
More details
- Looked at
691
lines of code in9
files - Skipped
0
files when reviewing. - Skipped posting
5
drafted comments based on config settings.
1. js/sdk/__tests__/GraphsIntegrationSuperUser.test.ts:276
- Draft comment:
The commented-out assertion forresponse.results.ratingExplanation
should be addressed. If it's failing, investigate the cause or remove it if not needed. - Reason this comment was not posted:
Confidence changes required:50%
The test case for creating a new community has a commented-out assertion that is failing. This should be addressed or removed if not needed.
2. py/core/base/providers/database.py:649
- Draft comment:
Thecreate
method should return aCommunity
object as per the interface definition. Ensure the implementation inPostgresCommunityHandler
matches this signature. - Reason this comment was not posted:
Comment did not seem useful.
3. py/core/base/providers/database.py:658
- Draft comment:
Theupdate
method should return aCommunity
object as per the interface definition. Ensure the implementation inPostgresCommunityHandler
matches this signature. - Reason this comment was not posted:
Comment did not seem useful.
4. py/core/providers/database/graph.py:866
- Draft comment:
Thecreate
method is missing thestore_type
parameter in the query. Ensure it is included to match the method signature and function correctly. - Reason this comment was not posted:
Comment did not seem useful.
5. py/core/providers/database/graph.py:853
- Draft comment:
Thecreate
method is missing thestore_type
parameter in the query. Ensure it is included to match the method signature and function correctly. - Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_oH830r0Nw7tBYFsZ
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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.
❌ Changes requested. Incremental review on 555f732 in 1 minute and 57 seconds
More details
- Looked at
217
lines of code in4
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. py/core/providers/database/graph.py:885
- Draft comment:
Consider adding exception handling to thecreate
method to manage potential database operation failures gracefully, similar to thePostgresCommunityHandler
. This applies to bothPostgresEntityHandler
andPostgresRelationshipHandler
. - Reason this comment was not posted:
Comment was not on a valid diff hunk.
Workflow ID: wflow_9mphwtmRTpPhZBxZ
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
@telemetry_event("delete_community_v3") | ||
async def delete_community_v3( | ||
@telemetry_event("delete_community") | ||
async def delete_community( |
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.
Consider adding exception handling to the delete_community
method to manage potential database operation failures gracefully.
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 a00fab8 in 2 minutes and 29 seconds
More details
- Looked at
433
lines of code in5
files - Skipped
0
files when reviewing. - Skipped posting
5
drafted comments based on config settings.
1. py/core/main/services/kg_service.py:425
- Draft comment:
Thestore_type
parameter is not used in this method and can be removed to clean up the code. - Reason this comment was not posted:
Confidence changes required:50%
Theupdate_community
method ingraph_router.py
andkg_service.py
has a parameterstore_type
which is not used. This is unnecessary and should be removed to clean up the code.
2. py/core/main/api/v3/graph_router.py:1302
- Draft comment:
Thestore_type
parameter is not used in this method and can be removed to clean up the code. - Reason this comment was not posted:
Confidence changes required:50%
Theupdate_community
method ingraph_router.py
andkg_service.py
has a parameterstore_type
which is not used. This is unnecessary and should be removed to clean up the code.
3. py/core/providers/database/graph.py:922
- Draft comment:
Thestore_type
parameter is not used in this method and can be removed to clean up the code. - Reason this comment was not posted:
Confidence changes required:50%
Theupdate_community
method ingraph_router.py
andkg_service.py
has a parameterstore_type
which is not used. This is unnecessary and should be removed to clean up the code.
4. py/core/providers/database/graph.py:911
- Draft comment:
Thestore_type
parameter is not used in this method and can be removed to clean up the code. - Reason this comment was not posted:
Confidence changes required:50%
Theupdate_community
method ingraph_router.py
andkg_service.py
has a parameterstore_type
which is not used. This is unnecessary and should be removed to clean up the code.
5. py/core/providers/database/graph.py:913
- Draft comment:
Thestore_type
parameter is not used in this method and can be removed to clean up the code. - Reason this comment was not posted:
Confidence changes required:50%
Theupdate_community
method ingraph_router.py
andkg_service.py
has a parameterstore_type
which is not used. This is unnecessary and should be removed to clean up the code.
Workflow ID: wflow_sRUIxsiita51SPmg
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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.
❌ Changes requested. Incremental review on ed7f734 in 1 minute and 35 seconds
More details
- Looked at
351
lines of code in5
files - Skipped
0
files when reviewing. - Skipped posting
4
drafted comments based on config settings.
1. py/core/main/api/v3/graph_router.py:593
- Draft comment:
Ensure thedelete_entity
method inkg_service.py
is correctly referenced here, as it was renamed fromdelete_entity_v3
. - Reason this comment was not posted:
Comment did not seem useful.
2. py/core/main/api/v3/graph_router.py:695
- Draft comment:
Ensure thedelete_relationship
method inkg_service.py
is correctly referenced here, as it was renamed fromdelete_relationship_v3
. - Reason this comment was not posted:
Marked as duplicate.
3. py/core/main/api/v3/graph_router.py:1031
- Draft comment:
Ensure theget_relationships
method inkg_service.py
is correctly referenced here, as it was updated to useparent_id
instead ofcollection_id
. - Reason this comment was not posted:
Marked as duplicate.
4. py/core/main/api/v3/graph_router.py:1166
- Draft comment:
Ensure theget_communities
method inkg_service.py
is correctly referenced here, as it was updated to usecollection_id
instead ofparent_id
. - Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_cgHbkfMFmLmot7vA
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
async buildCommunities(options: { | ||
collectionId: string; | ||
runType?: string; | ||
kgEntichmentSettings?: Record<string, any>; |
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.
Typo in parameter name: kgEntichmentSettings
should be kgEnrichmentSettings
.
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 a21003e in 1 minute and 19 seconds
More details
- Looked at
649
lines of code in11
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. py/shared/abstractions/search.py:62
- Draft comment:
Ensure that the aliasindexMeasure
inChunkSearchSettings
is correctly referenced inSearchSettings
to avoid potential confusion or errors. - Reason this comment was not posted:
Confidence changes required:50%
The PR involves significant refactoring and renaming of search settings and results. The renaming fromVectorSearchSettings
toChunkSearchSettings
andvector_search_results
tochunk_search_results
is consistent across the codebase. However, there is a potential issue with the use ofChunkSearchSettings
in theSearchSettings
class. The aliasindexMeasure
is used inChunkSearchSettings
, but it is not referenced in theSearchSettings
class. This could lead to confusion or errors if the alias is expected to be used inSearchSettings
.
Workflow ID: wflow_Gq2dT7gvGtljCUVe
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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 7620d9f in 1 minute and 14 seconds
More details
- Looked at
112
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. py/core/providers/database/graph.py:2832
- Draft comment:
Remove the commented-out section as it is not needed. The method already returns the result of_cluster_and_add_community_info
. - Reason this comment was not posted:
Comment was on unchanged code.
Workflow ID: wflow_YkHvcMgQLdXu5BC5
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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 6d395a1 in 1 minute and 1 seconds
More details
- Looked at
105
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. py/core/providers/database/graph.py:2905
- Draft comment:
Theget_graph_status
method has been removed. Ensure that this functionality is no longer needed or has been replaced elsewhere in the codebase. - Reason this comment was not posted:
Confidence changes required:50%
The removal of theget_graph_status
method fromkg_service.py
andgraph.py
seems intentional, but it should be confirmed that this functionality is no longer needed or has been replaced elsewhere.
Workflow ID: wflow_M0ikxH5m0fKtaUrN
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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 ff8c499 in 1 minute and 13 seconds
More details
- Looked at
180
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
3
drafted comments based on config settings.
1. py/core/pipes/kg/clustering.py:54
- Draft comment:
Thegraph_id
parameter is no longer used incluster_kg
. Consider removing it from the method signature. - Reason this comment was not posted:
Confidence changes required:50%
The removal of thegraph_id
parameter from theperform_graph_clustering
method ingraph.py
is consistent with the changes inclustering.py
wheregraph_id
is no longer used. This aligns with the refactoring mentioned in the PR description.
2. py/core/providers/database/graph.py:2676
- Draft comment:
Thegraph_id
parameter is no longer used inperform_graph_clustering
. Consider removing it from the method signature. - Reason this comment was not posted:
Confidence changes required:50%
The removal of thegraph_id
parameter from theperform_graph_clustering
method ingraph.py
is consistent with the changes inclustering.py
wheregraph_id
is no longer used. This aligns with the refactoring mentioned in the PR description.
3. py/core/providers/database/graph.py:2672
- Draft comment:
Thegraph_id
parameter is no longer used inperform_graph_clustering
. Consider removing it from the method signature. - Reason this comment was not posted:
Confidence changes required:50%
The removal of thegraph_id
parameter from theperform_graph_clustering
method ingraph.py
is consistent with the changes inclustering.py
wheregraph_id
is no longer used. This aligns with the refactoring mentioned in the PR description.
Workflow ID: wflow_dqMu2037zAhL2xeh
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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.
❌ Changes requested. Incremental review on d4bfba7 in 1 minute and 19 seconds
More details
- Looked at
216
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. py/core/main/api/v3/documents_router.py:1364
- Draft comment:
Thelimit
parameter description states a range between 1 and 100, but the code allows up to 1000. Please update the description to reflect the correct range. - Reason this comment was not posted:
Marked as duplicate.
2. py/core/main/api/v3/documents_router.py:1489
- Draft comment:
Thelimit
parameter description states a range between 1 and 100, but the code allows up to 1000. Please update the description to reflect the correct range. - Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_VLEp7rilriwHlLS1
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
description="The maximum number of chunks to retrieve, up to 20,000.", | ||
ge=1, | ||
le=1000, | ||
description="Specifies a limit on the number of objects to return, ranging between 1 and 100. Defaults to 100.", |
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.
The limit
parameter description states a range between 1 and 100, but the code allows up to 1000. Please update the description to reflect the correct range.
* prep for merge * fixup crud * rm pull
Important
Enhances SDK with new types, response wrappers, feature annotations, expanded management capabilities, and significant refactoring of search settings and responses.
CommunityResponse
,EntityResponse
, andRelationshipResponse
interfaces intypes.ts
.WrappedCommunityResponse
,WrappedEntityResponse
, andWrappedRelationshipResponse
types.@feature
annotations to methods ingraphs.ts
,documents.ts
, andcollections.ts
for feature tracking.graphs.ts
,documents.ts
, andcollections.ts
.VectorSearchSettings
toChunkSearchSettings
across the codebase.ChunkSearchSettings
andGraphSearchSettings
.vector_search_results
withchunk_search_results
andkg_search_results
withgraph_search_results
.compose.yaml
to use a production image for ther2r
service.graph_router.py
.GraphsIntegrationSuperUser.test.ts
.This description was created by
for d4bfba7. It will automatically update as commits are pushed.