import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Filter, Filter$Outbound } from "./filter.js"; /** * A query string for a search, or an array of query strings. */ export type Query = string | Array; /** * Enable re-ranking; set to 'none' to disable, which can help reduce latency. */ export declare const Ranker: { readonly Auto: "auto"; readonly None: "none"; }; /** * Enable re-ranking; set to 'none' to disable, which can help reduce latency. */ export type Ranker = ClosedEnum; /** * Ranking options for search. */ export type SearchVectorStoreRequestRankingOptions = { /** * Enable re-ranking; set to 'none' to disable, which can help reduce latency. */ ranker?: Ranker | undefined; /** * Minimum score threshold for search results. */ scoreThreshold?: number | undefined; }; /** * Request body for searching a vector store. */ export type SearchVectorStoreRequest = { /** * A query string for a search, or an array of query strings. */ query: string | Array; filters?: Filter | undefined; /** * The maximum number of results to return. This number should be between 1 and 50 inclusive. */ maxNumResults?: number | undefined; /** * Ranking options for search. */ rankingOptions?: SearchVectorStoreRequestRankingOptions | undefined; /** * Whether to rewrite the natural language query for vector search. */ rewriteQuery?: boolean | undefined; }; /** @internal */ export declare const Query$inboundSchema: z.ZodType; /** @internal */ export type Query$Outbound = string | Array; /** @internal */ export declare const Query$outboundSchema: z.ZodType; export declare function queryToJSON(query: Query): string; export declare function queryFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Ranker$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Ranker$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SearchVectorStoreRequestRankingOptions$inboundSchema: z.ZodType; /** @internal */ export type SearchVectorStoreRequestRankingOptions$Outbound = { ranker: string; score_threshold: number; }; /** @internal */ export declare const SearchVectorStoreRequestRankingOptions$outboundSchema: z.ZodType; export declare function searchVectorStoreRequestRankingOptionsToJSON(searchVectorStoreRequestRankingOptions: SearchVectorStoreRequestRankingOptions): string; export declare function searchVectorStoreRequestRankingOptionsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SearchVectorStoreRequest$inboundSchema: z.ZodType; /** @internal */ export type SearchVectorStoreRequest$Outbound = { query: string | Array; filters?: Filter$Outbound | undefined; max_num_results: number; ranking_options?: SearchVectorStoreRequestRankingOptions$Outbound | undefined; rewrite_query: boolean; }; /** @internal */ export declare const SearchVectorStoreRequest$outboundSchema: z.ZodType; export declare function searchVectorStoreRequestToJSON(searchVectorStoreRequest: SearchVectorStoreRequest): string; export declare function searchVectorStoreRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=searchvectorstorerequest.d.ts.map