Knowledge Base Commands: kb
bohr kb creates and searches personal knowledge bases and manages their documents.
Commands
| Command | Usage | Description |
|---|---|---|
create | bohr kb create <name> [flags] | Create a new knowledge base on the Bohrium platform. |
delete | bohr kb delete <kb_id>... [flags] | Delete knowledge bases by their IDs. |
document | bohr kb document [command] | Manage knowledge-base documents by document ID. |
list | bohr kb list [flags] | List all knowledge bases on the Bohrium platform. |
search | bohr kb search <kb_id> <query> [flags] | Search for relevant content in a specified knowledge base. |
upload | bohr kb upload <local-file> [flags] | Upload and register a local document in a Bohrium knowledge base or folder. |
For subcommands inside a command group, run bohr kb <group> --help.
Common parameters
| Parameter | Description |
|---|---|
--page <number> | Result page, default 1 |
--size <number> | Results per page |
--kb-id <id> | Target knowledge base for upload or document listing |
--parent-id <id> | Target parent node; use instead of --kb-id |
--name <filename> | Override the uploaded document name |
Examples
bohr kb create "Research notes"
bohr kb upload ./paper.pdf --kb-id 123 --name paper.pdf
bohr kb document list --kb-id 123 --size 50
bohr kb search 123 "protein structure prediction"
Uploading a document starts asynchronous processing, so it may not be searchable immediately. Deleting a knowledge base or document is irreversible.