Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit 04cfddd

Browse files
authored
Merge pull request #444 from reorproject/jp/pre-rel
pre release
2 parents b64b765 + 291461f commit 04cfddd

File tree

4 files changed

+35
-15
lines changed

4 files changed

+35
-15
lines changed

src/components/Chat/ChatConfigComponents/PromptEditor.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ const PromptEditor: React.FC<{
3333
return (
3434
<div className="w-[32rem] text-foreground">
3535
<h3 className="text-foreground">Edit System Prompt</h3>
36-
<p className="text-muted-foreground">Customize the system prompt for your AI assistant.</p>
36+
<p className="text-muted-foreground">
37+
Customize the system prompt for your AI assistant. Use <code>{'{TODAY}'}</code> to feed the model today&apos;s
38+
date.
39+
</p>
3740
<div className="grid gap-6 py-4">
3841
<div className="flex items-start gap-4">
3942
<Textarea

src/components/Chat/StartChat.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ const StartChat: React.FC<StartChatProps> = ({ defaultModelName, handleNewChatMe
3636
const [userTextFieldInput, setUserTextFieldInput] = useState<string>('')
3737
const [agentConfig, setAgentConfig] = useState<AgentConfig>()
3838
const [promptSuggestions] = useState([
39-
"What's the latest update on my project?",
39+
'Generate a list of all the thoughts I have written on the topic of AGI',
4040
'Summarize my recent notes on machine learning',
41-
'Create a to-do list for today based on my calendar',
41+
'Based on what I wrote last week, which tasks should I focus on this week?',
4242
])
4343

4444
useEffect(() => {
@@ -114,9 +114,10 @@ const StartChat: React.FC<StartChatProps> = ({ defaultModelName, handleNewChatMe
114114
<div className="flex w-full justify-center">
115115
<img src="icon.png" className="size-16" alt="ReorImage" />
116116
</div>
117-
<h1 className="mb-10 text-[28px] text-foreground">
118-
Welcome to your AI-powered assistant! Start a conversation with your second brain!
119-
</h1>
117+
<h1 className="mb-0 text-[28px] text-foreground">Welcome to your AI second brain.</h1>
118+
<p className="mb-10 mt-1 text-muted-foreground">
119+
Start a chat below. You can provide tools for the LLM to use and customize the system prompt below.{' '}
120+
</p>
120121
<div className="flex w-full">
121122
<div className="mr-4">
122123
<ToolSelector

src/components/Chat/index.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,17 @@ const ChatComponent: React.FC = () => {
115115
if (error instanceof Error && error.name === 'AI_APICallError' && error.message.includes('Bad Request')) {
116116
if (agentConfig && agentConfig?.toolDefinitions.length > 0 && outputChat) {
117117
toast.info(
118-
'Disabling tools as this model does not support them. If you want to use tools, please select a different model. If you want to retrieve from your knowledge base, select "make initial search" option.',
118+
<div>
119+
This model does not support tool calling. To use tool calling, please download a model from this page:{' '}
120+
<a href="https://ollama.com/search?c=tools" target="_blank" rel="noopener noreferrer">
121+
https://ollama.com/search?c=tools
122+
</a>{' '}
123+
or use a cloud LLM like GPT-4o or Claude.
124+
</div>,
125+
{
126+
autoClose: false,
127+
closeOnClick: false,
128+
},
119129
)
120130
const agentWithoutTools = { ...agentConfig, toolDefinitions: [] }
121131
outputChat.toolDefinitions = []

src/lib/llm/tools/tool-definitions.ts

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { retreiveFromVectorDB } from '@/lib/db'
44
export const searchToolDefinition: ToolDefinition = {
55
name: 'search',
66
displayName: 'Search',
7-
description: "Semantically search the user's personal knowledge base",
7+
description:
8+
'The search tool allows the LLM to automatically search your knowledge base. It is the most powerful tool because it can do things like filter by date & time which means you can ask things like "what did I work on last week?"',
89
parameters: [
910
{
1011
name: 'query',
@@ -36,7 +37,8 @@ export const searchToolDefinition: ToolDefinition = {
3637
export const createNoteToolDefinition: ToolDefinition = {
3738
name: 'createNote',
3839
displayName: 'Create Note',
39-
description: "Create a new note in the user's personal knowledge base.",
40+
description:
41+
'The create note tool allows the LLM to automatically create new notes for you. It will ask you to confirm before creating a new note.',
4042
parameters: [
4143
{
4244
name: 'filename',
@@ -54,7 +56,8 @@ export const createNoteToolDefinition: ToolDefinition = {
5456
export const createDirectoryToolDefinition: ToolDefinition = {
5557
name: 'createDirectory',
5658
displayName: 'Create Directory',
57-
description: "Create a new directory in the user's personal knowledge base",
59+
description:
60+
'The create directory tool allows the LLM to automatically create new directories for you. It will ask you to confirm before creating a new directory.',
5861
parameters: [
5962
{
6063
name: 'directoryName',
@@ -67,7 +70,8 @@ export const createDirectoryToolDefinition: ToolDefinition = {
6770
const readFileToolDefinition: ToolDefinition = {
6871
name: 'readFile',
6972
displayName: 'Read File',
70-
description: "Read a file from the user's personal knowledge base",
73+
description:
74+
'The read file tool allows the LLM to automatically read files from your knowledge base. It will ask you to confirm before reading a file.',
7175
parameters: [
7276
{
7377
name: 'filePath',
@@ -80,7 +84,8 @@ const readFileToolDefinition: ToolDefinition = {
8084
export const deleteNoteToolDefinition: ToolDefinition = {
8185
name: 'deleteNote',
8286
displayName: 'Delete Note',
83-
description: "Delete a note from the user's personal knowledge base",
87+
description:
88+
'The delete note tool allows the LLM to automatically delete notes from your knowledge base. It will ask you to confirm before deleting a note.',
8489
parameters: [
8590
{
8691
name: 'filename',
@@ -94,7 +99,7 @@ export const editNoteToolDefinition: ToolDefinition = {
9499
name: 'editNote',
95100
displayName: 'Edit Note',
96101
description:
97-
"Edit a note in the user's personal knowledge base. You must provide the full note content as the new content.",
102+
'The edit note tool allows the LLM to automatically edit notes in your knowledge base. It will ask you to confirm before editing a note.',
98103
parameters: [
99104
{
100105
name: 'filename',
@@ -112,7 +117,8 @@ export const editNoteToolDefinition: ToolDefinition = {
112117
export const appendToNoteToolDefinition: ToolDefinition = {
113118
name: 'appendToNote',
114119
displayName: 'Append to Note',
115-
description: "Append to a note in the user's personal knowledge base",
120+
description:
121+
'The append to note tool allows the LLM to automatically append to notes in your knowledge base. It will ask you to confirm before appending to a note.',
116122
parameters: [
117123
{
118124
name: 'filename',
@@ -130,7 +136,7 @@ export const appendToNoteToolDefinition: ToolDefinition = {
130136
export const listFilesToolDefinition: ToolDefinition = {
131137
name: 'listFiles',
132138
displayName: 'List Files',
133-
description: "List all files in the user's personal knowledge base",
139+
description: 'The list files tool allows the LLM to automatically list files from your knowledge base.',
134140
parameters: [],
135141
}
136142

0 commit comments

Comments
 (0)