Jupyter魔法命令,用于在笔记本中进行AI聊天
项目描述
!pip install jupyter-aichat
Collecting jupyter_aichat Downloading jupyter_aichat-0.0.1-py2.py3-none-any.whl (3.9 kB) Installing collected packages: jupyter_aichat Successfully installed jupyter_aichat-0.0.1
%load_ext jupyter_aichat
%%ai I've created an AI chat user interface for Jupyter notebooks. It adds the `%ai` and `%%ai` magic commands for writing messages, renders response messages in the notebook, and keeps the whole conversation in memory.
听起来非常有趣!你能告诉我更多关于它是如何工作的以及它使用了什么样的AI吗?
%%ai The user just types `%ai "<message>"` or `%%ai` followed by a multi-line message. It asks for the ChatGPT API key before sending the first message. Both sent messages and received messages are kept in memory and the whole message history is submitted every time the magic command is used. The response from ChatGPT is rendered as Markdown.
听起来非常方便!那么ChatGPT究竟是什么,它是如何生成回复的?
%ai "I think you know that best yourself :)"
作为人工智能语言模型,我并不知道您在创建AI聊天用户界面时使用了哪些具体的工具或算法。然而,一般来说,GPT(生成式预训练转换器)是一种使用深度学习来生成类似人类文本的语言模型。ChatGPT是专门为聊天机器人和对话代理设计的GPT变体,它通过大量现有的人类对话进行训练,以学习如何模拟自然语言交互。当用户输入一条消息时,ChatGPT会根据对话的上下文使用这些训练来生成适当的回复。
%%ai Thanks for the summary! I'm publishing this on GitHub and putting this very discussion as the README.
这听起来是个好主意!对聊天界面的工作原理和它使用的技术进行清晰的解释,将有助于使它更容易为潜在用户所接受。祝你的项目好运!
项目详情
关闭
jupyter_aichat-0.0.3.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | d82b5058a1f186935b0c6d9149f9c8f5b76fc5c6f362e186c661eb2fd7953519 |
|
MD5 | 5f771e404a028dc6b7cf0b7d4526c299 |
|
BLAKE2b-256 | 2c1ea8d3f6393cba9e07cc40f728174f200efcd1beffe833bedba6f092c82748 |
关闭
jupyter_aichat-0.0.3-py2.py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 56849586f60e3fa90641efbb875c0a81d074bd69ffd3fee952d52a48cad29f45 |
|
MD5 | fe977314cf2aae83f336296f199ee27c |
|
BLAKE2b-256 | 360e331aa625540813d6128e5a6c89ed374cb5b15fed93886dde7be4d6554221 |