mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-04 01:48:27 +02:00
Default to semantic search
This commit is contained in:
parent
c95cf5ca74
commit
2885240183
@ -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,
|
||||
)
|
||||
|
@ -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 (
|
||||
<>
|
||||
|
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user