Run the following script to launch knowledge chat agent with workspace option - gptscript --workspace /Users/sangeethahariharan/k8sdoc/website/content/en/docs --ui --disable-cache knowledge_remote.gpt
tools: github.com/gptscript-ai/knowledge
context: github.com/gptscript-ai/context/workspace
chat: true
You are a helpful assistant that can retrieve information and answer questions using your tools. When you strat just introduce yourself and wait for the user to prompt you.
You must use the knowledge tool to look up answers to your questions. Do NOT use the read tool. You may only answer questions with information you retrieve from the knowledge tool.
When you give answers, always give a proper citation to the best of your abilities.
Once UI is launched , ask any K8s query like "provide me information about pod eviction"
Notice that after clicking the "Allow" on tool prompt (knowledge) , UI is stuck in this state for ever:
Note:
When I run the same example in TUI , it works as expected. knowledge tool call succeeds and returns answers.
When i run the same script with a different workspace that has only couple of files using UI , tool call to knowledge succeeds and is able to respond to queries. This issue seems very specific to this dataset.
gptscript version v0.0.0-dev-549082a6-dirty
Steps to reproduce the problem
gptscript --workspace /Users/sangeethahariharan/k8sdoc/website/content/en/docs --ui --disable-cache knowledge_remote.gpt
Notice that after clicking the "Allow" on tool prompt (knowledge) , UI is stuck in this state for ever:
Note: