Linux command
cohere 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start interactive chat
cohere
Switch to Command A
cohere``` then ```:m a
Perform a web search
:w [search query]
Upload a file
:u [path/to/file.pdf]
Display current model
:i
Toggle debug mode
:d
说明
cohere is a command-line interface for chatting with Cohere's AI models directly from the terminal. It provides an interactive chat experience with multi-turn conversation support, maintaining context across exchanges. The CLI supports Cohere's Command models including Command R+ and Command A (their most performant model with 111B parameters and 256K context length). Users can switch models mid-conversation using the :m command with aliases like r+, a, or full model names. Key features include web search integration via the Cohere connector, returning results with proper citations. File upload support allows analysis of PDF and TXT documents up to 20MB, with local preprocessing for PDFs using pdftotext.
FAQ
What is the cohere command used for?
cohere is a command-line interface for chatting with Cohere's AI models directly from the terminal. It provides an interactive chat experience with multi-turn conversation support, maintaining context across exchanges. The CLI supports Cohere's Command models including Command R+ and Command A (their most performant model with 111B parameters and 256K context length). Users can switch models mid-conversation using the :m command with aliases like r+, a, or full model names. Key features include web search integration via the Cohere connector, returning results with proper citations. File upload support allows analysis of PDF and TXT documents up to 20MB, with local preprocessing for PDFs using pdftotext.
How do I run a basic cohere example?
Run `cohere` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more cohere examples?
This page includes 6 examples for cohere, plus related commands for nearby Linux tasks.