Details

    • Technical task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • N/A
    • Adoption
    • None
    • Sprint 7 (07.04.2025), Sprint 8 (21.04.2025), Sprint 9 (05.05.2025)

    Description

      The primary motivation for this patch is that, in a client-server application (e.g., RAG), the developer might not or isn't required to know the embedding_length in advance.
      Without lazy init and no prior knowledge of the embedding_length, the developer would be stuck with the default of 1536, which might differ from what the model actual value is.

      Of course, from_texts() will determine the dimension at runtime but we need to consider that
      in some cases one would like to get an instance of MariaDBStore first and then perform any other operations later.

      Thus, we need to add support lazy initialization of the store, which will establish the embedding dimension
      and create the tables on either the first search or the first insert, whichever comes first.

      Attachments

        Activity

          People

            rvarzaru Varzaru Razvan-Liviu
            rvarzaru Varzaru Razvan-Liviu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: