From f9e9ad5f4be6e3d76eee2b94c1217cf55639c7cb Mon Sep 17 00:00:00 2001 From: mruwnik Date: Sun, 21 Dec 2025 16:22:22 +0000 Subject: [PATCH] Fix search enhancement UI to show actual server defaults MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Initialize checkboxes to match server defaults (BM25, HyDE, Reranking enabled; Query Analysis disabled) so the UI accurately reflects what the server is actually doing. Previously showed all as unchecked which was confusing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- frontend/src/components/search/SearchForm.tsx | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) 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) => {