Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-62626

Not able to create vector index

    XMLWordPrintable

Details

    Description

      1. Create 2 node cluster kv:n1ql - index
      2. Loaded around 20k docs
      3. created an index with following index definition. 

        CREATE INDEX `testcolorRGBVector_13` ON test.s1.c1(color, descriptionVector VECTOR) USING GSI  WITH {'defer_build': False, "dimension":384, "train_list":1024, "description": "IVF1000,PQ8x8", "similarity":"L2", "nprobes":3};}

      1. Above command failed with below error 

        _sequence_num	_sequence_query	_sequence_query_status	_sequence_result1	"CREATE INDEX `testcolorRGBVector_13` ON test.s1.c1(color, descriptionVector VECTOR) USING GSI  WITH {'defer_build': False, \"dimension\":384, \"train_list\":1024, \"description\": \"IVF1000,PQ8x8\", \"similarity\":\"L2\", \"nprobes\":3};"	"Internal Server Error"	[{"code":5000,"msg":"GSI CreateIndex() - cause: 0:ErrTraining: Number of qualifying/valid vectors 0 are less than the number of vectors 1000 required for training 1000 centroids \n\n","reason":{"_level":"exception","caller":"secondary_index:681","cause":{"error":"0:ErrTraining: Number of qualifying/valid vectors 0 are less than the number of vectors 1000 required for training 1000 centroids","source":"CreateIndex()"},"code":4350,"key":"indexing.error","message":"GSI error"},"query":"CREATE INDEX `testcolorRGBVector_13` ON test.s1.c1(color, descriptionVector VECTOR) USING GSI  WITH {'defer_build': False, \"dimension\":384, \"train_list\":1024, \"description\": \"IVF1000,PQ8x8\", \"similarity\":\"L2\", \"nprobes\":3};"}]
         

      Attachments

        For Gerrit Dashboard: MB-62626
        # Subject Branch Project Status CR V

        Activity

          People

            deepkaran.salooja Deepkaran Salooja
            hemant.rajput Hemant Rajput
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change

                PagerDuty