<commit_before>.. -*- rst -*-

.. highlightlang:: none

.. groonga-command
.. database: vector_size

vector_size
===========

Summary
-------

.. versionadded:: 5.0.3

``vector_size`` returns the value of vector column size.

Use ``--command_version 2`` to enable this feature.

Syntax
------

``vector_size`` requires one argument - ``target``.

::<commit_msg>doc: add missing plugin_register command<commit_after>.. -*- rst -*-

.. highlightlang:: none

.. groonga-command
.. database: vector_size

vector_size
===========

Summary
-------

.. versionadded:: 5.0.3

``vector_size`` returns the value of vector column size.

Use ``--command_version 2`` to enable this feature.

Syntax
------

``vector_size`` requires one argument - ``target``.

To enable this function, register ``functions/vector`` plugin by following the command::

  plugin_register functions/vector

::
{'fraction_non_alphanumeric': 0.18285714285714286, 'fraction_numerical': 0.009142857142857144, 'mean_word_length': 3.38, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6978389', 'n_tokens_mistral': 263, 'n_tokens_neox': 256, 'n_words': 81}