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

Simplify kb and shard creation #2052

Merged
merged 4 commits into from
Apr 12, 2024
Merged

Simplify kb and shard creation #2052

merged 4 commits into from
Apr 12, 2024

Conversation

jotare
Copy link
Contributor

@jotare jotare commented Apr 10, 2024

Description

  • release_channel was stored duplicated in KnowledgeBoxConfig and Shards, deprecate the one in KnowledgeBoxConfig
  • create_shard_by_kbid had logic for the first shards. Move it to KnowledgeBox.create. This allows to simplify the signature and avoid passing semantic_model (ignored) and release_channel (overwritten) every time we create a shard

How was this PR tested?

Existing tests

@jotare jotare requested a review from a team April 10, 2024 14:42
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Benchmark

Benchmark suite Current: fc46b23 Previous: d4afd82 Ratio
nucliadb/search/tests/unit/search/test_fetch.py::test_highligh_error 13558.105377262455 iter/sec (stddev: 1.512755057350271e-7) 13028.533525895236 iter/sec (stddev: 4.192637045977425e-7) 0.96

This comment was automatically generated by workflow using github-action-benchmark.

@jotare jotare merged commit ea0be71 into main Apr 12, 2024
72 checks passed
@jotare jotare deleted the simplify-kb-and-shard-creation branch April 12, 2024 15:05
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.

None yet

2 participants