khronoz's picture
V.0.3.0 (#28)
fdaf912 unverified
raw
history blame contribute delete
653 Bytes
import { ChangeEvent, FormEvent } from "react";
export interface SearchHandler {
collSelectedId: string;
collSelectedName: string;
handleCollIdSelect: (collection_id: string) => void;
handleCollNameSelect: (display_name: string) => void;
query: string;
isLoading: boolean;
onInputChange?: (e: ChangeEvent<HTMLInputElement>) => void;
onSearchSubmit?: (e: FormEvent) => void;
results: SearchResult[];
searchButtonPressed?: boolean;
}
export interface SearchResult {
id: number;
file_name: string;
page_no: number;
text: string;
similarity_score: number;
// Add more properties as needed
}