This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: change to use base workspace dir
The use of the knowledge dir was a hold over from when we thought this tool would be used in a different way. Now, I think just default to the workspace is the right behavior. Signed-off-by: Craig Jellick <[email protected]>
- Loading branch information
Showing
2 changed files
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
Description: Create a knowledge base from files in the ./knowledge directory and retrieve information from it. | ||
Description: Create a knowledge base from files in the workspace directory and retrieve information from it. | ||
Context: github.com/gptscript-ai/context/workspace | ||
Args: query: The query to search for in the knowledge directory. | ||
|
||
#!${GPTSCRIPT_TOOL_DIR}/bin/gptscript-go-tool askdir "${query}" | ||
#!${GPTSCRIPT_TOOL_DIR}/bin/gptscript-go-tool askdir --path ${GPTSCRIPT_WORKSPACE_DIR} "${query}" | ||
|
||
--- | ||
name: retrieval | ||
description: A tool that queries the knowledge retrieval API to get similar documents from the Vector database. Response source texts with references that can be used for citations. It does not contain a generated answer, only source text. | ||
|
||
args: prompt: The query prompt to ask the vector database. URL Encoded string. | ||
|
||
#!http://${knowledge_retrieval_api_url}/datasets/${knowledge_retrieval_dataset}/retrieve | ||
#!http://${knowledge_retrieval_api_url}/datasets/${knowledge_retrieval_dataset}/retrieve |