-
Notifications
You must be signed in to change notification settings - Fork 332
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
Updating Enrichment status #1544
Conversation
* Feature/tweak actions (#1507) * up * tweak actions * adding bin sup and making it default * tested and vetted
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 ce73f2e in 1 minute and 55 seconds
More details
- Looked at
623
lines of code in11
files - Skipped
1
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. py/core/main/orchestration/hatchet/kg_workflow.py:295
- Draft comment:
Add a check to ensureinput_data['kg_enrichment_settings']
is not None before accessing its attributes to avoid potential AttributeError. - Reason this comment was not posted:
Marked as duplicate.
2. py/core/main/services/ingestion_service.py:541
- Draft comment:
Add a check to ensurechunk_enrichment_settings
is not None before accessing its attributes to avoid potential AttributeError. - Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_dCuSIltlcbcl6xag
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.
or {}, | ||
) | ||
|
||
if chunk_enrichment_settings.enable_chunk_enrichment: |
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.
Add a check to ensure chunk_enrichment_settings
is not None before accessing chunk_enrichment_settings.enable_chunk_enrichment
to avoid potential AttributeError.
if chunk_enrichment_settings.enable_chunk_enrichment: | |
if chunk_enrichment_settings and chunk_enrichment_settings.enable_chunk_enrichment: |
@@ -61,32 +68,50 @@ async def enrich_graph(input_data): | |||
|
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.
Add a check to ensure input_data['kg_enrichment_settings']
is not None before accessing its attributes to avoid potential AttributeError.
return self.value | ||
|
||
@classmethod | ||
def table_name(cls) -> str: |
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.
Duplicate methods table_name
and id_column
found in the same file. Consider reusing the existing methods at lines 149-155.
@@ -887,3 +887,10 @@ async def delete_conversation( | |||
) -> WrappedDeleteResponse: | |||
await self.service.delete_conversation(conversation_id) | |||
return None # type: ignore | |||
|
|||
@self.router.get("/r2r_project_name") |
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.
Can we add this to the server settings?
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
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 ef87b47 in 19 seconds
More details
- Looked at
47
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. py/core/main/api/management_router.py:887
- Draft comment:
The PR description mentions adding a new endpoint/r2r_project_name
, but this code shows it was removed. Please update the PR description to reflect the actual changes. - Reason this comment was not posted:
Comment did not seem useful.
Workflow ID: wflow_HNBDHVF8EsKc6wKY
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 24abc6d in 19 seconds
More details
- Looked at
29
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. py/shared/api/models/management/responses.py:59
- Draft comment:
Remove the commented-outr2r_version
line if it's not needed, or uncomment it if it is needed. - Reason this comment was not posted:
Confidence changes required:50%
The commented-out line forr2r_version
inAppSettingsResponse
should be removed if it's not needed, or uncommented if it is needed. Leaving commented-out code can lead to confusion.
2. py/core/main/services/management_service.py:204
- Draft comment:
Remove the commented-outr2r_version
line if it's not needed, or uncomment it if it is needed. - Reason this comment was not posted:
Confidence changes required:50%
The commented-out line forr2r_version
inapp_settings
method should be removed if it's not needed, or uncommented if it is needed. Leaving commented-out code can lead to confusion.
Workflow ID: wflow_fBAuJj5LdYg0gITx
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Important
Update enrichment and extraction status handling across workflows, services, and database interactions, including new status types and endpoint in
management_router.py
.kg_enrichment_status
andkg_extraction_status
inkg_workflow.py
,ingestion_workflow.py
, andsimple/kg_workflow.py
.on_failure
methods to update status toFAILED
for both enrichment and extraction workflows./r2r_project_name
inmanagement_router.py
to return project name from environment variable.kg_enrichment_status
toget_collections_overview()
incollection.py
.set_workflow_status()
andget_workflow_status()
indocument.py
to handle new status types.kg_enrichment_status
toCollectionOverviewResponse
inresponses.py
.table_name()
andid_column()
toIngestionStatus
,KGExtractionStatus
, andKGEnrichmentStatus
indocument.py
.ingestion.py
anddatabase.py
.This description was created by for 24abc6d. It will automatically update as commits are pushed.