Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files in sub directory are not ingested when knowledge tool is accessed as remote tool. #32

Closed
sangee2004 opened this issue Jun 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@sangee2004
Copy link

Steps to reproduce the problem:

  1. Get k8s docs made available in local directory using git clone https://github.com/kubernetes/website.git
  2. Run the following script to launch knowledge chat agent using workspace that has k8s documentation - gptscript --workspace /Users/sangeethahariharan/k8sdoc/website/content/en/docs 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.
  1. knowledge tool is not able to provide any relevant information for any search query
Screenshot 2024-06-20 at 1 02 08 PM Screenshot 2024-06-20 at 1 03 04 PM

Search results are only from the file under the workspace directory and no sub directories are searched.

Expected Behavior:
All files from sub directory should be ingested recursively by knowledge tool.

@sangee2004 sangee2004 added the bug Something isn't working label Jun 20, 2024
@iwilltry42
Copy link
Collaborator

askdir and ingest are now recursive by default as per #29 - can you check again with a build from the main branch, please?

@sangee2004
Copy link
Author

Tested with knowledge as remote tool and able to see all files from subdirectory getting ingested. Able to get relevant information when chatting with the tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants