gptscript-ai / desktop

MIT License
22 stars 13 forks source link

Not able to use "Add knowledge" option to add files to workspace when workspace is set using "manage workspace" option. #169

Closed sangee2004 closed 2 months ago

sangee2004 commented 2 months ago

Acorn app with commit id - 1eeb6f0161e Steps to reproduce the problem:

  1. Start a conversation with Default Assistant
  2. Change workspace to say - /dir1 using manage workspace.
  3. Use "Add knowledge" option add a file say - file1.
  4. Chat with assistant and ask about some information from file1. Notice that either knowledge too does not get called for this or if you ask to use knowledge for the query specifically , it would respond with saying it does not have access to this information
Screenshot 2024-08-15 at 3 31 56 PM

Notice that the file that was added using "Add knowledge" option , gets actually added to the default work space - ~/Library/Application Support/acorn/Acorn/workspace directory instead of being added to the current workspace set for this chat thread.

Expected Behavior:

  1. File gets added to the current workspace set for this chat thread and knowledge tool is able to serve answers from this file.
sangee2004 commented 2 months ago

Tested with electron app built from 523bf344b9e

The scenario mentioned in the issue works as expected. I see a knowledge directory being created in the workspace directory that was selected and see the new file being copied over to this location.

But knowledge tool is not able to work with files that are already present in the workspace directory. Will log a different issue to track this.