Skip to content
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

feat: Compute edges from tags rather than storing #500

Merged
merged 14 commits into from
Jun 24, 2024
722 changes: 182 additions & 540 deletions libs/knowledge-store/notebooks/astra_support.ipynb

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion libs/knowledge-store/ragstack_knowledge_store/concurrency.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ def _handle_result(
if self._pending == 0:
self._completion.notify()

def _handle_error(self, error):
def _handle_error(self, error, future: ResponseFuture):
with self._completion:
print(f"Failed to execute {future.query}: {error}")
self._error = error
self._completion.notify()

Expand All @@ -62,6 +63,9 @@ def execute(
"future": future,
"callback": callback,
},
errback_kwargs={
"future": future,
}
)

def __enter__(self) -> "ConcurrentQueries":
Expand Down
Loading
Loading