Skip to content

Commit

Permalink
revise doc structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ShilinHe committed Dec 21, 2023
1 parent 49cfd97 commit 27ca39a
Show file tree
Hide file tree
Showing 10 changed files with 77 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ It targets to solve the following two problems:
## Auto Plugin Selection Overview

Below is the overview workflow of the auto plugin selection mechanism.
![Auto Plugin Selection Overview](../../static/img/APS.png)
![Auto Plugin Selection Overview](../../../static/img/APS.png)

NOTE: the automatic plugin selection mechanism is only activated during the code generation process in the Code Interpreter and does not affect the planning process of the Planner.

Expand Down
38 changes: 38 additions & 0 deletions website/docs/usage/cmd.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Terminal

1. Follow the instruction in [Quick Start](../quickstart.md) to clone the repo and make configurations

```bash
git clone https://github.com/microsoft/TaskWeaver.git
cd TaskWeaver
# install the requirements
pip install -r requirements.txt
```

```json
{
"llm.api_key": "the api key",
"llm.model": "the model name, e.g., gpt-4"
}
```

2. Run the following command in terminal.
```bash
# assume you are in the taskweaver folder
# -p is the path to the project directory
python -m taskweaver -p ./project/
```
This will start the TaskWeaver process and you can interact with it through the command line interface.
If everything goes well, you will see the following prompt:

```bash
=========================================================
_____ _ _ __
|_ _|_ _ ___| | _ | | / /__ ____ __ _____ _____
| |/ _` / __| |/ /| | /| / / _ \/ __ `/ | / / _ \/ ___/
| | (_| \__ \ < | |/ |/ / __/ /_/ /| |/ / __/ /
|_|\__,_|___/_|\_\|__/|__/\___/\__,_/ |___/\___/_/
=========================================================
TaskWeaver: I am TaskWeaver, an AI assistant. To get started, could you please enter your request?
Human: ___
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Use TaskWeaver as a library
# Library

If you want to use TaskWeaver as a library, you can refer to the following code example:

Expand Down
8 changes: 4 additions & 4 deletions playground/UI/README.md → website/docs/usage/webui.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# How to Run UI
# Web UI

1. Follow the instruction in the repo's [README](../../README.md) to clone the repo and make configurations
1. Follow the instruction in [Quick Start](../quickstart.md) to clone the repo and make configurations

```bash
git clone https://github.com/microsoft/TaskWeaver.git
Expand Down Expand Up @@ -28,5 +28,5 @@ chainlit run app.py
4. Open the browser with http://localhost:8000 and you can start the trial.

5. Below are some screenshots:
![TaskWeaver UI Screenshot 1](public/ui_screenshot_1.png)
![TaskWeaver UI Screenshot 2](public/ui_screenshot_2.png)
![TaskWeaver UI Screenshot 1](../../static/img/ui_screenshot_1.png)
![TaskWeaver UI Screenshot 2](../../static/img/ui_screenshot_2.png)
38 changes: 33 additions & 5 deletions website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ const sidebars = {
documentSidebar: [
'overview',
'quickstart',
{
type: 'category',
label: 'Usage Options',
link: {
type: 'generated-index',
title: 'Usage Options',
description: 'Learn how to run TaskWeaver in different ways',
slug: '/usage',
},
collapsible: true,
collapsed: false,
items: [
'usage/cmd',
'usage/webui',
'usage/library'],
},
{
type: 'category',
label: 'LLMs',
Expand All @@ -34,21 +50,33 @@ const sidebars = {
collapsed: false,
items: ['llms/openai', 'llms/aoai', 'llms/liteLLM', 'llms/ollama', 'llms/gemini', 'llms/qwen'],
},

{
type: 'category',
label: 'Plugin',
label: 'Customization',
collapsible: true,
collapsed: false,
items: ['plugin/plugin_intro', 'plugin/plugin_selection', 'plugin/embedding'],
items: [{
type: 'category',
label: 'Plugin',
collapsible: true,
collapsed: true,
items: ['customization/plugin/plugin_intro', 'customization/plugin/plugin_selection', 'customization/plugin/embedding'],
},
{
type: 'category',
label: 'Example',
collapsible: true,
collapsed: true,
items: ['customization/example/example'],
},
],
},
'example',
// 'example',
'compression',
'configurations',
'planner',
'session',
'run_pytest',
'taskweaver_as_a_lib'
],

};
Expand Down
File renamed without changes
File renamed without changes

0 comments on commit 27ca39a

Please sign in to comment.