Default to semantic search

This commit is contained in:
Weves 2023-09-02 10:40:43 -07:00 committed by Chris Weaver
parent c95cf5ca74
commit 2885240183
3 changed files with 2 additions and 15 deletions

View File

@ -53,7 +53,7 @@ def handle_message(
QuestionRequest(
query=msg,
collection=DOCUMENT_INDEX_NAME,
use_keyword=None,
use_keyword=False, # always use semantic search when handling slack messages
filters=None,
offset=None,
)

View File

@ -52,7 +52,7 @@ export default async function Home() {
storedSearchType !== undefined &&
SearchType.hasOwnProperty(storedSearchType)
? (storedSearchType as SearchType)
: SearchType.AUTOMATIC; // default to automatic
: SearchType.SEMANTIC; // default to semantic
return (
<>

View File

@ -17,19 +17,6 @@ export const SearchTypeSelector: React.FC<Props> = ({
<div
className={
defaultStyle +
(selectedSearchType === SearchType.AUTOMATIC
? "bg-blue-500"
: "bg-gray-800 hover:bg-gray-600")
}
onClick={() => setSelectedSearchType(SearchType.AUTOMATIC)}
>
Auto
</div>
<div
className={
defaultStyle +
"ml-2 " +
(selectedSearchType === SearchType.SEMANTIC
? "bg-blue-500"
: "bg-gray-800 hover:bg-gray-600")