Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aliro GPT #591

Merged
merged 204 commits into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
1555007
Added openai connection
jay-m-dev Feb 19, 2023
03ef338
Added chat models and apiutils
jay-m-dev Feb 22, 2023
d999d15
chats and chatlogs saved in DB
jay-m-dev Feb 23, 2023
f6184ff
Merge pull request #580 from jay-m-dev/openai_connection
nickotto Feb 23, 2023
bdb3423
Plural endpoints, API docs and better responses
jay-m-dev Mar 1, 2023
b34604c
chatapi and openai api changes and bug fixes
jay-m-dev Mar 2, 2023
b214aa6
Merge pull request #581 from jay-m-dev/openai_chatapi_docs
nickotto Mar 2, 2023
812b4c2
Revert "updated release version number"
nickotto Mar 6, 2023
2be3ec2
Merge pull request #583 from EpistasisLab/revert-579-master
nickotto Mar 6, 2023
45ad0b7
test readme
jay-m-dev Mar 6, 2023
3055984
Jun's branch
HyunjunA Mar 6, 2023
fc5fd14
test
HyunjunA Mar 8, 2023
263b4c2
Update chatbox for protype
HyunjunA Mar 8, 2023
8c0f898
Update chatbox for the prototype
HyunjunA Mar 8, 2023
c9ad9e9
gpt
nickotto Mar 10, 2023
72ce0d9
gpt updates
nickotto Mar 10, 2023
9e758ca
latest demo
nickotto Mar 10, 2023
08ceec8
new and updated endpoints
jay-m-dev Mar 11, 2023
833e450
Merge pull request #1 from jay-m-dev/new_api_endpoints
jay-m-dev Mar 13, 2023
c4dad6b
dropped required org_id, return existing config_id
jay-m-dev Mar 13, 2023
3bdc89c
temp
HyunjunA Mar 14, 2023
f8f64b6
Create popup window
HyunjunA Mar 14, 2023
76f343f
create popup component
HyunjunA Mar 14, 2023
64d34d3
finished new API endpoint docs
jay-m-dev Mar 15, 2023
fcd0b30
Merge pull request #2 from jay-m-dev/new_api_docs
jay-m-dev Mar 15, 2023
e175a9f
Update Navbar for expert(chatgpt)
HyunjunA Mar 15, 2023
f69b3f3
Merge remote-tracking branch 'origin/master' into NickGPTBranch
HyunjunA Mar 15, 2023
ea33a8b
Update sidebutton for chatbox
HyunjunA Mar 15, 2023
e130617
update chatbox button (adding new chat)
HyunjunA Mar 15, 2023
353ec57
update test code
HyunjunA Mar 15, 2023
1699986
make charts in classification responsive for window size change and i…
HyunjunA Mar 16, 2023
e97eb30
Add slider to resize between charts and chatgpt
HyunjunA Mar 16, 2023
b7f935d
Update slider css
HyunjunA Mar 16, 2023
c1078f3
changes
HyunjunA Mar 16, 2023
ba66039
Updated error In Index.js ( ResultsV2),
HyunjunA Mar 17, 2023
678ab34
update temp
HyunjunA Mar 20, 2023
377de71
temp
HyunjunA Mar 21, 2023
6915419
fixed openai connection
jay-m-dev Mar 21, 2023
e4ee49a
temp
HyunjunA Mar 21, 2023
ad3e0ed
Merge branch 'master' into NickGPTBranch
HyunjunA Mar 21, 2023
3906a38
working on getByExpId, getByDatasetId, in progress
jay-m-dev Mar 28, 2023
239b250
get chats by exp or dataset, exclude chatlogs
jay-m-dev Mar 28, 2023
a5d02a1
Merge pull request #3 from jay-m-dev/chat_by_exp_by_dataset
jay-m-dev Mar 28, 2023
fbe3c91
fix the form class in css
HyunjunA Mar 29, 2023
ca7ffd9
change the form class name
HyunjunA Mar 29, 2023
245b168
change the form class name
HyunjunA Mar 29, 2023
5d8867c
change language model and change api call format
HyunjunA Mar 29, 2023
ae26ebe
original codes (for text-davinci model)
HyunjunA Mar 29, 2023
44f652f
Merge remote-tracking branch 'origin' into NickGPTBranch
HyunjunA Mar 29, 2023
ce557d7
make removing chatbox tap button
HyunjunA Mar 30, 2023
0a5807f
Add the function for deleting chatbox
HyunjunA Apr 1, 2023
e060617
Make responsive in the way that nick said
HyunjunA Apr 5, 2023
b8f6e48
Fix bugs on initializing chatbox when user remove one chatbox in the …
HyunjunA Apr 5, 2023
e405b32
exec code on machine, in progress
jay-m-dev Apr 6, 2023
7192d9e
df and model loaded,
jay-m-dev Apr 6, 2023
4a545d6
modify viewbox setting
HyunjunA Apr 7, 2023
7bccc51
Update fetch().then() with await/async.
HyunjunA Apr 7, 2023
aca9f66
code exec and file upload to GridFS
jay-m-dev Apr 8, 2023
db7d072
remove unnecessary things
HyunjunA Apr 10, 2023
ed89b64
remove unnecessary things
HyunjunA Apr 10, 2023
54a8fb6
Merge pull request #4 from jay-m-dev/NickGPTBranch
HyunjunA Apr 10, 2023
f17a37c
change the way to get experiement id
HyunjunA Apr 10, 2023
a64f7e1
Merge remote-tracking branch 'origin' into NickGPTBranch
HyunjunA Apr 10, 2023
9568bcf
code exec on dataset or file_id, working
jay-m-dev Apr 10, 2023
c4588cf
Merge pull request #6 from jay-m-dev/exec_code_on_mach
jay-m-dev Apr 10, 2023
10a2f77
Merge remote-tracking branch 'origin' into NickGPTBranch
HyunjunA Apr 11, 2023
7ab9dcc
bug fixes and renamed executions endpoint
jay-m-dev Apr 11, 2023
9084cdf
Merge pull request #7 from jay-m-dev/code_exec_doc_updates
jay-m-dev Apr 11, 2023
6fb85e6
running python code on chat
HyunjunA Apr 11, 2023
bf1cafd
Merge pull request #5 from jay-m-dev/NickGPTBranch
HyunjunA Apr 11, 2023
7ba4b6d
Merge remote-tracking branch 'origin' into NickGPTBranch
HyunjunA Apr 11, 2023
ee06f47
test
HyunjunA Apr 12, 2023
133362e
update by jay
HyunjunA Apr 12, 2023
b0e2bb6
Merge commit '133362e5' into NickGPTBranch
HyunjunA Apr 12, 2023
6fcc57d
test
HyunjunA Apr 12, 2023
c2ea1d4
jay's update
HyunjunA Apr 12, 2023
17f97b5
Merge branch 'master' into NickGPTBranch
HyunjunA Apr 12, 2023
4ff3231
Merge pull request #8 from jay-m-dev/NickGPTBranch
HyunjunA Apr 12, 2023
83719f5
update based on jay's modification
HyunjunA Apr 12, 2023
dd74f28
removing temp folder and updated raml and api docs
jay-m-dev Apr 12, 2023
d31850d
Merge pull request #9 from jay-m-dev/code_exec_cleanup_fs
jay-m-dev Apr 12, 2023
1c60e05
Update the way to save results and show in chatbox
HyunjunA Apr 12, 2023
79bd558
Merge remote-tracking branch 'origin' into NickGPTBranch
HyunjunA Apr 12, 2023
9139098
new connection endpoints and install endpoint
jay-m-dev Apr 13, 2023
c9c40f6
updated connection endpoints and install endpoint
jay-m-dev Apr 13, 2023
9f0ec41
Merge pull request #10 from jay-m-dev/code_exec_capacity
jay-m-dev Apr 13, 2023
fdd6e7a
Preview of CSV or TSV
HyunjunA Apr 14, 2023
a4c7893
TEMP UPDATE
HyunjunA Apr 14, 2023
bf2627c
Merge remote-tracking branch 'origin' into NickGPTBranch
HyunjunA Apr 15, 2023
b0723a1
temp
HyunjunA Apr 17, 2023
78f241b
added matplotlib to code execution by default
jay-m-dev Apr 18, 2023
d3f9765
temp
HyunjunA Apr 18, 2023
d1931b7
Merge remote-tracking branch 'origin' into NickGPTBranch
HyunjunA Apr 18, 2023
34a4a61
temp
HyunjunA Apr 19, 2023
335c502
remove the two endpoints
HyunjunA Apr 19, 2023
fed5c59
Remove nested fetch
HyunjunA Apr 19, 2023
cd8f009
Fixed Automatic error correction and resubmit button.
HyunjunA Apr 19, 2023
739171c
Uncomment "Generate experiment" button
HyunjunA Apr 19, 2023
56ad430
remove old version of preview dataset
HyunjunA Apr 19, 2023
a5af63f
first version of editable chatbox
HyunjunA May 2, 2023
10f70d4
chat edit function
HyunjunA May 4, 2023
24b70c4
chatbox update for syntax highlighting, still working
HyunjunA May 8, 2023
68a2523
Update sidemeue.js. added pen button to make user save the changed ch…
HyunjunA May 9, 2023
108adb2
removed console.logs
HyunjunA May 9, 2023
64c1270
Merge pull request #11 from jay-m-dev/NickGPTBranch
HyunjunA May 9, 2023
c32d5c2
Make it always ckeck the given code to find packages that user want t…
HyunjunA May 11, 2023
b1b166c
fix issue of the chattap name
HyunjunA May 11, 2023
c92c565
fix issue of sideMenu (chattap)
HyunjunA May 11, 2023
bce41c3
Test with contextAPI
HyunjunA May 11, 2023
d982452
Merge pull request #12 from jay-m-dev/NickGPTBranch
HyunjunA May 11, 2023
a1ed6f1
ContextAPI for ChatBox and SideMenu components
HyunjunA May 11, 2023
3d1f3c6
Merge pull request #13 from jay-m-dev/NickGPTBranch
HyunjunA May 11, 2023
0e5ea58
remove key, make input length limted,
HyunjunA May 11, 2023
cc56008
make function to edit the returned code in the format
HyunjunA May 11, 2023
afe6334
Merge pull request #14 from jay-m-dev/NickGPTBranch
HyunjunA May 11, 2023
9836f45
Make submit input disable when machine is thinking to reply.
HyunjunA May 11, 2023
7f6b3f1
make heuristic way to deal with the case when chat logs are too big.
HyunjunA May 11, 2023
08989e4
Merge pull request #15 from jay-m-dev/NickGPTBranch
HyunjunA May 11, 2023
81cbbcc
modified getPackagesFromTempCode to extract packages from the code
HyunjunA May 12, 2023
beedfe1
modified preSet
HyunjunA May 12, 2023
2e1877a
Merge pull request #16 from jay-m-dev/NickGPTBranch
HyunjunA May 12, 2023
45b9da9
Update the crieteria to show preview of tablur data. if it has more t…
HyunjunA May 12, 2023
3a1e514
Merge pull request #17 from jay-m-dev/NickGPTBranch
HyunjunA May 12, 2023
a8a68f1
update function to extract packages from given code.
HyunjunA May 12, 2023
683cb08
Merge pull request #18 from jay-m-dev/NickGPTBranch
HyunjunA May 12, 2023
2074015
edit chatExamples.md
HyunjunA May 12, 2023
7f56254
edit css to locate chatinput box always bottom
HyunjunA May 12, 2023
83b7fe8
make auto-scroll-down when users click run, install and run, submit e…
HyunjunA May 12, 2023
f57b73f
add link to download zip file.
HyunjunA May 13, 2023
d27c5b2
Merge pull request #19 from jay-m-dev/NickGPTBranch
HyunjunA May 13, 2023
ae78c82
add blinking dot. add function for generating experiment button.
HyunjunA May 17, 2023
24e145b
Merge pull request #20 from jay-m-dev/NickGPTBranch
HyunjunA May 17, 2023
24ad5db
removed some console.logs
HyunjunA May 17, 2023
29c7dca
make cursor for preveiw and generate experiement button pointer
HyunjunA May 17, 2023
3d97327
Merge pull request #21 from jay-m-dev/NickGPTBranch
HyunjunA May 17, 2023
39f386e
change mockData with makeDataFormat
HyunjunA May 17, 2023
c35ad79
Update scatter plot axis format,
HyunjunA May 22, 2023
d675240
removed non-necessary codes
HyunjunA May 22, 2023
a77f641
removed non-necessary codes
HyunjunA May 22, 2023
025ae23
Merge pull request #22 from jay-m-dev/NickGPTBranch
HyunjunA May 22, 2023
38c1fb6
removed GET config endpoints
jay-m-dev Jun 1, 2023
dfae793
remove unnecessary information
HyunjunA Jun 1, 2023
6fee117
Added setTemperature and update div for selecting LLMs
HyunjunA Jun 2, 2023
82145b3
Merge pull request #23 from jay-m-dev/NickGPTBranch
HyunjunA Jun 2, 2023
93abda6
LLMs setting popup window
HyunjunA Jun 3, 2023
25d312d
remove "Please wait while i am thinking.." and do not save waiting me…
HyunjunA Jun 3, 2023
531a278
Merge pull request #24 from jay-m-dev/NickGPTBranch
HyunjunA Jun 3, 2023
63e4d92
small update for setting box
HyunjunA Jun 7, 2023
2250cb6
add prompt for the colum names which have _
HyunjunA Jun 7, 2023
550ff9f
fix issues on clearAllTrashIcons and clearAllCheckIcons
HyunjunA Jun 7, 2023
5a31f1d
Merge pull request #25 from jay-m-dev/NickGPTBranch
HyunjunA Jun 7, 2023
1673a9d
Update chatExamples.md for the iris and breast data.
HyunjunA Jun 8, 2023
0bbe19e
set temperture default as 0.
HyunjunA Jun 8, 2023
df6d886
Merge pull request #26 from jay-m-dev/NickGPTBranch
HyunjunA Jun 8, 2023
95b8523
remove localhost:5080 in the href to prevent from occuring error in t…
HyunjunA Jun 8, 2023
154f799
update apiDisconnButton
HyunjunA Jun 8, 2023
2b5af85
Update the chatExamples.md
HyunjunA Jun 9, 2023
eadcd95
test dataset 1201_BNG_breastTumor_small.tsv
HyunjunA Jun 9, 2023
9b1b64d
update chatExamples.md
HyunjunA Jun 9, 2023
13fa11d
update the way to parse string for the preview table
HyunjunA Jun 13, 2023
78b170e
update dataset-card delete button code but still need to implement th…
HyunjunA Jun 23, 2023
c9e8078
comment console.logs out
HyunjunA Jun 26, 2023
b988c34
save pca and tsne in GridStore
jay-m-dev Jun 30, 2023
879d413
update skl_utils to save json file with id
HyunjunA Jun 30, 2023
9607cc5
datacard deletion button
HyunjunA Jun 30, 2023
28f5b9d
comments out the code to fetch pca json file
HyunjunA Jun 30, 2023
4ba1d9a
removed unnessary files from chatgpt
HyunjunA Jun 30, 2023
113b243
Merge pull request #30 from jay-m-dev/NickGPTBranch
HyunjunA Jun 30, 2023
49f498d
Merge remote-tracking branch 'origin' into save_pca
HyunjunA Jun 30, 2023
a5913a3
modified pca-json.json as pca-json_ and tsne-json as tsne-json_
HyunjunA Jun 30, 2023
87fff9e
Merge pull request #31 from jay-m-dev/save_pca
HyunjunA Jun 30, 2023
8653476
update anythings related to pca and tsne to show charts using json file
HyunjunA Jun 30, 2023
c312799
updated the skl_util.py file that saves cvp, cvr, and qqrn informatio…
HyunjunA Jun 30, 2023
6b3d0e9
create generalized dot plot component and comment out comments which …
HyunjunA Jul 1, 2023
e6547e1
Merge pull request #32 from jay-m-dev/NickGPTBranch
HyunjunA Jul 1, 2023
1938311
Update comment for GenPlot component
HyunjunA Jul 3, 2023
05b661d
Merge pull request #33 from jay-m-dev/NickGPTBranch
HyunjunA Jul 3, 2023
80452ad
Remove showGrid and set function
HyunjunA Jul 3, 2023
c1e780a
test
HyunjunA Jul 3, 2023
332cc85
Merge pull request #34 from jay-m-dev/NickGPTBranch
jay-m-dev Jul 6, 2023
5556580
Int test upgrades. Node v18.16.1. Tests passing.
jay-m-dev Jul 7, 2023
6d38d3a
datasetcard deletion update
HyunjunA Jul 10, 2023
25e470d
removed regression dataset from classification tests
jay-m-dev Jul 11, 2023
bfc12c2
Update file_name without _id
HyunjunA Jul 12, 2023
0935a35
Merge branch 'datacard_deletion' into AliroGPT
HyunjunA Jul 12, 2023
6674b99
Merge pull request #36 from jay-m-dev/AliroGPT
jay-m-dev Jul 12, 2023
b645503
Merge pull request #38 from jay-m-dev/int_unit_tests
jay-m-dev Jul 12, 2023
d57354e
skipped tests that require encoding
jay-m-dev Jul 14, 2023
b6a28d3
Merge pull request #39 from jay-m-dev/int_unit_tests
jay-m-dev Jul 14, 2023
232c5c4
new Dockerfiles for smaller image size
jay-m-dev Jul 21, 2023
10cf2ad
modified the machine.js file like below. And modifiied the way to sav…
HyunjunA Jul 21, 2023
b878405
new multistage dockerfiles, sklearn/pandas upgrade
jay-m-dev Jul 22, 2023
a0e861c
Merge pull request #40 from jay-m-dev/docker_optimize
jay-m-dev Jul 24, 2023
1314758
Merge branch 'master' into AliroGPT
jay-m-dev Jul 24, 2023
8c80a44
1dockerfile multimach, unittest fix, prod/rpi dockerfile removed
jay-m-dev Jul 27, 2023
58cf6b8
temp
HyunjunA Jul 27, 2023
e9f62b7
Merge branch 'AliroGPT' of https://github.com/jay-m-dev/AliroGPT into…
HyunjunA Jul 27, 2023
e2ab85b
1dockerfile env vars
jay-m-dev Jul 27, 2023
7c8c1d2
Merge branch 'master' into AliroGPT
jay-m-dev Jul 27, 2023
fdabb50
remove old files in the chat component
HyunjunA Jul 28, 2023
32f17af
set int-test to target dev
jay-m-dev Jul 28, 2023
08b12a5
improved the code formatting with the Prettier tool.
HyunjunA Jul 28, 2023
1f6c177
Merge branch 'AliroGPT' of https://github.com/EpistasisLab/Aliro into…
HyunjunA Jul 28, 2023
da9857d
restored node and sklearn versions
jay-m-dev Aug 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
# Leave this set to 0 on the GitHub repo so the unit and
# integration tests do not need to have wheels (until we
# find a convenient way to use wheels on GitHub)
TAG=1.0a0
TAG=1.0.a0
USE_WHEELS=1
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@ MANIFEST
*.mp4
package-lock.json
package.json
package-copy.json
package-copy.json
machine/code_runs/
36 changes: 36 additions & 0 deletions chatExamples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## Examples of Chat for the Iris_outlier Dataset

