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

Commit

Permalink
change: use model-provider tool instead of gateway credential (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
iwilltry42 authored Oct 9, 2024
1 parent 678f38a commit 058b421
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion delete.gpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Name: Knowledge Deletion
Description: Delete a dataset.
Credential: github.com/gptscript-ai/gateway-creds as github.com/gptscript-ai/gateway

#!${GPTSCRIPT_TOOL_DIR}/bin/gptscript-go-tool delete-dataset "${GPTSCRIPT_INPUT}"
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.
Credential: github.com/gptscript-ai/gateway-creds as github.com/gptscript-ai/gateway
Tools: github.com/gptscript-ai/credentials/model-provider

#!${GPTSCRIPT_TOOL_DIR}/bin/gptscript-go-tool ingest --prune --dataset ${GPTSCRIPT_DATASET} "${GPTSCRIPT_INPUT}"
4 changes: 2 additions & 2 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.
Credential: github.com/gptscript-ai/gateway-creds as github.com/gptscript-ai/gateway
Tools: 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.
Credential: github.com/gptscript-ai/gateway-creds as github.com/gptscript-ai/gateway
Tools: github.com/gptscript-ai/credentials/model-provider
Type: context
Input Filter: QueryRelevancy
Output Filter: KnowledgeInstructions
Expand Down

0 comments on commit 058b421

Please sign in to comment.