Skip to content

Commit cbfe70d

Browse files
committed
improvement(search): remove Answer with Sim action
1 parent 0689c67 commit cbfe70d

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

apps/sim/app/workspace/[workspaceId]/home/components/knowledge-search-results/knowledge-search-results.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
22

33
import { useMemo } from 'react'
4-
import { Button, Chip, OverflowText } from '@sim/emcn'
4+
import { Chip, OverflowText } from '@sim/emcn'
55
import { FileText } from '@sim/emcn/icons'
66
import { formatDate } from '@sim/utils/formatting'
77
import { useQueryStates } from 'nuqs'
@@ -153,8 +153,6 @@ interface KnowledgeSearchResultsProps {
153153
query: string
154154
/** Asks the agent about one document; the prompt names it and links to it. */
155155
onSummarize: (prompt: string) => void
156-
/** Asks the agent the query itself, for a prose answer with citations. */
157-
onAnswer: (query: string) => void
158156
}
159157

160158
/**
@@ -170,7 +168,6 @@ export function KnowledgeSearchResults({
170168
workspaceId,
171169
query,
172170
onSummarize,
173-
onAnswer,
174171
}: KnowledgeSearchResultsProps) {
175172
const {
176173
data: knowledgeBases = [],
@@ -255,9 +252,6 @@ export function KnowledgeSearchResults({
255252
{' · searched as you'}
256253
{indexingNote && <span className='block'>{indexingNote}</span>}
257254
</span>
258-
<Button variant='ghost' size='sm' onClick={() => onAnswer(query)}>
259-
Answer with Sim
260-
</Button>
261255
</div>
262256
{showFilters && (
263257
<div className='flex flex-wrap items-center gap-1.5 px-2 pb-2'>

apps/sim/app/workspace/[workspaceId]/home/home.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,6 @@ export function Home({ chatId, userName, userId }: HomeProps) {
579579
workspaceId={workspaceId}
580580
query={searchQuery}
581581
onSummarize={handleSummarize}
582-
onAnswer={handleSummarize}
583582
/>
584583
) : null
585584

0 commit comments

Comments
 (0)