Skip to content

Conversation

Orbital-Web
Copy link
Contributor

Description

Separated relationship transferring and vespa updates
Proper error handling on vespa updates

How Has This Been Tested?

Locally

Backporting (check the box to trigger backport action)

Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.

  • This PR should be backported (make sure to check that the backport attempt succeeds)
  • [Optional] Override Linear Check

@Orbital-Web Orbital-Web requested a review from a team as a code owner June 26, 2025 23:04
Copy link

vercel bot commented Jun 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 1:16am

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Improved knowledge graph clustering by decoupling relationship transfers from Vespa updates, enhancing error handling and observability in backend/onyx/kg/clustering/clustering.py.

  • Split monolithic _transfer_batch_relationship_and_update_vespa into separate operations, improving maintainability and failure isolation
  • Added detailed error handling for Vespa updates with per-document failure logging
  • Introduced _get_batch_kg_processed_documents for better document batch processing
  • Added performance metrics and timing logs for each major operation stage
  • Improved resilience by ensuring Vespa update failures don't block other document processing

1 file reviewed, 1 comment
Edit PR Review Bot Settings | Greptile

Copy link
Contributor

@joachim-danswer joachim-danswer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! And tested locally

@Orbital-Web Orbital-Web enabled auto-merge June 27, 2025 00:54
@Orbital-Web Orbital-Web force-pushed the kg-vespa-improvements branch from 3dd7d50 to 1862ca5 Compare June 27, 2025 01:12
@Orbital-Web Orbital-Web added this pull request to the merge queue Jun 27, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 27, 2025
@Orbital-Web Orbital-Web added this pull request to the merge queue Jun 27, 2025
@Orbital-Web Orbital-Web removed this pull request from the merge queue due to a manual request Jun 27, 2025
@Orbital-Web Orbital-Web merged commit 630ac31 into main Jun 27, 2025
11 of 12 checks passed
@Orbital-Web Orbital-Web deleted the kg-vespa-improvements branch June 27, 2025 05:05
AnkitTukatek pushed a commit to TukaTek/onyx that referenced this pull request Sep 23, 2025
…dates (onyx-dot-app#4954)

* feat: move vespa at end in try block

* simplify query

* mypy

* added order by just in case for consistent pagination

* liveness probe

* kg_p check for both extraction and clustering

* fix: better vespa logging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants