Skip to content

[EuiIcon] Add tokenSparseVector #7257

Closed

Description

@carlosdelest

sparse_vector field type is being included as part of Elasticsearch 8.11 (issue).

It would be good to provide a token in EUI for this field type.

We could make this a small variation of dense_vector so it highlights the similar use case and data type.

Activity

  1. cee-chen commented on Oct 5, 2023

    @cee-chen
    Contributor

    👋 Hey Carlos!! Long time no see! :)

    @MichaelMarcialis @andreadelrio Can I loop y'all in on this one to respond on whether we do/don't want to do this, and if we do, what a potential design might look like?

  2. MichaelMarcialis commented on Oct 10, 2023

    @MichaelMarcialis
    Contributor

    @carlosdelest, @cee-chen: I'd be happy to help make a token for sparse vector. Is my understanding correct that the difference between sparse and dense vector is that sparse vectors have mostly zero values and dense vectors have mostly non-zero values? If so, it might be wise for us to also update the existing dense vector icon to something more unique than the current array-like brackets icon. Just let me know if my understanding is correct and I can crank something out.

  3. carlosdelest commented on Oct 11, 2023

    @carlosdelest
    Author

    HI @MichaelMarcialis ! Your understanding is correct. Both are float vectors, but in a sparse vector most elements are zero.

    Thanks for looking into this!

  4. MichaelMarcialis commented on Oct 12, 2023

    @MichaelMarcialis
    Contributor

    @carlosdelest: Here's a quick stab at adding a sparse vector icon and updating the existing dense vector icon to match (showing both color and mono versions). Let me know if this will do the trick for you, and I'll put together an EUI PR to add it in. Thanks!

    CleanShot 2023-10-12 at 15 42 10

  5. carlosdelest commented on Oct 13, 2023

    @carlosdelest
    Author

    @MichaelMarcialis , I love this! The concept is quite clear to me.

    Maybe moving the sparse non-zero values closer to the center would help differentiate those from the square brackets? Something like:

    image

    Thanks for looking into this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions