Skip to content

Commit ee7ae15

Browse files
committed
feat(website): Add tutorial on building Agentic RAG for any PDF using Trieve and Chunkr
1 parent 80ee13f commit ee7ae15

File tree

5 files changed

+385
-8
lines changed

5 files changed

+385
-8
lines changed

clients/cli/index.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ function formatChunksCollapsible(chunks: ChunkMetadata[]): string {
639639
program
640640
.name('trieve')
641641
.description('A CLI tool for using Trieve')
642-
.version('0.0.2');
642+
.version('0.0.4');
643643

644644
program
645645
.command('upload')
@@ -761,18 +761,16 @@ program
761761
dataset_id: datasetId,
762762
server_configuration: {
763763
SYSTEM_PROMPT:
764-
"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. YOU MUST ALWAYS USE THE SEARCH TOOL FOR EVERY USER QUESTION WITHOUT EXCEPTION. Do not rely on your own knowledge - it may be outdated or incorrect. For each user question: 1) Use the search tool with a well-crafted query 2) If the first search doesn't yield satisfactory results, try additional searches with different terms 3) Only after searching should you formulate your response, citing the information found. Always inform the user that your answer is based on search results from their documents. If you don't find relevant information after multiple searches, be honest about this limitation.",
764+
"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. YOU MUST ALWAYS CALL AND USE THE SEARCH TOOL FOR EVERY USER QUESTION WITHOUT EXCEPTION. Do not rely on your own knowledge - it may be outdated or incorrect. For each user question: 1) Use the search tool with a well-crafted query 2) If the first search doesn't yield satisfactory results, try additional searches with different terms 3) Only after searching should you formulate your response, citing the information found. Always inform the user that your answer is based on search results from their documents. If you don't find relevant information after multiple searches, be honest about this limitation.",
765765
TOOL_CONFIGURATION: {
766766
query_tool_options: {
767767
tool_description:
768-
'ALWAYS use the search tool for EVERY user question, even if you think you already know the answer. Your knowledge is limited and potentially outdated - you must rely on the provided search tool to get the most accurate and up-to-date information.',
768+
'ALWAYS call this search tool for EVERY user question, even if you think you already know the answer. Your knowledge is limited and potentially outdated - you must rely on the provided search tool to get the most accurate and up-to-date information.',
769769
query_parameter_description:
770770
'Write a specific query with critical keywords from the user question. Use multiple search queries with different terms if needed to get comprehensive results.',
771771
price_filter_description:
772772
'The page range filter to use for the search',
773-
774773
max_price_option_description: 'The maximum page to filter by',
775-
776774
min_price_option_description: 'The minimum page to filter by',
777775
},
778776
},

clients/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "trieve-cli",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"type": "module",
55
"main": "dist/index.js",
66
"bin": {

0 commit comments

Comments
 (0)