Li Jiang
11088181b6
Improve RetrieveChat ( #6 )
...
* Upsert in batch
* Improve update context, support customized answer prefix
* Update tests
* Update intermediate answer
* Fix duplicate intermediate answer, add example 6 to notebook
* Add notebook results
* Works better without intermediate answers in the context
* Bump version to 0.1.2
* Remove commented code and add descriptions to _generate_retrieve_user_reply
---------
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu >
2023-09-27 01:22:50 +00:00
Chi Wang
8a43c3bab1
cleanup
2023-09-21 15:58:42 +00:00
Chi Wang
23633ae744
cleanup
2023-09-21 15:39:52 +00:00
Chi Wang
b6ef985d4f
cleanup
2023-09-19 17:50:43 +00:00
Chi Wang
41074d127f
cleanup
2023-09-19 13:52:31 +00:00
Chi Wang
3f44a3a157
cleanup
2023-09-19 13:09:57 +00:00
Chi Wang
c42b68b889
cleanup
2023-09-19 12:44:59 +00:00
Chi Wang
ec85b4984d
cleanup
2023-09-19 02:26:57 +00:00
Chi Wang
78b79aa036
cleanup
2023-09-16 20:58:17 +00:00
Chi Wang
1517105c3a
cleanup
2023-09-16 16:41:15 +00:00
Chi Wang
812db59d33
cleanup
2023-09-16 15:30:28 +00:00
Chi Wang
bc4473fe8a
cleanup
2023-09-16 10:57:57 +00:00
Chi Wang
4685f27d02
Merge remote-tracking branch 'upstream/main' into code
2023-09-16 10:13:38 +00:00
“skzhang1”
a21a635502
update action
2023-09-04 21:18:19 -04:00
“skzhang1”
18278c9fae
add action
2023-09-04 20:48:18 -04:00
Li Jiang
700ff05874
Add RetrieveChat ( #1158 )
...
* Add RetrieveChat notebook, RetrieveAssistantAgent and RetrieveUserProxyAgent
* Update according to comments
* Add output
* Add tests, merge main, address comments
* Fix tests
* Merge main
* Remove unnecessary code
* Update test
* Update notebook, some functions
* Fix print issue
* Update notebook
* Update notebook
* Update notebook
* Improve retrieve utils and update notebook
* Update vector db creation method
* Update notebook
* Update notebook
* Add terminate if no more context
* Update prompt and notebook, add example for update context
* Update results
* Update results
* Update results of update context
* Fix typo
* Add table of contents
* Update table of contents
2023-08-13 12:51:54 +00:00
Chi Wang
c48babd02f
raise error when msg is invalid; fix docstr; improve ResponsiveAgent; update doc and packaging; capture ipython output; find code blocks with llm when regex fails. ( #1154 )
...
* autogen.agent -> autogen.agentchat
* bug fix in portfolio
* notebook
* timeout
* timeout
* infer lang; close #1150
* timeout
* message context
* context handling
* add sender to generate_reply
* clean up the receive function
* move mathchat to contrib
* contrib
* last_message
* Add OptiGuide: agent and notebook
* Optiguide notebook: add figures and URL
1. figures and code points to remote URL
2. simplify the prompt for the interpreter, because
all information is already in the chat history.
* Update name: Agent -> GenericAgent
* Update notebook
* Rename: GenericAgent -> ResponsiveAgent
* Rebase to autogen.agentchat
* OptiGuide: Comment, sytle, and notebook updates
* simplify optiguide
* raise error when msg is invalid; fix docstr
* allow return None for generate_reply()
* update_system_message
* test update_system_message
* simplify optiguide
* simplify optiguide
* simplify optiguide
* simplify optiguide
* move test
* add test and fix bug
* doc update
* doc update
* doc update
* color
* optiguide
* prompt
* test danger case
* packaging
* docker
* remove path in traceback
* capture ipython output
* simplify
* find code blocks with llm
* find code with llm
* order
* order
* fix bug in context handling
* print executing msg
* print executing msg
* test find code
* test find code
* disable find_code
* default_auto_reply
* default auto reply
* remove optiguide
* remove -e
---------
Co-authored-by: Beibin Li <beibin79@gmail.com >
2023-08-01 02:22:30 +00:00
Chi Wang
2406e69496
Json config list, agent refactoring and new notebooks ( #1133 )
...
* simplify the initiation of chat
* version update
* include openai
* completion
* load config list from json
* initiate_chat
* oai config list
* oai config list
* config list
* config_list
* raise_error
* retry_time
* raise condition
* oai config list
* catch file not found
* catch openml error
* handle openml error
* handle openml error
* handle openml error
* handle openml error
* handle openml error
* handle openml error
* close #1139
* use property
* termination msg
* AIUserProxyAgent
* smaller dev container
* update notebooks
* match
* document code execution and AIUserProxyAgent
* gpt 3.5 config list
* rate limit
* variable visibility
* remove unnecessary import
* quote
* notebook comments
* remove mathchat from init import
* two users
* import location
* expose config
* return str not tuple
* rate limit
* ipython user proxy
* message
* None result
* rate limit
* rate limit
* rate limit
* rate limit
2023-07-23 13:23:09 +00:00
Chi Wang
297a1ea9e0
Update assistant agent ( #1121 )
...
* update colab link
* typo
* upload file instruction
* update system message and notebooks
* update notebooks
* notebook test
* aoai api version and exclusion
* gpt-3.5-turbo
* dict check
* change model for test
* endpoints, cache_path and func description update
* model list
* gitter -> discord
2023-07-14 22:52:45 +00:00
Yiran Wu
e3ca95bf8a
An agent implementation of MathChat ( #1090 )
...
* mathcaht implementation
* code forrmat
* update readme
* update openai.yml
* update openai.yml
* update openai.yml
2023-06-25 13:49:34 +00:00
Li Jiang
3874a429cf
fix workflow ( #1071 )
2023-06-14 06:44:30 +00:00
Chi Wang
5387a0a607
Agent notebook example with human feedback; Support shell command and multiple code blocks; Improve the system message for assistant agent; Improve utility functions for config lists; reuse docker image ( #1056 )
...
* add agent notebook and documentation
* fix bug
* set flush to True when printing msg in agent
* add a math problem in agent notebook
* remove
* header
* improve notebook doc
* notebook update
* improve notebook example
* improve doc
* agent notebook example with user feedback
* log
* log
* improve notebook doc
* improve print
* doc
* human_input_mode
* human_input_mode str
* indent
* indent
* Update flaml/autogen/agent/user_proxy_agent.py
Co-authored-by: Chi Wang <wang.chi@microsoft.com >
* shell command and multiple code blocks
* Update notebook/autogen_agent.ipynb
Co-authored-by: Chi Wang <wang.chi@microsoft.com >
* Update notebook/autogen_agent.ipynb
Co-authored-by: Chi Wang <wang.chi@microsoft.com >
* Update notebook/autogen_agent.ipynb
Co-authored-by: Chi Wang <wang.chi@microsoft.com >
* coding agent
* math notebook
* renaming and doc format
* typo
* infer lang
* sh
* docker
* docker
* reset consecutive autoreply counter
* fix explanation
* paper talk
* human feedback
* web info
* rename test
* config list explanation
* link to blogpost
* installation
* homepage features
* features
* features
* rename agent
* remove notebook
* notebook test
* docker command
* notebook update
* lang -> cmd
* notebook
* make it work for gpt-3.5
* return full log
* quote
* docker
* docker
* docker
* docker
* docker
* docker image list
* notebook
* notebook
* use_docker
* use_docker
* use_docker
* doc
* agent
* doc
* abs path
* pandas
* docker
* reuse docker image
* context window
* news
* print format
* pyspark version in py3.8
* pyspark in py3.8
* pyspark and ray
* quote
* pyspark
* pyspark
* pyspark
---------
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu >
2023-06-09 18:40:04 +00:00
Chi Wang
e463146cb8
response filter ( #1039 )
...
* response filter
* rewrite implement based on the filter
* multi responses
* abs path
* code handling
* option to not use docker
* context
* eval_only -> raise_error
* notebook
* utils
* utils
* separate tests
* test
* test
* test
* test
* test
* test
* test
* test
* **config in test()
* test
* test
* filename
2023-05-21 22:22:29 +00:00
Li Jiang
7de4eb347d
Fix PULL_REQUEST_TEMPLATE and improve test by removing unnecessary environment variable ( #1043 )
...
* Improve test by removing unnecessary environment variable
* Fix PULL_REQUEST_TEMPLATE
* Hide pre-commit check
* remove the checkbox for pre-commit
Co-authored-by: Chi Wang <wang.chi@microsoft.com >
---------
Co-authored-by: Chi Wang <wang.chi@microsoft.com >
2023-05-19 20:05:14 +00:00
Jirka Borovec
73bb6e7667
pyproject.toml & switch to Ruff ( #976 )
...
* unify config to pyproject.toml
replace flake8 with Ruff
* drop configs
* update
* fixing
* Apply suggestions from code review
Co-authored-by: Zvi Baratz <z.baratz@gmail.com >
* setup
* ci
* pr template
* reword
---------
Co-authored-by: Zvi Baratz <z.baratz@gmail.com >
Co-authored-by: Li Jiang <lijiang1@microsoft.com >
2023-04-28 01:54:55 +00:00
Chi Wang
fa5ccea862
extract code from text; solve_problem; request_timeout in config; improve code ( #999 )
...
* extract code from text
* solve_problem; request_timeout in config
* improve
* move import statement
* improve code
* generate assertions
* constant
* configs for implement; voting
* doc
* execute code in docker
* success indicator of code executation in docker
* success indicator
* execute code
* strip n
* add cost in generate_code
* add docstr
* filename
* bytes
* check docker version
* print log
* python test
* remove api key address
* rename exit code
* success exit code
* datasets
* exit code
* recover openai tests
* cache and pattern match
* wait
* wait
* cache and test
* timeout test
* python image name and skip macos
* windows image
* docker images
* volume path and yaml
* win path -> posix
* extensions
* path
* path
* path
* path
* path
* path
* path
* path
* path
* path
* path
* skip windows
* path
* timeout in windows
* use_docker
* use_docker
* hot fix from #1000
---------
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu >
2023-04-23 11:50:29 +00:00
Jirka Borovec
f404b66a4c
ci: concurrency ( #931 )
...
* ci: concurrency
* no fail-fast
* Apply suggestions from code review
---------
Co-authored-by: Shaokun <shaokunzhang529@gmail.com >
2023-04-04 04:44:23 +00:00
Qingyun Wu
45641000c0
Adding a test function for OpenAI completion in flaml ( #951 )
...
* improve max_valid_n and doc
* Update README.md
Co-authored-by: Li Jiang <lijiang1@microsoft.com >
* add support for chatgpt
* notebook
* newline at end of file
* chatgpt notebook
* ChatGPT in Azure
* doc
* math
* warning, timeout, log file name
* handle import error
* doc update; default value
* paper
* doc
* docstr
* eval_func
* add a test func in completion
* update notebook
* update math notebook
* improve notebok
* lint and handle exception
* flake8
* exception in test
* add agg_method
* NameError
* refactor
* Update flaml/integrations/oai/completion.py
Co-authored-by: Chi Wang <wang.chi@microsoft.com >
* Update flaml/integrations/oai/completion.py
Co-authored-by: Chi Wang <wang.chi@microsoft.com >
* add example
* merge files from oai_eval_test
* Revert "merge files from oai_eval_test"
This reverts commit 1e6a550f913bb94df6e9680934ccb7175d00702e.
* merge
* save results to notebook_output
* update version and cache
* update doc
* save nb cell results to file
* fix typo in model name
* code improvements
* improve docstr
* docstr
* docstr on the Returns of test
---------
Co-authored-by: Chi Wang <wang.chi@microsoft.com >
Co-authored-by: Li Jiang <lijiang1@microsoft.com >
Co-authored-by: Susan Xueqing Liu <liususan091219@users.noreply.github.com >
2023-04-02 16:14:11 +00:00
Chi Wang
595f5a8025
gpt-4 support; openai workflow fix; model str; timeout; voting ( #958 )
...
* workflow; model str; timeout
* voting
* notebook
* pull request
* recover workflow
* voted answer
* aoai
* ignore None answer
* default config
* note
* gpt-4
* n=5
* cleanup
* config name
* introduction
* readme
* avoid None
* add output/ to gitignore
* openai version
* invalid var
* comment long running cells
2023-03-26 17:13:06 +00:00
Li Jiang
50334f2c52
Support spark dataframe as input dataset and spark models as estimators ( #934 )
...
* add basic support to Spark dataframe
add support to SynapseML LightGBM model
update to pyspark>=3.2.0 to leverage pandas_on_Spark API
* clean code, add TODOs
* add sample_train_data for pyspark.pandas dataframe, fix bugs
* improve some functions, fix bugs
* fix dict change size during iteration
* update model predict
* update LightGBM model, update test
* update SynapseML LightGBM params
* update synapseML and tests
* update TODOs
* Added support to roc_auc for spark models
* Added support to score of spark estimator
* Added test for automl score of spark estimator
* Added cv support to pyspark.pandas dataframe
* Update test, fix bugs
* Added tests
* Updated docs, tests, added a notebook
* Fix bugs in non-spark env
* Fix bugs and improve tests
* Fix uninstall pyspark
* Fix tests error
* Fix java.lang.OutOfMemoryError: Java heap space
* Fix test_performance
* Update test_sparkml to test_0sparkml to use the expected spark conf
* Remove unnecessary widgets in notebook
* Fix iloc java.lang.StackOverflowError
* fix pre-commit
* Added params check for spark dataframes
* Refactor code for train_test_split to a function
* Update train_test_split_pyspark
* Refactor if-else, remove unnecessary code
* Remove y from predict, remove mem control from n_iter compute
* Update workflow
* Improve _split_pyspark
* Fix test failure of too short training time
* Fix typos, improve docstrings
* Fix index errors of pandas_on_spark, add spark loss metric
* Fix typo of ndcgAtK
* Update NDCG metrics and tests
* Remove unuseful logger
* Use cache and count to ensure consistent indexes
* refactor for merge maain
* fix errors of refactor
* Updated SparkLightGBMEstimator and cache
* Updated config2params
* Remove unused import
* Fix unknown parameters
* Update default_estimator_list
* Add unit tests for spark metrics
2023-03-25 19:59:46 +00:00
Jirka Borovec
a340919458
adding precommit check ( #930 )
...
* adding precommit check
* run precommit
* Apply suggestions from code review
Co-authored-by: Zvi Baratz <z.baratz@gmail.com >
* apply precommit
---------
Co-authored-by: Zvi Baratz <z.baratz@gmail.com >
2023-02-28 16:29:07 +00:00
Jirka Borovec
2ff1035733
precommit: end-of-file-fixer ( #929 )
...
* precommit: end-of-file-fixer
* exclude .gitignore
* apply
---------
Co-authored-by: Shaokun <shaokunzhang529@gmail.com >
2023-02-28 16:27:14 +00:00
Chi Wang
501a0b8eb8
bump version to 1.1.3; workflow trigger ( #924 )
2023-02-18 16:07:27 +00:00
Chi Wang
35ce9b79e8
azure oai ( #920 )
...
* azure oai
* price update in notebook
* text Davinci
* pytorch-lightning version
* trigger action in merge queue
* types
* doc check in mege group
2023-02-16 23:38:50 +00:00
Chi Wang
671146146a
workflow path->paths ( #915 )
...
* workflow path->paths
* Apply suggestions from code review
Co-authored-by: Li Jiang <bnujli@gmail.com >
---------
Co-authored-by: Li Jiang <bnujli@gmail.com >
2023-02-08 20:47:07 -08:00
Chi Wang
63d350d4c8
Openai ( #905 )
...
* add cost budget; move loc of make_dir
* support openai completion
* install pytest in workflow
* skip openai test
* test openai
* path for docs rebuild
* install datasets
* signal
* notebook
* notebook in workflow
* optional arguments and special params
* key -> k
* improve readability
* assumption
* optimize for model selection
* larger range of max_tokens
* notebook
* python package workflow
* skip on win
2023-02-05 20:13:08 -08:00
Li Jiang
da2cd7ca89
Add supporting using Spark as the backend of parallel training ( #846 )
...
* Added spark support for parallel training.
* Added tests and fixed a bug
* Added more tests and updated docs
* Updated setup.py and docs
* Added customize_learner and tests
* Update spark tests and setup.py
* Update docs and verbose
* Update logging, fix issue in cloud notebook
* Update github workflow for spark tests
* Update github workflow
* Remove hack of handling _choice_
* Allow for failures
* Fix tests, update docs
* Update setup.py
* Update Dockerfile for Spark
* Update tests, remove some warnings
* Add test for notebooks, update utils
* Add performance test for Spark
* Fix lru_cache maxsize
* Fix test failures on some platforms
* Fix coverage report failure
* resovle PR comments
* resovle PR comments 2nd round
* resovle PR comments 3rd round
* fix lint and rename test class
* resovle PR comments 4th round
* refactor customize_learner to broadcast_code
2022-12-23 08:18:49 -08:00
Chi Wang
232c356a4b
fix bug related to _choice_ ( #848 )
...
* fix bug related to _choice_
* remove py 3.6
* sanitize config
* optimize test
2022-12-13 15:48:32 -05:00
dependabot[bot]
b58151b3fa
Bump actions/checkout from 2 to 3
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-04 23:23:27 +00:00
zsk
d6fd89a80a
Merge branch 'main' into dependabot/github_actions/codecov/codecov-action-3
2022-11-01 20:13:22 -04:00
zsk
dfdef8db32
Merge branch 'main' into dependabot/github_actions/codecov/codecov-action-3
2022-11-01 11:07:47 -04:00
zsk
06cff076f0
Merge branch 'main' into dependabot/github_actions/actions/setup-python-4
2022-11-01 11:07:39 -04:00
Chi Wang
b7a010e657
Move import location for Ray 2 ( #721 )
...
* ray version check when importing
* display learner_class when starting_points removed
* test ray 2
2022-09-13 19:13:06 -07:00
zsk
c224694f17
Merge branch 'main' into dependabot/github_actions/actions/setup-python-4
2022-08-24 13:51:58 -04:00
zsk
d7f5a54525
Merge branch 'main' into dependabot/github_actions/codecov/codecov-action-3
2022-08-24 13:51:51 -04:00
zsk
8a4a401097
Merge branch 'main' into dependabot/github_actions/actions/cache-3
2022-08-23 23:06:54 -04:00
zsk
71a2d9fd89
Merge branch 'main' into dependabot/github_actions/actions/setup-node-3
2022-08-22 10:30:02 -04:00
zsk
af85eb3b25
Merge branch 'main' into dependabot/github_actions/actions/cache-3
2022-08-22 10:29:37 -04:00
Xueqing Liu
2ead296676
updating nlp notebook ( #693 )
...
* updating nlp notebook
2022-08-22 07:20:48 -04:00
dependabot[bot]
8064ecf0e7
Bump actions/setup-python from 2 to 4
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 2 to 4.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v2...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-21 22:46:02 +00:00