Skip to content

Commit

Permalink
tool disabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
samlhuillier committed Oct 30, 2024
1 parent 01a0c52 commit ccb1330
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/components/Chat/ChatConfigComponents/exampleAgents.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { AgentConfig, PromptTemplate } from '../../../lib/llm/types'
import { allAvailableToolDefinitions } from '../../../lib/llm/tools/tool-definitions'

const defaultAgentPromptTemplate: PromptTemplate = [
{
Expand Down Expand Up @@ -66,12 +65,12 @@ const exampleAgents: AgentConfig[] = [
files: [],
name: 'Default',
dbSearchFilters: {
limit: 20,
limit: 30,
minDate: undefined,
maxDate: undefined,
passFullNoteIntoContext: true,
},
toolDefinitions: allAvailableToolDefinitions,
toolDefinitions: [],
promptTemplate: defaultAgentPromptTemplate,
},
// {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Chat/StartChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ const StartChat: React.FC<StartChatProps> = ({ defaultModelName, handleNewChatMe
className="scale-75"
/>
<Label htmlFor="db-search-toggle" className="ml-1 text-xs text-muted-foreground">
Make initial knowledge base search
Make knowledge base search
</Label>
</div>
<Drawer>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/llm/tools/tool-definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const searchToolDefinition: ToolDefinition = {
{
name: 'query',
type: 'string',
description: 'The query to search for',
description: 'The query to search for. To get the best results, this should be the full user query.',
},
{
name: 'limit',
Expand Down

0 comments on commit ccb1330

Please sign in to comment.