UNPKG

vespa-ts

Version:

A reusable TypeScript package for interacting with Vespa search engine with dependency injection support

11 lines 1.28 kB
import { type VespaAutocompleteResponse, type VespaSearchResponse, type ScoredChunk, VespaMatchFeatureSchema, type VespaSchema, type AutocompleteResults, type SearchResponse, type AppEntityCounts } from "../types"; import type { z } from "zod"; import type { ITextChunker } from "../types"; export declare const getSortedScoredImageChunks: (matchfeatures: z.infer<typeof VespaMatchFeatureSchema>, existingImageChunksPosSummary: number[], existingImageChunksSummary: string[], docId: string, maxChunks?: number) => ScoredChunk[]; export declare const getSortedScoredChunks: (matchfeatures: z.infer<typeof VespaMatchFeatureSchema>, existingChunksSummary: string[], maxChunks?: number) => ScoredChunk[]; export declare const VespaSearchResponseToSearchResult: (resp: VespaSearchResponse, email?: string, textChunker?: ITextChunker) => SearchResponse; export declare const VespaAutocompleteResponseToResult: (resp: VespaAutocompleteResponse) => AutocompleteResults; export declare function handleVespaGroupResponse(response: VespaSearchResponse): AppEntityCounts; export declare const entityToSchemaMapper: (entityName?: string, app?: string) => VespaSchema | null; export declare const appToSchemaMapper: (appName?: string) => VespaSchema | null; //# sourceMappingURL=index.d.ts.map