Browse Source

part1

Signed-off-by: shanghaikid <jiangruiyi@gmail.com>
shanghaikid 2 years ago
parent
commit
0e05cb0935
2 changed files with 10 additions and 6 deletions
  1. 7 5
      client/src/consts/Milvus.tsx
  2. 3 1
      client/src/pages/schema/Types.ts

+ 7 - 5
client/src/consts/Milvus.tsx

@@ -58,7 +58,8 @@ export type searchKeywordsType =
   | 'ef'
   | 'search_k'
   | 'search_length'
-  | 'round_decimal';
+  | 'round_decimal'
+  | 'level';
 
 export type indexConfigType = {
   [x: string]: {
@@ -97,10 +98,10 @@ export const FLOAT_INDEX_CONFIG: indexConfigType = {
     create: ['n_trees'],
     search: ['search_k'],
   },
-  // AUTOINDEX: {
-  //   create: [],
-  //   search: [],
-  // },
+  AUTOINDEX: {
+    create: [],
+    search: ['level'],
+  },
   // RNSG: {
   //   create: ['out_degree', 'candidate_pool_size', 'search_length', 'knng'],
   //   search: ['search_length'],
@@ -208,6 +209,7 @@ export const DEFAULT_SEARCH_PARAM_VALUE_MAP: {
   // range: [10, 300]
   search_length: 10,
   round_decimal: -1,
+  level: 1,
 };
 
 export const DEFAULT_NLIST_VALUE = 1024;

+ 3 - 1
client/src/pages/schema/Types.ts

@@ -3,6 +3,7 @@ import { MetricType } from '../../consts/Milvus';
 import { DataTypeStringEnum } from '../collections/Types';
 
 export enum INDEX_TYPES_ENUM {
+  AUTO_INDEX = 'AUTO_INDEX',
   IVF_FLAT = 'IVF_FLAT',
   IVF_PQ = 'IVF_PQ',
   IVF_SQ8 = 'IVF_SQ8',
@@ -68,7 +69,8 @@ export type IndexType =
   | INDEX_TYPES_ENUM.BIN_IVF_FLAT
   | INDEX_TYPES_ENUM.BIN_FLAT
   | INDEX_TYPES_ENUM.MARISA_TRIE
-  | INDEX_TYPES_ENUM.SORT;
+  | INDEX_TYPES_ENUM.SORT
+  | INDEX_TYPES_ENUM.AUTO_INDEX;
 
 export interface IndexManageParam {
   collection_name: string;