-
Notifications
You must be signed in to change notification settings - Fork 100
Add documents and embbedings database metrics to stats response #652
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
Add documents and embbedings database metrics to stats response #652
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe Changes
Sequence Diagram(s)sequenceDiagram
participant API
participant IndexStats
API->>IndexStats: Request statistics
IndexStats-->>API: Respond with number_of_documents, is_indexing, field_distribution, raw_document_db_size, avg_document_size, number_of_embedded_documents, number_of_embeddings
Assessment against linked issues
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Co-authored-by: Frank Elsinga <[email protected]>
ef6edf3
into
meilisearch:update-stats-response
Thank you for your contribution! |
682: Merge dev into main r=curquiza a=Mubelotix Full changelog after this PR: (includes changes merged before this PR) ## What's Changed ### Breaking changes * Fix deleted_tasks field type in TaskDeletion struct by `@coinmoles` in #666 (`TaskDeletion.deleted_tasks` and `TaskCancelation.canceled_tasks` have been made `Option`s) ### Enhancements * Support all experimental features by `@ellnix` in #656 * Add `usedDatabaseSize` to stats by `@Alirexaa` in #653 * Add facet_search API functionality by `@hmacr` in #512 * Allow users to customize facet value sort behaviour by `@hmacr` in #514 * Support `embedders` setting and other vector/hybrid search related configuration by `@CommanderStorm` in #554 * Add documents and embbedings database metrics to stats response by `@Alirexaa` in #652 * Support facet search and prefix search settings by `@ellnix` in #634 * Serialize for MultiSearchResponse by `@milesgranger` in #668 * Implement federated multi search by `@LukasKalbertodt` in #625 * Add support for similar docs query by `@JiaYingZhang` in #674 ### Maintainance * Remove _md code samples for Mintlify migration by `@curquiza` in #661 * Add missing `exist` to `*_update` functions' docs by `@funlennysub` in #617 * Add Code Coverage GH action by `@Alirexaa` in #654 ## New Contributors * `@Alirexaa` made their first contribution in #653 * `@funlennysub` made their first contribution in #617 * `@milesgranger` made their first contribution in #668 * `@coinmoles` made their first contribution in #666 * `@JiaYingZhang` made their first contribution in #674 **Full Changelog**: v0.28.0...v0.29.0 Co-authored-by: hmacr <[email protected]> Co-authored-by: Clémentine U. - curqui <[email protected]> Co-authored-by: Frank Elsinga <[email protected]> Co-authored-by: Clémentine <[email protected]> Co-authored-by: Vladimir Donich <[email protected]>
Pull Request
Related issue
Fixes #650
Fixes #649
What does this PR do?
This pull request includes an update to the
IndexStats
struct in thesrc/indexes.rs
file to add several new fields for more detailed tracking of index statistics.Changes in
IndexStats
struct:raw_document_db_size
field to track the size of the raw document database.avg_document_size
field to track the average size of documents.number_of_embedded_documents
field to track the number of embedded documents.number_of_embeddings
field to track the number of embeddings.PR checklist
Please check if your PR fulfills the following requirements:
Thank you so much for contributing to Meilisearch!
Summary by CodeRabbit
New Features
Documentation