import _m0 from "protobufjs/minimal.js"; import { Vectors } from "./base.js"; export declare const protobufPackage = "weaviate.v1"; export declare enum CombinationMethod { COMBINATION_METHOD_UNSPECIFIED = 0, COMBINATION_METHOD_TYPE_SUM = 1, COMBINATION_METHOD_TYPE_MIN = 2, COMBINATION_METHOD_TYPE_AVERAGE = 3, COMBINATION_METHOD_TYPE_RELATIVE_SCORE = 4, COMBINATION_METHOD_TYPE_MANUAL = 5, UNRECOGNIZED = -1 } export declare function combinationMethodFromJSON(object: any): CombinationMethod; export declare function combinationMethodToJSON(object: CombinationMethod): string; export interface WeightsForTarget { target: string; weight: number; } export interface Targets { targetVectors: string[]; combination: CombinationMethod; weightsForTargets: WeightsForTarget[]; } export interface VectorForTarget { name: string; /** * deprecated in 1.29.0 - use vectors * * @deprecated */ vectorBytes: Uint8Array; vectors: Vectors[]; } export interface Selection { mmr?: Selection_MMR | undefined; } export interface Selection_MMR { limit?: number | undefined; balance?: number | undefined; } export interface SearchOperatorOptions { operator: SearchOperatorOptions_Operator; minimumOrTokensMatch?: number | undefined; } export declare enum SearchOperatorOptions_Operator { OPERATOR_UNSPECIFIED = 0, OPERATOR_OR = 1, OPERATOR_AND = 2, UNRECOGNIZED = -1 } export declare function searchOperatorOptions_OperatorFromJSON(object: any): SearchOperatorOptions_Operator; export declare function searchOperatorOptions_OperatorToJSON(object: SearchOperatorOptions_Operator): string; export interface Hybrid { query: string; properties: string[]; /** * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED * * @deprecated */ vector: number[]; /** * deprecated in 1.36.0 - use alpha_param * * @deprecated */ alpha: number; fusionType: Hybrid_FusionType; /** * deprecated in 1.29.0 - use vectors * * @deprecated */ vectorBytes: Uint8Array; /** * deprecated in 1.26 - use targets * * @deprecated */ targetVectors: string[]; /** targets in msg is ignored and should not be set for hybrid */ nearText: NearTextSearch | undefined; /** same as above. Use the target vector in the hybrid message */ nearVector: NearVector | undefined; targets: Targets | undefined; bm25SearchOperator?: SearchOperatorOptions | undefined; alphaParam?: number | undefined; /** * if true, alpha_param is used instead of alpha. * This is for backward compatibility, as alpha was used before alpha_param was introduced. */ useAlphaParam: boolean; selection?: Selection | undefined; vectorDistance?: number | undefined; vectors: Vectors[]; } export declare enum Hybrid_FusionType { FUSION_TYPE_UNSPECIFIED = 0, FUSION_TYPE_RANKED = 1, FUSION_TYPE_RELATIVE_SCORE = 2, UNRECOGNIZED = -1 } export declare function hybrid_FusionTypeFromJSON(object: any): Hybrid_FusionType; export declare function hybrid_FusionTypeToJSON(object: Hybrid_FusionType): string; export interface NearVector { /** * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED * * @deprecated */ vector: number[]; certainty?: number | undefined; distance?: number | undefined; /** * deprecated in 1.29.0 - use vectors * * @deprecated */ vectorBytes: Uint8Array; /** * deprecated in 1.26 - use targets * * @deprecated */ targetVectors: string[]; targets: Targets | undefined; /** * deprecated in 1.26.2 - use vector_for_targets * * @deprecated */ vectorPerTarget: { [key: string]: Uint8Array; }; vectorForTargets: VectorForTarget[]; vectors: Vectors[]; selection?: Selection | undefined; } export interface NearVector_VectorPerTargetEntry { key: string; value: Uint8Array; } export interface NearObject { id: string; certainty?: number | undefined; distance?: number | undefined; /** * deprecated in 1.26 - use targets * * @deprecated */ targetVectors: string[]; targets: Targets | undefined; selection?: Selection | undefined; } export interface NearTextSearch { /** protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED */ query: string[]; certainty?: number | undefined; distance?: number | undefined; moveTo?: NearTextSearch_Move | undefined; moveAway?: NearTextSearch_Move | undefined; /** * deprecated in 1.26 - use targets * * @deprecated */ targetVectors: string[]; targets: Targets | undefined; selection?: Selection | undefined; } export interface NearTextSearch_Move { force: number; concepts: string[]; uuids: string[]; } export interface NearImageSearch { image: string; certainty?: number | undefined; distance?: number | undefined; /** * deprecated in 1.26 - use targets * * @deprecated */ targetVectors: string[]; targets: Targets | undefined; selection?: Selection | undefined; } export interface NearAudioSearch { audio: string; certainty?: number | undefined; distance?: number | undefined; /** * deprecated in 1.26 - use targets * * @deprecated */ targetVectors: string[]; targets: Targets | undefined; selection?: Selection | undefined; } export interface NearVideoSearch { video: string; certainty?: number | undefined; distance?: number | undefined; /** * deprecated in 1.26 - use targets * * @deprecated */ targetVectors: string[]; targets: Targets | undefined; selection?: Selection | undefined; } export interface NearDepthSearch { depth: string; certainty?: number | undefined; distance?: number | undefined; /** * deprecated in 1.26 - use targets * * @deprecated */ targetVectors: string[]; targets: Targets | undefined; selection?: Selection | undefined; } export interface NearThermalSearch { thermal: string; certainty?: number | undefined; distance?: number | undefined; /** * deprecated in 1.26 - use targets * * @deprecated */ targetVectors: string[]; targets: Targets | undefined; selection?: Selection | undefined; } export interface NearIMUSearch { imu: string; certainty?: number | undefined; distance?: number | undefined; /** * deprecated in 1.26 - use targets * * @deprecated */ targetVectors: string[]; targets: Targets | undefined; selection?: Selection | undefined; } export interface BM25 { query: string; properties: string[]; searchOperator?: SearchOperatorOptions | undefined; } export declare const WeightsForTarget: { encode(message: WeightsForTarget, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): WeightsForTarget; fromJSON(object: any): WeightsForTarget; toJSON(message: WeightsForTarget): unknown; create(base?: DeepPartial): WeightsForTarget; fromPartial(object: DeepPartial): WeightsForTarget; }; export declare const Targets: { encode(message: Targets, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Targets; fromJSON(object: any): Targets; toJSON(message: Targets): unknown; create(base?: DeepPartial): Targets; fromPartial(object: DeepPartial): Targets; }; export declare const VectorForTarget: { encode(message: VectorForTarget, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VectorForTarget; fromJSON(object: any): VectorForTarget; toJSON(message: VectorForTarget): unknown; create(base?: DeepPartial): VectorForTarget; fromPartial(object: DeepPartial): VectorForTarget; }; export declare const Selection: { encode(message: Selection, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Selection; fromJSON(object: any): Selection; toJSON(message: Selection): unknown; create(base?: DeepPartial): Selection; fromPartial(object: DeepPartial): Selection; }; export declare const Selection_MMR: { encode(message: Selection_MMR, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Selection_MMR; fromJSON(object: any): Selection_MMR; toJSON(message: Selection_MMR): unknown; create(base?: DeepPartial): Selection_MMR; fromPartial(object: DeepPartial): Selection_MMR; }; export declare const SearchOperatorOptions: { encode(message: SearchOperatorOptions, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SearchOperatorOptions; fromJSON(object: any): SearchOperatorOptions; toJSON(message: SearchOperatorOptions): unknown; create(base?: DeepPartial): SearchOperatorOptions; fromPartial(object: DeepPartial): SearchOperatorOptions; }; export declare const Hybrid: { encode(message: Hybrid, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Hybrid; fromJSON(object: any): Hybrid; toJSON(message: Hybrid): unknown; create(base?: DeepPartial): Hybrid; fromPartial(object: DeepPartial): Hybrid; }; export declare const NearVector: { encode(message: NearVector, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): NearVector; fromJSON(object: any): NearVector; toJSON(message: NearVector): unknown; create(base?: DeepPartial): NearVector; fromPartial(object: DeepPartial): NearVector; }; export declare const NearVector_VectorPerTargetEntry: { encode(message: NearVector_VectorPerTargetEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): NearVector_VectorPerTargetEntry; fromJSON(object: any): NearVector_VectorPerTargetEntry; toJSON(message: NearVector_VectorPerTargetEntry): unknown; create(base?: DeepPartial): NearVector_VectorPerTargetEntry; fromPartial(object: DeepPartial): NearVector_VectorPerTargetEntry; }; export declare const NearObject: { encode(message: NearObject, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): NearObject; fromJSON(object: any): NearObject; toJSON(message: NearObject): unknown; create(base?: DeepPartial): NearObject; fromPartial(object: DeepPartial): NearObject; }; export declare const NearTextSearch: { encode(message: NearTextSearch, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): NearTextSearch; fromJSON(object: any): NearTextSearch; toJSON(message: NearTextSearch): unknown; create(base?: DeepPartial): NearTextSearch; fromPartial(object: DeepPartial): NearTextSearch; }; export declare const NearTextSearch_Move: { encode(message: NearTextSearch_Move, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): NearTextSearch_Move; fromJSON(object: any): NearTextSearch_Move; toJSON(message: NearTextSearch_Move): unknown; create(base?: DeepPartial): NearTextSearch_Move; fromPartial(object: DeepPartial): NearTextSearch_Move; }; export declare const NearImageSearch: { encode(message: NearImageSearch, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): NearImageSearch; fromJSON(object: any): NearImageSearch; toJSON(message: NearImageSearch): unknown; create(base?: DeepPartial): NearImageSearch; fromPartial(object: DeepPartial): NearImageSearch; }; export declare const NearAudioSearch: { encode(message: NearAudioSearch, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): NearAudioSearch; fromJSON(object: any): NearAudioSearch; toJSON(message: NearAudioSearch): unknown; create(base?: DeepPartial): NearAudioSearch; fromPartial(object: DeepPartial): NearAudioSearch; }; export declare const NearVideoSearch: { encode(message: NearVideoSearch, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): NearVideoSearch; fromJSON(object: any): NearVideoSearch; toJSON(message: NearVideoSearch): unknown; create(base?: DeepPartial): NearVideoSearch; fromPartial(object: DeepPartial): NearVideoSearch; }; export declare const NearDepthSearch: { encode(message: NearDepthSearch, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): NearDepthSearch; fromJSON(object: any): NearDepthSearch; toJSON(message: NearDepthSearch): unknown; create(base?: DeepPartial): NearDepthSearch; fromPartial(object: DeepPartial): NearDepthSearch; }; export declare const NearThermalSearch: { encode(message: NearThermalSearch, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): NearThermalSearch; fromJSON(object: any): NearThermalSearch; toJSON(message: NearThermalSearch): unknown; create(base?: DeepPartial): NearThermalSearch; fromPartial(object: DeepPartial): NearThermalSearch; }; export declare const NearIMUSearch: { encode(message: NearIMUSearch, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): NearIMUSearch; fromJSON(object: any): NearIMUSearch; toJSON(message: NearIMUSearch): unknown; create(base?: DeepPartial): NearIMUSearch; fromPartial(object: DeepPartial): NearIMUSearch; }; export declare const BM25: { encode(message: BM25, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): BM25; fromJSON(object: any): BM25; toJSON(message: BM25): unknown; create(base?: DeepPartial): BM25; fromPartial(object: DeepPartial): BM25; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};