Skip to content
New issue

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

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

Already on GitHub? # to your account

enhance: support hints param #383

Merged
merged 1 commit into from
Dec 13, 2024
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
2 changes: 2 additions & 0 deletions milvus/types/Data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ export interface SearchParam {
group_by_field?: string; // group by field
group_size?: number; // group size
strict_group_size?: boolean; // if strict group size
hints?: string; // hints to improve milvus search performance
}

// old search api parameter type, deprecated
Expand Down Expand Up @@ -352,6 +353,7 @@ export interface SearchSimpleReq extends collectionNameReq {
group_by_field?: string; // group by field
group_size?: number; // group size
strict_group_size?: boolean; // if strict group size
hints?: string; // hints to improve milvus search performance
round_decimal?: number; // round decimal
transformers?: OutputTransformers; // provide custom data transformer for specific data type like bf16 or f16 vectors
}
Expand Down
3 changes: 3 additions & 0 deletions milvus/utils/Format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,9 @@ export const buildSearchParams = (
if (data.group_size) {
search_params.group_size = data.group_size;
}
if (data.hints) {
search_params.hints = data.hints;
}

return search_params;
};
Expand Down
Loading