Skip to content

Commit

Permalink
Merge pull request #240 from zilliztech/diskann
Browse files Browse the repository at this point in the history
support diskann
  • Loading branch information
shanghaikid authored Aug 3, 2023
2 parents 1ce967e + 0a53067 commit c6c771c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
16 changes: 7 additions & 9 deletions client/src/consts/Milvus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ export type searchKeywordsType =
| 'search_k'
| 'search_length'
| 'round_decimal'
| 'level';
| 'level'
| 'search_list';

export type indexConfigType = {
[x: string]: {
Expand All @@ -82,10 +83,6 @@ export const FLOAT_INDEX_CONFIG: indexConfigType = {
create: ['nlist'],
search: ['nprobe'],
},
// IVF_SQ8_HYBRID: {
// create: ['nlist'],
// search: ['nprobe'],
// },
FLAT: {
create: [],
search: ['nprobe'],
Expand All @@ -102,10 +99,10 @@ export const FLOAT_INDEX_CONFIG: indexConfigType = {
create: [],
search: ['level'],
},
// RNSG: {
// create: ['out_degree', 'candidate_pool_size', 'search_length', 'knng'],
// search: ['search_length'],
// },}
DISKANN: {
create: [],
search: ['search_list'],
},
};

export const BINARY_INDEX_CONFIG: indexConfigType = {
Expand Down Expand Up @@ -210,6 +207,7 @@ export const DEFAULT_SEARCH_PARAM_VALUE_MAP: {
search_length: 10,
round_decimal: -1,
level: 1,
search_list: 20,
};

export const DEFAULT_NLIST_VALUE = 1024;
Expand Down
11 changes: 11 additions & 0 deletions client/src/pages/search/SearchParams.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,17 @@ const SearchParams: FC<SearchParamsProps> = ({
handleInputChange('search_length', Number(value));
},
},
search_list: {
label: 'search_list',
key: 'search_list',
value: searchParamsForm['search_list'] || '',
min: 20,
max: 65535,
isInt: true,
handleChange: value => {
handleInputChange('search_list', Number(value));
},
},
};

const param = configParamMap[paramKey];
Expand Down

0 comments on commit c6c771c

Please sign in to comment.