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

Commit

Permalink
Merge pull request #125 from StrongMonkey/optional
Browse files Browse the repository at this point in the history
Fix: make script_id and thread_id optional
  • Loading branch information
StrongMonkey authored Sep 18, 2024
2 parents ec0c599 + 68d5559 commit 866b186
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gateway/tool.gpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Credential: github.com/gptscript-ai/gateway-creds as github.com/gptscript-ai/gat
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.

#!${KNOWLEDGE_BIN} retrieve --dataset ${GPTSCRIPT_THREAD_ID} --dataset ${GPTSCRIPT_SCRIPT_ID} "${GPTSCRIPT_INPUT}"
#!${KNOWLEDGE_BIN} retrieve ${GPTSCRIPT_THREAD_ID:+--dataset=${GPTSCRIPT_THREAD_ID}} ${GPTSCRIPT_SCRIPT_ID:+--dataset=${GPTSCRIPT_SCRIPT_ID}} "${GPTSCRIPT_INPUT}"

---
Name: Knowledge Retrieval Context
Expand All @@ -30,7 +30,7 @@ Type: context
Input Filter: QueryRelevancy
Output Filter: KnowledgeInstructions

#!${KNOWLEDGE_BIN} retrieve --debug --flows-file=blueprint:context --dataset ${GPTSCRIPT_THREAD_ID} --dataset ${GPTSCRIPT_SCRIPT_ID} "${GPTSCRIPT_INPUT}"
#!${KNOWLEDGE_BIN} retrieve --debug --flows-file=blueprint:context ${GPTSCRIPT_THREAD_ID:+--dataset=${GPTSCRIPT_THREAD_ID}} ${GPTSCRIPT_SCRIPT_ID:+--dataset=${GPTSCRIPT_SCRIPT_ID}} "${GPTSCRIPT_INPUT}"

---
Name: QueryRelevancy
Expand Down
4 changes: 2 additions & 2 deletions tool.gpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Credential: github.com/gptscript-ai/gateway-creds as github.com/gptscript-ai/gat
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.

#!${GPTSCRIPT_TOOL_DIR}/bin/gptscript-go-tool retrieve --dataset ${GPTSCRIPT_THREAD_ID} --dataset ${GPTSCRIPT_SCRIPT_ID} "${GPTSCRIPT_INPUT}"
#!${GPTSCRIPT_TOOL_DIR}/bin/gptscript-go-tool retrieve ${GPTSCRIPT_THREAD_ID:+--dataset=${GPTSCRIPT_THREAD_ID}} ${GPTSCRIPT_SCRIPT_ID:+--dataset=${GPTSCRIPT_SCRIPT_ID}} "${GPTSCRIPT_INPUT}"

---
Name: Knowledge Retrieval Context
Expand All @@ -30,7 +30,7 @@ Type: context
Input Filter: QueryRelevancy
Output Filter: KnowledgeInstructions

#!${GPTSCRIPT_TOOL_DIR}/bin/gptscript-go-tool retrieve --dataset ${GPTSCRIPT_THREAD_ID} --dataset ${GPTSCRIPT_SCRIPT_ID} "${GPTSCRIPT_INPUT}"
#!${GPTSCRIPT_TOOL_DIR}/bin/gptscript-go-tool retrieve ${GPTSCRIPT_THREAD_ID:+--dataset=${GPTSCRIPT_THREAD_ID}} ${GPTSCRIPT_SCRIPT_ID:+--dataset=${GPTSCRIPT_SCRIPT_ID}} "${GPTSCRIPT_INPUT}"

---
Name: QueryRelevancy
Expand Down

0 comments on commit 866b186

Please sign in to comment.