Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-35314

multi-part vector indexes

    XMLWordPrintable

Details

    • New Feature
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • Vector search
    • None

    Description

      The idea is to allow indexes like

      CREATE TABLE notes (
        note_id INT PRIMARY KEY,
        author_id INT,
        embed VECTOR(1024),
        VECTOR INDEX (author_id, embed)
      )

      which will essentially create distinct vector graphs per author_id. Naturally, it will only support vector searches for queries like

      SELECT note_id FROM notes WHERE author_id=1234 ORDER by VEC_DISTANCE_COSINE(embed, x'...') LIMIT 5
      

      Using one graph for all authors will be much slower, if the selectivity of the WHERE clause is high, because the search will need to produce many candidate vectors that will be ultimately rejected by WHERE

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              serg Sergei Golubchik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.