agent-zero icon indicating copy to clipboard operation
agent-zero copied to clipboard

Knowledge import paths are inconsistent between docs, UI file browser, and actual import scanner

Open jgrooms opened this issue 9 months ago • 1 comments

Description

The knowledge import system scans a different directory than what the documentation describes and the UI file browser exposes, causing uploaded knowledge files to silently fail to index.

The Problem

There are three different paths involved, and none of them agree:

1. Documentation says:

Add files to /knowledge/custom/main

2. UI File Browser shows: /a0/usr/knowledge/custom/main — this is the only path accessible through the "Import Knowledge" button and file browser

3. Knowledge import actually scans: /a0/knowledge/main/about/ — confirmed by examining knowledge_import.json, which only contains entries from this path

Steps to Reproduce

  1. Open the UI File Browser or use the "Import Knowledge" button
  2. Upload a .md file — it lands in /a0/usr/knowledge/custom/main/
  3. Restart Agent Zero
  4. Check the Memory Dashboard — the file does NOT appear as a Knowledge entry
  5. Check knowledge_import.json — the uploaded file is not listed
  6. Manually copy the same file to /a0/knowledge/main/about/
  7. Restart Agent Zero
  8. The file now appears in the Memory Dashboard as Knowledge and is indexed in knowledge_import.json

Evidence

After uploading via the UI to /a0/usr/knowledge/custom/main/, the knowledge_import.json only contained entries with paths like:

"/a0/knowledge/main/about/jason-facts-mid-long-term.md"
"/a0/knowledge/main/about/github_readme.md"
...

No entries from /a0/usr/knowledge/ were present.

Expected Behavior

Files uploaded through the UI file browser or "Import Knowledge" button should be automatically indexed on restart. Either:

  1. The knowledge import scanner should also scan /a0/usr/knowledge/custom/main/ (matching the UI and docs), OR
  2. The UI file browser should place files where the scanner actually looks (/a0/knowledge/main/about/), OR
  3. The docs should clearly state the actual working path

Impact

This is a frustrating experience for new users. You upload knowledge files through the UI exactly as the docs describe, restart, and nothing happens. The Memory Dashboard shows zero Knowledge entries. There's no error message — it just silently doesn't work. The only way to discover the correct path is to inspect knowledge_import.json and notice the path mismatch.

Environment

  • Agent Zero: latest Docker image (pulled Feb 2026)
  • Running in Docker on Ubuntu server

jgrooms avatar Feb 24 '26 01:02 jgrooms

Closing due to inactivity of 90 days.

github-actions[bot] avatar May 26 '26 04:05 github-actions[bot]