Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
fix: use credential keyword for credential references (#138)
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville authored Oct 11, 2024
1 parent 4185ed0 commit b55fdd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ingest.gpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: Knowledge Ingestion
Description: Ingest content into a dataset.
Tools: github.com/gptscript-ai/credentials/model-provider
Credential: github.com/gptscript-ai/credentials/model-provider

#!${GPTSCRIPT_TOOL_DIR}/bin/gptscript-go-tool ingest --prune --dataset ${GPTSCRIPT_DATASET} "${GPTSCRIPT_INPUT}"
6 changes: 3 additions & 3 deletions tool.gpt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If the answers that the knowledge tool returns seem irrelevant, you may use anot
---
Name: Knowledge Retrieval
Description: Retrieve information from files uploaded by the user.
Tools: github.com/gptscript-ai/credentials/model-provider
Credential: github.com/gptscript-ai/credentials/model-provider
Param: query: The query to search for in the knowledge base. It will be used for semantic similarity search, so enhance it accordingly to yield good results.
Param: debug: (OPTIONAL) Set to "true" to enable debug mode - only use if you are explicitly asked to do so.

Expand All @@ -25,7 +25,7 @@ Param: debug: (OPTIONAL) Set to "true" to enable debug mode - only use if you ar
---
Name: Knowledge Retrieval Context
Description: Add knowledge retrieved from uploaded files to the context.
Tools: github.com/gptscript-ai/credentials/model-provider
Credential: github.com/gptscript-ai/credentials/model-provider
Type: context
Input Filter: QueryRelevancy
Output Filter: KnowledgeInstructions
Expand Down Expand Up @@ -185,4 +185,4 @@ Params: input: Path to input file
Params: output: Path to output file where the extracted markdown content should be written to. Should end with .md
Params: loader: Optionally choose a specific loader for the file to not rely on the default. Only use if explicitly specified.

#!${GPTSCRIPT_TOOL_DIR}/bin/gptscript-go-tool load ${INPUT} ${OUTPUT} ${LOADER:+--loader=${LOADER}}
#!${GPTSCRIPT_TOOL_DIR}/bin/gptscript-go-tool load ${INPUT} ${OUTPUT} ${LOADER:+--loader=${LOADER}}

0 comments on commit b55fdd1

Please sign in to comment.