跳到主要内容

Knowledge Base Commands: kb

bohr kb creates and searches personal knowledge bases and manages their documents.

Commands

CommandUsageDescription
createbohr kb create <name> [flags]Create a new knowledge base on the Bohrium platform.
deletebohr kb delete <kb_id>... [flags]Delete knowledge bases by their IDs.
documentbohr kb document [command]Manage knowledge-base documents by document ID.
listbohr kb list [flags]List all knowledge bases on the Bohrium platform.
searchbohr kb search <kb_id> <query> [flags]Search for relevant content in a specified knowledge base.
uploadbohr 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

ParameterDescription
--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.