-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: refactor * docs: links * docs: lint * docs: lint * lint * docs: toc
- Loading branch information
Showing
30 changed files
with
224 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
label: "Overview" | ||
position: 0 | ||
position: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
label: "Agents" | ||
position: 2 | ||
position: 3 |
File renamed without changes.
13 changes: 9 additions & 4 deletions
13
...docs/agents/explain_error_agent/index.mdx → docs/docs/agents/explain_error/index.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
# Explain Error Agent | ||
|
||
The Explain Error Agent explains the first error encountered in a notebook. It leverages AI models to explain the error in the code cell, providing insights into the error and potential solutions by adding new cells. | ||
The Explain Error Agent explains the first error encountered in a notebook. It leverages AI models to explain the error in the code cell, providing insights into the error and potential solutions by adding new cells. This is a great Agent to support the following use cases: | ||
|
||
Use Case Examples: | ||
- Error Explanation: Explain the error encountered in the code cell. | ||
- Error Resolution: Provide potential solutions to resolve the error. | ||
|
||
![Jupyter AI Agent](https://assets.datalayer.tech/jupyter-ai-agent/ai-agent-explainerror-demo-terminal.gif) | ||
|
||
Refer to [usage instructions](/docs/interactions) to get started with the Explain Error Agent. | ||
```bash | ||
jupyter-ai-agent explain-error \ | ||
--url http://localhost:8888 \ | ||
--token MY_TOKEN \ | ||
--azure-ai-deployment-name gpt-40-mini \ | ||
--path test.ipynb | ||
``` | ||
|
||
## Parameters | ||
|
||
- `--url`: JupyterLab URL. | ||
- `--token`: JupyterLab token. | ||
- `--azure-ai-deployment-name`: Azure AI model deployment name. | ||
- `--path`: Notebook to modify path. | ||
- `--path`: Notebook to modify path. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
import DocCardList from '@theme/DocCardList'; | ||
|
||
# Agents | ||
|
||
Jupyter AI Agent currently provides two agents: `Prompt Agent` and `Explain Error Agent`. | ||
Make sure the you understand the [**Deployment Modes**](/docs/deployments) referring to where the agent is running, and the [**Interactions Modes**](/docs/interactions) referring to how the agent is used. | ||
|
||
Jupyter AI Agent currently provides the following agents. | ||
|
||
<DocCardList /> | ||
|
||
## Create your own Agent | ||
|
||
More Jupyter AI Agent like `Code Refactor Agent`, `Documentation Agent`... can be created by extending the base class. | ||
|
||
:::info | ||
[LangChain Agent Framework](https://python.langchain.com/v0.1/docs/modules/agents/how_to/custom_agent/) is used to manage the interactions between the AI model and the tools. | ||
::: | ||
|
||
More Jupyter AI Agent like `Code Refactor Agent`, `Documentation Agent`, ... can be created by extending the base class. | ||
[LangChain Agent Framework](https://python.langchain.com/v0.1/docs/modules/agents/how_to/custom_agent/) is used to manage the interactions between the AI model and the tools. | ||
|
||
:::note | ||
🚧 A guide to create custom agent is under construction and will be available soon. | ||
::: | ||
|
||
::: |
File renamed without changes.
14 changes: 11 additions & 3 deletions
14
docs/docs/agents/prompt_agent/index.mdx → docs/docs/agents/prompt/index.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
label: "Deployments" | ||
position: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
label: "In Kernel" | ||
position: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# In Kernel | ||
|
||
When installed in a Jupyter Kernel, the Agent can be requested directly. | ||
|
||
:::warning | ||
|
||
This is not the recommended way and should be used only for development purposes. | ||
|
||
::: | ||
|
||
To install Jupyter AI Agent, run the following command. | ||
|
||
```bash | ||
pip install jupyter_ai_agent | ||
``` | ||
|
||
The Jupyter AI Agent can directly interact with JupyterLab and the modifications made by the Jupyter AI Agent can be seen in real-time thanks to [Jupyter Real Time Collaboration](https://jupyterlab.readthedocs.io/en/stable/user/rtc.html). | ||
|
||
Make sure you have JupyterLab installed with the Collaboration extension. | ||
|
||
```bash | ||
pip install jupyterlab jupyter-collaboration ipykernel | ||
``` | ||
|
||
Start JupyterLab, setting a `port` and a `token` to be reused by the agent, and create a notebook `test.ipynb`. | ||
|
||
```bash | ||
jupyter lab --port 8888 --IdentityProvider.token MY_TOKEN | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import DocCardList from '@theme/DocCardList'; | ||
|
||
# Deployment | ||
|
||
The **Deployment Modes** refer to where the agent is running as well as it capabilities. | ||
|
||
- `In-Kernel` - When installed in the Jupyter Kernel, the Agent can be requested directly. This is not the recommended way and should be used only for development purposes. | ||
- `Out-Kernel Stateless` - The Agent can be requested thourh CLI for example. In a Stateless it is not possible to leverage the `Agent Memory` features, meaning that the agent is stateless and does not remember previous interactions. | ||
- `Out-Kernel Stateful` - A separated process that is requested via e.g. REST endpoints, being able to leverage the `Agent Memory` features. | ||
|
||
<DocCardList /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
label: "Out Kernel Stateful" | ||
position: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Out Kernel Stateful | ||
|
||
A separated process that is requested via e.g. REST endpoints, being able to leverage the `Agent Memory` features. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
label: "Out Kernel Stateless" | ||
position: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Out Kernel Stateless | ||
|
||
The Agent can be requested thourh CLI for example. In a Stateless it is not possible to leverage the `Agent Memory` features, meaning that the agent is stateless and does not remember previous interactions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
label: "Interactions" | ||
position: 2 | ||
position: 5 |
Oops, something went wrong.