Skip to content

Commit 492bdd3

Browse files
authored
docs: Refine docs (#200)
* Update docs * update one demo video * update docs * remove the video * move configuration file * fix demo title
1 parent 95439a1 commit 492bdd3

9 files changed

+123
-103
lines changed

README.md

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
# 📰 News
1818
| 🗞️News | 📝Description |
1919
| -- | ------ |
20-
| First release | RDAgent are release on Github |
20+
| First release | RDAgent is release on Github |
2121

2222

2323
# 🌟 Introduction
2424

2525
![Our focused scenario](docs/_static/scen.jpg)
2626

27-
RDAgent aims to automate the most critical and valuable aspects of the industrial R&D process, and we begins with focusing on the data-driven scenarios to streamline the development of models and data.
27+
RDAgent aims to automate the most critical and valuable aspects of the industrial R&D process, and we begin with focusing on the data-driven scenarios to streamline the development of models and data.
2828
Methodologically, we have identified a framework with two key components: 'R' for proposing new ideas and 'D' for implementing them.
2929
We believe that the automatic evolution of R&D will lead to solutions of significant industrial value.
3030

@@ -38,15 +38,21 @@ R&D is a very general scenario. The advent of RDAgent can be your
3838

3939
You can click the [🎥link](https://rdagent.azurewebsites.net) above to view the demo. More methods and scenarios are being added to the project to empower your R&D processes and boost productivity.
4040
<!--
41+
- TODO: Demo: it fails to display the video in the README.md.
4142
We have a quick 🎥demo for one use case of RDAgent.
42-
- TODO: Demo
43+
[![Demo Video](https://img.youtube.com/vi/5275fcb75803ad2bb9541c3abd86dedfd578a28fa32b46fa28917b33/0.jpg)](https://rdagent.azurewebsites.net:443/media/5275fcb75803ad2bb9541c3abd86dedfd578a28fa32b46fa28917b33.mp4)
4344
-->
4445

46+
47+
4548
# ⚡Quick start
46-
You can try our demo by running the following command:
49+
You can try above demos by running the following command:
50+
51+
### 🐳Docker installation.
52+
Users must ensure Docker is installed before attempting most scenarios. Please refer to the [official 🐳Docker page](https://docs.docker.com/engine/install/) for installation instructions.
4753

4854
### 🐍 Create a Conda Environment
49-
- Create a new conda environment with Python (3.10 and 3.11 are well tested in our CI):
55+
- Create a new conda environment with Python (3.10 and 3.11 are well-tested in our CI):
5056
```sh
5157
conda create -n rdagent python=3.10
5258
```
@@ -60,27 +66,20 @@ You can try our demo by running the following command:
6066
```sh
6167
pip install rdagent
6268
```
63-
64-
65-
### 🛠️ Run Make Files
66-
67-
- If you want to use our project in development mode. **Navigate to the directory containing the MakeFile** and set up the development environment:
68-
```sh
69-
make dev
70-
```
7169

70+
### ⚙️ Configuration
71+
You have to config your GPT model in the `.env`
72+
```bash
73+
cat << EOF > .env
74+
OPENAI_API_KEY=<your_api_key>
75+
# EMBEDDING_MODEL=text-embedding-3-small
76+
CHAT_MODEL=gpt-4-turbo
77+
EOF
78+
```
7279

73-
### ⚙️ Environment Configuration
74-
- Place the `.env` file in the same directory as the `.env.example` file.
75-
- The `.env.example` file contains the environment variables required for users using the OpenAI API (Please note that `.env.example` is an example file. `.env` is the one that will be finally used.)
76-
- please refer to [Configuration](docs/build/html/installation.html#azure-openai) for the detailed explanation of the `.env`
7780
### 🚀 Run the Application
78-
- Start web app to show log traces:
79-
```sh
80-
rdagent ui --port 80 --log_dir <your log folder>
81-
```
8281

83-
The [🎥demo](https://rdagent.azurewebsites.net) is implemented by the following commands:
82+
The [🎥demo](https://rdagent.azurewebsites.net) is implemented by the following commands(each item represents one demo, you can select the one you prefer):
8483

8584
- Run the **Automated Quantitative Trading & Iterative Factors Evolution**: Qlib self-loop factor proposal and implementation application
8685
```sh
@@ -107,10 +106,10 @@ The [🎥demo](https://rdagent.azurewebsites.net) is implemented by the followin
107106
rdagent general_model <Your paper url>
108107
```
109108

110-
### 🚀 Monitor the Application
109+
### 🚀 Monitor the Application Results
111110
- You can serve our demo app to monitor the RD loop by running the following command:
112111
```sh
113-
rdagent ui --port 80 --log_dir <your log folder>
112+
rdagent ui --port 80 --log_dir <your log folder like "log/2024-07-16_11-21-46-612120/">
114113
```
115114

116115
# Scenarios
@@ -144,8 +143,12 @@ The supported scenarios are listed below:
144143

145144
Different scenarios vary in entrance and configuration. Please check the detailed setup tutorial in the scenarios documents.
146145

147-
TODO: Scenario Gallary
148-
- map(scenario) => knowledge list;
146+
Here is a gallery of successful explorations. You can download the source code and view the execution trace using the command below:
147+
148+
```bash
149+
rdagent ui --port 80 --log_dir gallary/
150+
```
151+
149152

150153
# ⚙️Framework
151154

@@ -206,7 +209,7 @@ For more detail, please refer to our [Demos page](https://rdagent.azurewebsites.
206209

207210
# Contributing
208211

209-
More documents can be found in the [📚readthedocs](). TODO: add link
212+
More documents can be found in the [📚readthedocs](https://rdagent.readthedocs.io/).
210213

211214
## Guidance
212215
This project welcomes contributions and suggestions.

docs/development.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ File Naming Convention
7373
* - `conf.py`
7474
- The configuration for the module, app, and project.
7575

76-
<!-- TODO: renaming files -->
76+
.. <!-- TODO: renaming files -->

docs/installation_and_configuration.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,25 @@ Configuration List
143143
| max_past_message_include | Maximum number of past messages to include | 10 |
144144
+------------------------------+--------------------------------------------------+-------------------------+
145145

146+
147+
148+
149+
Loading Configuration
150+
---------------------
151+
152+
For users' convenience, we provide a CLI interface called `rdagent`, which automatically runs `load_dotenv()` to load environment variables from the `.env` file.
153+
However, this feature is not enabled by default for other scripts. We recommend users load the environment with the following steps:
154+
155+
156+
- ⚙️ Environment Configuration
157+
- Place the `.env` file in the same directory as the `.env.example` file.
158+
- The `.env.example` file contains the environment variables required for users using the OpenAI API (Please note that `.env.example` is an example file. `.env` is the one that will be finally used.)
159+
160+
- Export each variable in the .env file:
161+
162+
.. code-block:: sh
163+
164+
export $(grep -v '^#' .env | xargs)
165+
166+
- If you want to change the default environment variables, you can refer to the above configuration and edith the `.env` file.
167+

docs/project_framework_introduction.rst

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,5 @@ We have established a basic method framework that continuously proposes hypothes
2323
The figure above shows the main classes and how they fit into the workflow for those interested in the detailed code.
2424

2525

26-
Detailed Design
27-
=========================
28-
29-
30-
Configuration
31-
-------------
32-
33-
You can manually source the `.env` file in your shell before running the Python script:
34-
Most of the workflow are controlled by the environment variables.
35-
```sh
36-
# Export each variable in the .env file; Please note that it is different from `source .env` without export
37-
export $(grep -v '^#' .env | xargs)
38-
# Run the Python script
39-
python your_script.py
40-
```
41-
26+
.. Detailed Design
27+
.. ===============

docs/scens/data_agent_fin.rst

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,17 @@ By leveraging these factors, quantitative traders can develop sophisticated stra
1717
The ability to systematically analyze and apply these factors is what separates ordinary trading from truly strategic market outmaneuvering.
1818
And this is where the **Finance Model Agent** comes into play.
1919

20-
🎥 Demo
21-
~~~~~~~~~~
22-
TODO: Here should put a video of the demo.
20+
🎥 `Demo <https://rdagent.azurewebsites.net/factor_loop>`_
21+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22+
23+
.. https://rdagent.azurewebsites.net:443/media/54d59c2bf85211de6a7cd2bd3c57d3b56c36cf9795a31111a9111ddb.mp4
24+
25+
.. raw:: html
26+
27+
<video width="600" controls>
28+
<source src="https://rdagent.azurewebsites.net:443/media/54d59c2bf85211de6a7cd2bd3c57d3b56c36cf9795a31111a9111ddb.mp4" type="video/mp4">
29+
Your browser does not support the video tag.
30+
</video>
2331

2432

2533
🌟 Introduction
@@ -75,6 +83,8 @@ Here's an enhanced outline of the steps:
7583
⚡ Quick Start
7684
~~~~~~~~~~~~~~~~~
7785

86+
Please refer to the installation part in :doc:`../installation_and_configuration` to prepare your system dependency.
87+
7888
You can try our demo by running the following command:
7989

8090
- 🐍 Create a Conda Environment
@@ -97,12 +107,6 @@ You can try our demo by running the following command:
97107
98108
pip install rdagent
99109
100-
- ⚙️ Environment Configuration
101-
- Place the `.env` file in the same directory as the `.env.example` file.
102-
- The `.env.example` file contains the environment variables required for users using the OpenAI API (Please note that `.env.example` is an example file. `.env` is the one that will be finally used.)
103-
104-
- If you want to change the default environment variables, you can refer to `Env Config`_ below
105-
106110
- 🚀 Run the Application
107111
.. code-block:: sh
108112
@@ -126,4 +130,4 @@ The following environment variables can be set in the `.env` file to customize t
126130
:settings-show-field-summary: False
127131
:members: coder_use_cache, data_folder, data_folder_debug, cache_location, enable_execution_cache, file_based_execution_timeout, select_method, select_threshold, max_loop, knowledge_base_path, new_knowledge_base_path
128132
:exclude-members: Config, fail_task_trial_limit, v1_query_former_trace_limit, v1_query_similar_success_limit, v2_query_component_limit, v2_query_error_limit, v2_query_former_trace_limit, v2_error_summary, v2_knowledge_sampler
129-
:no-index:
133+
:no-index:

docs/scens/data_copilot_fin.rst

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,16 @@ Therefore, there is an urgent need for a systematic approach to design a framewo
2020
And this is where the **Finance Data Copilot** steps in.
2121

2222

23-
🎥 Demo
24-
~~~~~~~~~~
25-
TODO: Here should put a video of the demo.
23+
🎥 `Demo <https://rdagent.azurewebsites.net/report_factor>`_
24+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
25+
26+
.. raw:: html
27+
28+
<video width="600" controls>
29+
<source src="https://rdagent.azurewebsites.net:443/media/42a3280d592fb9e3d227608170860c426fc2bf5c63eea5a66ed94ca7.mp4" type="video/mp4">
30+
Your browser does not support the video tag.
31+
</video>
32+
2633

2734

2835
🌟 Introduction
@@ -76,6 +83,8 @@ Here's an enhanced outline of the steps:
7683
⚡ Quick Start
7784
~~~~~~~~~~~~~~~~~
7885

86+
Please refer to the installation part in :doc:`../installation_and_configuration` to prepare your system dependency.
87+
7988
You can try our demo by running the following command:
8089

8190
- 🐍 Create a Conda Environment
@@ -98,12 +107,6 @@ You can try our demo by running the following command:
98107
99108
pip install rdagent
100109
101-
- ⚙️ Environment Configuration
102-
- Place the `.env` file in the same directory as the `.env.example` file.
103-
- The `.env.example` file contains the environment variables required for users using the OpenAI API (Please note that `.env.example` is an example file. `.env` is the one that will be finally used.)
104-
105-
- If you want to change the default environment variables, you can refer to `Env Config`_ below
106-
107110
- 🚀 Run the Application
108111
- Store the factors you want to extract from the financial reports in your desired folder. Then, save the paths of the reports in the `report_result_json_file_path`. The format should be as follows:
109112

@@ -139,4 +142,4 @@ The following environment variables can be set in the `.env` file to customize t
139142
:settings-show-field-summary: False
140143
:members: coder_use_cache, data_folder, data_folder_debug, cache_location, enable_execution_cache, file_based_execution_timeout, select_method, select_threshold, max_loop, knowledge_base_path, new_knowledge_base_path
141144
:exclude-members: Config, python_bin, fail_task_trial_limit, v1_query_former_trace_limit, v1_query_similar_success_limit, v2_query_component_limit, v2_query_error_limit, v2_query_former_trace_limit, v2_error_summary, v2_knowledge_sampler
142-
:no-index:
145+
:no-index:

docs/scens/model_agent_fin.rst

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,20 @@ The effectiveness of a quantitative strategy depends not only on the factors use
1616
However, the process of developing and optimizing these models can be labor-intensive and complex, requiring continuous refinement and adaptation to ever-changing market conditions.
1717
And this is where the **Finance Model Agent** steps in.
1818

19-
🎥 Demo
20-
~~~~~~~~~~
21-
TODO: Here should put a video of the demo.
19+
20+
🎥 `Demo <https://rdagent.azurewebsites.net/model_loop>`_
21+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22+
23+
.. raw:: html
24+
25+
<video width="600" controls>
26+
<source src="https://rdagent.azurewebsites.net:443/media/5275fcb75803ad2bb9541c3abd86dedfd578a28fa32b46fa28917b33.mp4" type="video/mp4">
27+
Your browser does not support the video tag.
28+
</video>
29+
30+
31+
32+
2233

2334

2435
🌟 Introduction
@@ -74,6 +85,8 @@ Here's an enhanced outline of the steps:
7485
⚡ Quick Start
7586
~~~~~~~~~~~~~~~~~
7687

88+
Please refer to the installation part in :doc:`../installation_and_configuration` to prepare your system dependency.
89+
7790
You can try our demo by running the following command:
7891

7992
- 🐍 Create a Conda Environment
@@ -96,18 +109,6 @@ You can try our demo by running the following command:
96109
97110
pip install rdagent
98111
99-
- ⚙️ Environment Configuration
100-
- Place the `.env` file in the same directory as the `.env.example` file.
101-
- The `.env.example` file contains the environment variables required for users using the OpenAI API (Please note that `.env.example` is an example file. `.env` is the one that will be finally used.)
102-
103-
- Export each variable in the .env file:
104-
105-
.. code-block:: sh
106-
107-
export $(grep -v '^#' .env | xargs)
108-
109-
- If you want to change the default environment variables, you can refer to `Env Config`_ below
110-
111112
- 🚀 Run the Application
112113
.. code-block:: sh
113114
@@ -143,4 +144,4 @@ The following environment variables can be set in the `.env` file to customize t
143144
- **batch_size**: The batch size, set to `2000`.
144145
- **metric**: The evaluation metric, set to `loss`.
145146
- **loss**: The loss function, set to `mse`.
146-
- **n_jobs**: The number of parallel jobs, set to `20`.
147+
- **n_jobs**: The number of parallel jobs, set to `20`.

docs/scens/model_agent_med.rst

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@ Medical Model Agent
1212
In this scenario, we consider the problem of risk prediction from patients' ICU monitoring data. We use the a public EHR dataset - MIMIC-III and extract a binary classification task for evaluating the framework.
1313
In this task, we aim at predicting the whether the patients will suffer from Acute Respiratory Failure (ARF) based their first 12 hours ICU monitoring data.
1414

15-
🎥 Demo
16-
~~~~~~~~~~
17-
TODO: Here should put a video of the demo.
15+
🎥 `Demo <https://rdagent.azurewebsites.net/dmm>`_
16+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17+
18+
.. raw:: html
19+
20+
<video width="600" controls>
21+
<source src="https://rdagent.azurewebsites.net:443/media/0fbd26bb297369a4ca52409ff65a3f7cb941c6af6429894367a6afcd.mp4" type="video/mp4">
22+
Your browser does not support the video tag.
23+
</video>
1824

1925

2026
🌟 Introduction
@@ -58,6 +64,8 @@ Here's an enhanced outline of the steps:
5864
⚡ Quick Start
5965
~~~~~~~~~~~~~~~~~
6066

67+
Please refer to the installation part in :doc:`../installation_and_configuration` to prepare your system dependency.
68+
6169
You can try our demo by running the following command:
6270

6371
- 🐍 Create a Conda Environment
@@ -85,17 +93,6 @@ You can try our demo by running the following command:
8593
- Request access to FIDDLE preprocessed data: `FIDDLE Dataset <https://physionet.org/content/mimic-eicu-fiddle-feature/1.0.0/>`_.
8694
- Place your username and password in `.rdagent.app.data_mining.conf`.
8795

88-
- ⚙️ Environment Configuration
89-
- Place the `.env` file in the same directory as the `.env.example` file.
90-
- The `.env.example` file contains the environment variables required for users using the OpenAI API (Please note that `.env.example` is an example file. `.env` is the one that will be finally used.)
91-
92-
- Export each variable in the .env file:
93-
94-
.. code-block:: sh
95-
96-
export $(grep -v '^#' .env | xargs)
97-
98-
- If you want to change the default environment variables, you can refer to `Env Config`_ below
9996

10097
- 🚀 Run the Application
10198
.. code-block:: sh
@@ -113,4 +110,4 @@ The following environment variables can be set in the `.env` file to customize t
113110

114111
.. autopydantic_settings:: rdagent.app.data_mining.conf.PropSetting
115112
:settings-show-field-summary: False
116-
:exclude-members: Config
113+
:exclude-members: Config

0 commit comments

Comments
 (0)