-
Notifications
You must be signed in to change notification settings - Fork 10
feat: add async to nilrag and nildb call #92
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
Conversation
907f7a4 to
05ac8fe
Compare
| # Step 3: Ask NilDB to compute the differences | ||
| logger.debug("Requesting computation from NilDB...") | ||
| difference_shares = nilDB.diff_query_execute(nilql_query_embedding) | ||
| difference_shares = await nilDB.diff_query_execute(nilql_query_embedding) |
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.
Nit: Could we have type information for difference_shares?
It would mean adding something like: difference_shares: Dict[int, Dict[int, int]] if each entry contains an int id and the difference between each id and others. It improves readability.
jcabrero
left a comment
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.
👍
If you want to add the small nit on the other PR for the new types, I think that is fine. Just leaving it here for the record.
For the rest the PR looks good to me.
|
The PR is failing because of the formatting. You can do |
This PR adds async call to nildb nodes when nilrag is executed.
It also adds:
num_chunks.