Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support diskann #240

Merged
merged 1 commit into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading