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

Add delete file options, don't run prune #149

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

StrongMonkey
Copy link
Contributor

@StrongMonkey StrongMonkey commented Oct 18, 2024

This PR adds delete-file.gpt so that it can delete file on demand, and also disable prune when ingesting. It also fixed a bug where ignore file doesn't work

Signed-off-by: Daishan Peng <daishan@acorn.io>
Name: Knowledge File Deletion
Description: Delete a file.

#!${GPTSCRIPT_TOOL_DIR}/bin/gptscript-go-tool delete-file "${GPTSCRIPT_INPUT}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the input contain the dataset flag or is it set via env?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. It is set through env variable but I think I forgot to set it. I will update it in my PR

@StrongMonkey StrongMonkey merged commit fbc53d0 into gptscript-ai:main Oct 21, 2024
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants