searches.do
Version:
SDK for querying and retrieving data in workflows
27 lines (22 loc) • 762 B
TypeScript
import { Search as Search$1, ClientOptions } from 'apis.do/types';
/**
* Generated Search constants
* DO NOT EDIT DIRECTLY - This file is generated at build time
*/
declare const SEARCH_NAMES: readonly ["textSearch", "vectorSearch", "hybridSearch", "metadataSearch", "semanticSearch"];
type SearchName = (typeof SEARCH_NAMES)[number];
/**
* Type definitions for searches.do SDK
*/
type Search = Search$1;
interface SearchConfig {
name: string;
query?: string;
searchType?: 'text' | 'vector' | 'hybrid';
embedding?: Record<string, any>;
}
interface SearchClientOptions extends ClientOptions {
baseUrl?: string;
apiKey?: string;
}
export { SEARCH_NAMES, type Search, type SearchClientOptions, type SearchConfig, type SearchName };