The following table shows some examples of chat for the iris dataset. The dataset is located at 'pmlb_small/dataset/data/AliroGPT.

| | Chat examples for the iris dataset (Classification) |
| --- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1 | "Remove any outliers present in each column, except for the column named 'class', using the z-score method. Then, please fill in any missing values within the columns, except for the column named 'class', by using the average method. Finally, save the modified dataset as a new file named 'new_df.tsv'. Please refrain from using the 'scipy' library to import 'stats'." |
| 2 | "Generate a scatter plot with sepal width on the x-axis and petal length on the y-axis. Use color differentiation to show the class column and save the resulting plot as a PNG image file." |
| 3 | "Create a 3D scatter plot with sepal width, petal length, and petal width values assigned to the x, y, and z axes, respectively. Use color to differentiate data points based on the "class" column. Please make sure to save the plot as a PNG file." |
| 4 | "Attempt to read the file 'nonexist.csv' and handle any resulting errors appropriately." |
| 5 | "Please show me box plots for each column in the df dataset, grouped by the "class" variable, excluding the class column. Additionally, please include only the column name on top of each figure without any other text information." |
| 6 | "Please drop the outliers in each column using the z-score method and save the modified dataset as a new file named 'new_df.tsv'." |

---

## Examples of Chat for the Breast Dataset

