-
Notifications
You must be signed in to change notification settings - Fork 278
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
Feature/merge with dev #916
Merged
emrgnt-cmplxty
merged 5 commits into
feature/add-nltk-hybrid-expansion
from
feature/merge-with-dev
Aug 21, 2024
Merged
Feature/merge with dev #916
emrgnt-cmplxty
merged 5 commits into
feature/add-nltk-hybrid-expansion
from
feature/merge-with-dev
Aug 21, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fix CLI tests
add kg runtime config
emrgnt-cmplxty
merged commit Aug 21, 2024
c0db4ec
into
feature/add-nltk-hybrid-expansion
0 of 3 checks passed
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 35d4a09 in 44 seconds
More details
- Looked at
1340
lines of code in29
files - Skipped
0
files when reviewing. - Skipped posting
8
drafted comments based on config settings.
1. py/cli/commands/restructure.py:16
- Draft comment:
The methodclient.restructure()
has been renamed toclient.enrich_graph()
. Ensure that the client object has this method implemented to avoid runtime errors. - Reason this comment was not posted:
Confidence changes required:50%
The change fromclient.restructure()
toclient.enrich_graph()
inrestructure.py
is consistent with the new naming convention for the enrichment process. This change aligns with the updated method name in the client, ensuring that the CLI command calls the correct function.
2. py/cli/utils/param_types.py:11
- Draft comment:
Theconvert
method now returnsNone
if the input value isNone
. This change ensures thatNone
values are handled gracefully without attempting to process them as JSON. - Reason this comment was not posted:
Confidence changes required:20%
Theconvert
method inJsonParamType
now handlesNone
values by returningNone
. This is a logical addition to handle cases where the input might beNone
, preventing potential errors from attempting to process aNone
value as JSON.
3. py/core/base/__init__.py:51
- Draft comment:
KGEnrichmentSettings
has been added to the__all__
list, making it publicly accessible when the module is imported. Ensure this is intentional and consistent with the module's design. - Reason this comment was not posted:
Confidence changes required:10%
The addition ofKGEnrichmentSettings
to the__all__
list in__init__.py
files ensures that this class is publicly accessible when the module is imported. This is consistent with the pattern used for other abstractions and settings in the codebase.
4. py/core/base/api/models/__init__.py:37
- Draft comment:
KGEnrichementResponse
has been renamed toKGEnrichmentResponse
to correct the spelling. Ensure all references to this class are updated accordingly to prevent any import errors. - Reason this comment was not posted:
Confidence changes required:30%
The renaming ofKGEnrichementResponse
toKGEnrichmentResponse
in the__init__.py
file and other related files aligns with the correct spelling of 'enrichment'. This change ensures consistency and correctness in the naming conventions across the codebase.
5. py/core/main/api/routes/restructure/base.py:16
- Draft comment:
TheKGEnrichmentSettings
parameter is defined asUnion[dict, KGEnrichmentSettings]
, allowing flexibility in input types. Ensure that the handling logic for this parameter can process both types correctly. - Reason this comment was not posted:
Confidence changes required:20%
TheKGEnrichmentSettings
class inrestructure.py
is used to pass settings for the enrichment process. The use ofUnion[dict, KGEnrichmentSettings]
allows for flexibility in how settings are provided, either as a dictionary or as a structured object.
6. py/core/main/services/restructure_service.py:35
- Draft comment:
Theenrich_graph
method now acceptsKGEnrichmentSettings
as a parameter, allowing for customizable settings during the enrichment process. Ensure that the settings are correctly utilized within the method. - Reason this comment was not posted:
Confidence changes required:20%
Theenrich_graph
method inRestructureService
now acceptsKGEnrichmentSettings
as a parameter, which allows for customizable settings during the enrichment process. This change enhances the flexibility of the service.
7. py/core/pipes/kg/clustering.py:83
- Draft comment:
Thecluster_kg
method now usesKGEnrichmentSettings
to configure the clustering process. Ensure that the settings are correctly applied and that the method behaves as expected with different configurations. - Reason this comment was not posted:
Confidence changes required:20%
Thecluster_kg
method inKGClusteringPipe
now usesKGEnrichmentSettings
to configure the clustering process. This change allows for more flexible and configurable clustering operations.
8. py/core/pipes/kg/extraction.py:91
- Draft comment:
Theextract_kg
method now usesmax_knowledge_triples
fromKGEnrichmentSettings
. Ensure that this setting is correctly applied and that the method respects the configured limit. - Reason this comment was not posted:
Confidence changes required:20%
Theextract_kg
method inKGTriplesExtractionPipe
now usesmax_knowledge_triples
fromKGEnrichmentSettings
. This change ensures that the extraction process adheres to the configured maximum number of triples.
Workflow ID: wflow_Jg0TLcC8ZNLmmxr3
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
Enhanced knowledge graph enrichment with new settings and updated CLI tests.
Key points:
client.restructure()
toclient.enrich_graph()
inpy/cli/commands/restructure.py
.KGEnrichmentSettings
class inpy/core/base/abstractions/restructure.py
for configuring knowledge graph enrichment.KGConfig
inpy/core/base/providers/kg.py
to includekg_enrichment_settings
.py/core/main/api/routes/restructure/base.py
to acceptKGEnrichmentSettings
in theenrich_graph
endpoint.py/core/pipes/kg/clustering.py
andpy/core/pipes/kg/extraction.py
to utilizeKGEnrichmentSettings
.py/tests/cli/commands/
and utilities inpy/tests/cli/utils/
.py/core/base/api/models/restructure/responses.py
andpy/sdk/restructure.py
.Generated with ❤️ by ellipsis.dev