diff --git a/frontend/src/components/search/SearchForm.tsx b/frontend/src/components/search/SearchForm.tsx index 4bf3737..4eeae93 100644 --- a/frontend/src/components/search/SearchForm.tsx +++ b/frontend/src/components/search/SearchForm.tsx @@ -56,11 +56,12 @@ export const SearchForm = ({ isLoading, onSearch }: SearchFormProps) => { const [tags, setTags] = useState>({}) const [dynamicFilters, setDynamicFilters] = useState>({}) const [limit, setLimit] = useState(10) - // Search enhancement options (undefined = use server defaults) - const [useBm25, setUseBm25] = useState(undefined) - const [useHyde, setUseHyde] = useState(undefined) - const [useReranking, setUseReranking] = useState(undefined) - const [useQueryAnalysis, setUseQueryAnalysis] = useState(undefined) + // Search enhancement options - initialize to match server defaults + // Server defaults: BM25=true, HyDE=true, Reranking=true, QueryAnalysis=false + const [useBm25, setUseBm25] = useState(true) + const [useHyde, setUseHyde] = useState(true) + const [useReranking, setUseReranking] = useState(true) + const [useQueryAnalysis, setUseQueryAnalysis] = useState(false) const { getMetadataSchemas, getTags } = useMCP() useEffect(() => { @@ -146,40 +147,40 @@ export const SearchForm = ({ isLoading, onSearch }: SearchFormProps) => {