You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -421,6 +421,7 @@ async function askQuestion(question: string): Promise<void> {
421
421
topic_id: topicData.id,
422
422
new_message_content: question,
423
423
use_agentic_search: true,
424
+
model: 'o3',
424
425
});
425
426
426
427
// Stream the response
@@ -600,7 +601,7 @@ function formatChunksCollapsible(chunks: ChunkMetadata[]): string {
600
601
}
601
602
602
603
program
603
-
.name('trieve-cli')
604
+
.name('trieve')
604
605
.description('A CLI tool for using Trieve')
605
606
.version('1.0.0');
606
607
@@ -617,29 +618,30 @@ program
617
618
}
618
619
});
619
620
620
-
// -t "Always use the search tool here when the user asks a question about some information you're supposed to have or some files."
621
-
// -q "Write this as a maximum 5 word query with the keywords you think would be useful"
622
-
623
621
program
624
622
.command('update-tool-config')
625
623
.description('Update the tool configuration for a dataset')
626
-
.requiredOption(
624
+
.option(
627
625
'-t, --tool-description <toolDescription>',
628
626
'Description that tells the LLM when it should use the search tool to retrieve information from your dataset',
629
627
"Always use the search tool here when the user asks a question about some information you're supposed to have or some files.",
630
628
)
631
-
.requiredOption(
629
+
.option(
632
630
'-q, --query-description <queryDescription>',
633
631
'Description of how the LLM should write its search queries to retrieve relevant information from your dataset',
634
632
'Write this as a maximum 5 word query with the keywords you think would be useful',
635
633
)
634
+
.option(
635
+
'-s, --system-prompt <systemPrompt>',
636
+
'Custom system prompt for the AI assistant',
637
+
"You are an AI assistant that helps people find information in a set of documents. You have access to a search tool that can retrieve relevant information from the documents based on a query. When you need to find information, use the search tool by writing a concise query that captures the essence of what you're looking for. Be specific and use keywords that are likely to yield relevant results. Once you receive the search results, use them to answer the user's question accurately and comprehensively. If the search results do not contain the information you need, inform the user that you couldn't find an answer in the documents.",
"You are an AI assistant that helps people find information in a set of documents. You have access to a search tool that can retrieve relevant information from the documents based on a query. When you need to find information, use the search tool by writing a concise query that captures the essence of what you're looking for. Be specific and use keywords that are likely to yield relevant results. Once you receive the search results, use them to answer the user's question accurately and comprehensively. If the search results do not contain the information you need, inform the user that you couldn't find an answer in the documents.",
729
+
TOOL_CONFIGURATION: {
730
+
query_tool_options: {
731
+
tool_description:
732
+
"Always use the search tool here when the user asks a question about some information you're supposed to have or some files.",
733
+
query_parameter_description:
734
+
'Write this as a maximum 5 word query with the keywords you think would be useful',
735
+
price_filter_description:
736
+
'The page range filter to use for the search',
737
+
738
+
max_price_option_description: 'The maximum page to filter by',
739
+
740
+
min_price_option_description: 'The minimum page to filter by',
$ ${chalk.green('trieve-cli ask "What is the capital of France?"')}
770
-
$ ${chalk.green('trieve-cli ask')}
771
-
$ ${chalk.green('trieve-cli update-tool-config -t "Use this tool to search for information about our products and services" -q "Write specific search queries to find relevant information from our knowledge base"')}
"test": "echo \"Error: no test specified\" && exit 1"
15
+
"format:fix": "prettier --write ."
17
16
},
18
-
"author": "",
19
-
"license": "ISC",
20
-
"description": "",
17
+
"author": "Trieve Team <contact@trieve.ai>",
18
+
"license": "MIT",
19
+
"description": "Beta command-line interface for Trieve API that enables users to upload files and interact with them using agentic RAG (Retrieval Augmented Generation). Simplifies document management and Q&A workflows.",
0 commit comments