The following table shows some examples of chat for the breast dataset. [Click here](https://github.com/EpistasisLab/pmlb/tree/master/datasets/breast) to access the dataset on GitHub.

| | Chat examples for the breast dataset (Classification) |
| --- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 1 | "Please use seaborn's kdeplot to show a distribution for each column in the dataframe, excluding the target column, with respect to the target column. Save each distribution plot as a PNG file." |
| 2 | "Please show me a 3D PCA plot for the df dataset with respect to the target column, and save it as a PNG file. Please note that StandardScaler should not be used." |
| 3 | "Please show me box plots for each column in the df dataset, grouped by the target variable, excluding the target column. Additionally, please include only the column name on top of each figure without any other text information." |
| 4 | "Please show me the correlation matrix between each column (excluding the target column) and save it as a PNG. Please use shortened column names, derived from the full column names, to label the axes on the correlation matrix figure." |

## Examples of Chat for the 1193_BNG_lowbwt_small.tsv Dataset

The following table shows some examples of chat for the breast dataset. The dataset is located at 'pmlb_small/dataset/data/AliroGPT'.

| | Chat examples for the 1193_BNG_lowbwt_small (Regression) |
| --- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1 | "Please show me boxplot for the inv-nodes column and save it as a png file." |
| 2 | "Please drop the rows in the DataFrame which contain outliers in the 'inv-nodes' column, and generate a box plot for the 'inv-nodes' column. The box plot image will be saved as 'inv-nodes-boxplot.png'." |
| 3 | "Please apply PCA to the 'df' dataframe and generate a 3D plot based on the 'target' output. Each scatter point in the 3D plot should be colored according to the relevant 'target' value. After generating the plot, save it as a PNG image and include a color bar. Please let me know if you have any questions." |
| 4 | "Please show me the correlation matrix between each column (excluding the target column) and save it as a PNG. Please use shortened column names, derived from the full column names, to label the axes on the correlation matrix figure." |
60 changes: 60 additions & 0 deletions chatapi.rest
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
POST http://localhost:5080/chatapi/v1/chats
Content-Type: application/json

{
"title" : "Chat with experiment id 2",
"_experiment_id": "63f6e4987c5f93004a3e3ca8",
"_dataset_id": "63f6e4947c5f93004a3e3ca7"
}

###

GET http://localhost:5080/chatapi/v1/chats

###

GET http://localhost:5080/chatapi/v1/chats/6411113943d572a8f55e5208

###

PATCH http://localhost:5080/chatapi/v1/chats/640bd7290674aa751483658b
Content-Type: application/json

{
"title" : "Chat with experiment id",
"_experiment_id": "63f6e4987c5f93004a3e3ca8",
"_dataset_id": "63f6e4947c5f93004a3e3ca7"
}

###

DELETE http://localhost:5080/chatapi/v1/chats/640bb89cf6a279429cf4ad7c

###
POST http://localhost:5080/chatapi/v1/chatlogs
Content-Type: application/json

{
"_chat_id" : "6411113943d572a8f55e5208",
"message" : "Hello there from my desk!",
"message_type" : "text",
"who" : "user"
}

###

PATCH http://localhost:5080/chatapi/v1/chatlogs/63f6e4947c5f93004a3e3ca7
Content-Type: application/json

{
"message" : "Hello from cyberspace!",
"message_type" : "text",
"who" : "openai"
}

###
GET http://localhost:5080/chatapi/v1/chats/experiment/63f6e4987c5f93004a3e3ca8

###

GET http://localhost:5080/chatapi/v1/chats/dataset/63f6e4947c5f93004a3e3ca7
4 changes: 4 additions & 0 deletions config/common.env
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@ DT_MAX_DEPTH=6
DOCKER_CLIENT_TIMEOUT=120
COMPOSE_HTTP_TIMEOUT=120

OPENAI_API_KEY=your_openai_api_key
OPENAI_ORG_ID=Personal

STARTUP_DATASET_PATH=/appsrc/data/datasets/user
CODE_RUN_PATH=/appsrc/machine/code_runs
151 changes: 151 additions & 0 deletions data/datasets/pmlb_small/iris/iris_outlier.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
sepal-length,sepal-width,petal-length,petal-width,class
6.7,3.0,5.2,2.3,2
6.0,2.2,5.0,1.5,2
6.2,2.8,4.8,1.8,2
7.7,3.8,6.7,2.2,2
7.2,3.0,5.8,1.6,2
5.5,2.4,3.8,1.1,1
6.0,2.7,5.1,1.6,1
5.5,2.5,4.0,1.3,1
5.6,2.9,3.6,1.3,1
5.7,2.9,4.2,1.3,1
5.0,3.2,1.2,0.2,0
4.9,3.1,1.5,0.1,0
5.3,3.7,1.5,0.2,0
4.8,3.1,1.6,0.2,0
5.0,3.3,1.4,0.2,0
6.3,3.4,5.6,2.4,2
7.1,3.0,5.9,2.1,2
6.3,2.8,5.1,1.5,2
6.3,2.9,5.6,1.8,2
5.8,2.7,5.1,1.9,2
5.2,2.7,3.9,1.4,1
5.6,3.0,4.1,1.3,1
6.9,3.1,4.9,1.5,1
6.2,2.9,4.3,1.3,1
6.5,2.8,4.6,1.5,1
5.0,3.0,1.6,0.2,0
5.5,3.5,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2.4,3.7,1.0,1
5.4,3.0,4.5,1.5,1
6.8,2.8,4.8,1.4,1
6.1,2.9,4.7,1.4,1
6.7,3.0,5.0,1.7,1
5.0,3.5,1.6,0.6,0
5.4,3.9,1.7,0.4,0
5.1,3.4,1.5,0.2,0
5.0,3.6,1.4,0.2,0
5.0,3.4,1.6,0.4,0

This file was deleted.

This file was deleted.

7 changes: 5 additions & 2 deletions docker-compose-doc-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ services:

doc_api_builder:
image: "node:18.13.0-slim"
command: bash -c "npm i -g raml2html && raml2html /appsrc/lab/api.raml >
/appsrc/target/ai_docs/html/lab_api_source.html"
command: bash -c "npm i -g raml2html &&
raml2html /appsrc/lab/api.raml > /appsrc/target/ai_docs/html/lab_api_source.html &&
raml2html /appsrc/docs/APIs/openai.raml > /appsrc/target/ai_docs/html/openai_source.html &&
raml2html /appsrc/docs/APIs/chatapi.raml > /appsrc/target/ai_docs/html/chatapi_source.html &&
raml2html /appsrc/docs/APIs/execapi.raml > /appsrc/target/ai_docs/html/execapi_source.html"
volumes:
- "./:/appsrc"
2 changes: 2 additions & 0 deletions docker-compose-int-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ services:
build:
context: .
dockerfile: docker/lab/Dockerfile
target: dev
args:
# - USE_WHEELS=${USE_WHEELS}
- USE_WHEELS=0
Expand All @@ -47,6 +48,7 @@ services:
build:
context: .
dockerfile: docker/machine/Dockerfile
target: dev
args:
# - USE_WHEELS=${USE_WHEELS}
- USE_WHEELS=0
Expand Down
21 changes: 21 additions & 0 deletions docker-compose-multi-machine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ services:
build:
context: .
dockerfile: docker/lab/Dockerfile
target: ${DOCKER_BUILD_ENV}
args:
- USE_WHEELS=${USE_WHEELS}
tty: true
stdin_open: true
volumes:
Expand All @@ -24,6 +27,9 @@ services:
build:
context: .
dockerfile: docker/machine/Dockerfile
target: ${DOCKER_BUILD_ENV}
args:
- USE_WHEELS=${USE_WHEELS}
tty: true
stdin_open: true
volumes:
Expand All @@ -43,6 +49,9 @@ services:
build:
context: .
dockerfile: docker/machine/Dockerfile
target: ${DOCKER_BUILD_ENV}
args:
- USE_WHEELS=${USE_WHEELS}
tty: true
stdin_open: true
volumes:
Expand All @@ -62,6 +71,9 @@ services:
build:
context: .
dockerfile: docker/machine/Dockerfile
target: ${DOCKER_BUILD_ENV}
args:
- USE_WHEELS=${USE_WHEELS}
tty: true
stdin_open: true
volumes:
Expand All @@ -81,6 +93,9 @@ services:
build:
context: .
dockerfile: docker/machine/Dockerfile
target: ${DOCKER_BUILD_ENV}
args:
- USE_WHEELS=${USE_WHEELS}
tty: true
stdin_open: true
volumes:
Expand All @@ -99,6 +114,9 @@ services:
build:
context: .
dockerfile: docker/machine/Dockerfile
target: ${DOCKER_BUILD_ENV}
args:
- USE_WHEELS=${USE_WHEELS}
tty: true
stdin_open: true
volumes:
Expand All @@ -118,6 +136,9 @@ services:
build:
context: .
dockerfile: docker/machine/Dockerfile
target: ${DOCKER_BUILD_ENV}
args:
- USE_WHEELS=${USE_WHEELS}
tty: true
stdin_open: true
volumes:
Expand Down
Loading