Commit Graph

3198 Commits

Author SHA1 Message Date
Mohamed Attia
a3547f82c4 Replace the use of assert in non-test code (#80)
* Replace `assert`s in the `conversable_agent` module with `if-log-raise`.

* Use a `logger` object in the `code_utils` module.

* Replace use of `assert` with `if-log-raise` in the `code_utils` module.

* Replace use of `assert` in the `math_utils` module with `if-not-raise`.

* Replace `assert` with `if` in the `oai.completion` module.

* Replace `assert` in the `retrieve_utils` module with an if statement.

* Add missing `not`.

* Blacken `completion.py`.

* Test `generate_reply` and `a_generate_reply` raise an assertion error
when there are neither `messages` nor a `sender`.

* Test `execute_code` raises an `AssertionError` when neither code nor
filename is provided.

* Test `split_text_to_chunks` raises when passed an invalid chunk mode.

* * Add `tiktoken` and `chromadb` to test dependencies as they're used in
the `test_retrieve_utils` module.

* Sort the test requirements alphabetically.
2023-10-03 17:52:50 +00:00
Al-Ekram Elahee Hridoy
39c145dd53 Format issue (#69)
* Fixed formating issue in the README

* Fixed the formating issue in the README

* Updated formatting as per review comments

* Refactor README.md to highlight use cases and features

* Updated README as per feedback

* Updated README as per feedback

---------

Co-authored-by: Al-Iqram Elahee <hridoy@Al-Iqrams-MacBook-Pro.local>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
v0.1.6
2023-10-03 02:36:23 +00:00
Shaurya Rohatgi
1131943a5d spelling error (#84) 2023-10-03 02:32:13 +00:00
Chi Wang
50cb53cfe6 bump version to 0.1.6 (#85) 2023-10-03 02:16:30 +00:00
Xiaoyun Zhang
3b5e627746 enable openai workflow on fork branch (#82)
* update

* update

* Update openai.yml
2023-10-02 19:46:46 +00:00
Yiran Wu
4d85f4db0a fix append_oai_message (#47)
* fix append_oai_message

* add testcase for groupchat

* add test_oai to openai workflow

* code formate

* update

* formate

* update
2023-10-02 18:52:38 +00:00
Hiftie
0481483faa Fixed MD Issue (#72) 2023-10-02 13:01:14 +00:00
Xiaoyun Zhang
b642f69005 minor fix (#31)
* minor fix for stablility

* fix format

* fix format

* update run_code logic

* format

* Update conversable_agent.py

* fix format

* Update conversable_agent.py

* add tests

* fix format

* revert changes
2023-10-02 12:15:25 +00:00
Chi Wang
49ad771052 expand faq (#66)
* expand faq

* models

* fix format error
2023-10-02 01:34:59 +00:00
Priyanshu Yashwant Deshmukh
bf65b59b79 Updated readme.md : seprated AutoGen and EcoOptGen also removed bibtex (#43)
* Updated README.md added required changes to previous pull 

new changes :
1. A section containing citation to AutoGen and EcoOptiGen
2. Another section contain citation to MathChat
## Citation  
[AutoGen](https://arxiv.org/abs/2308.08155). 
AND  [EcoOptiGen](https://arxiv.org/abs/2303.04673).
``` 
bibtex
@inproceedings{wu2023autogen,
      title={AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation Framework},
      author={Qingyun Wu and Gagan Bansal and Jieyu Zhang and Yiran Wu and Shaokun Zhang and Erkang Zhu and Beibin Li and Li Jiang and Xiaoyun Zhang and Chi Wang},
      year={2023},
      eprint={2308.08155},
      archivePrefix={arXiv},
      primaryClass={cs.AI}
}

bibtex
@inproceedings{wang2023EcoOptiGen,
    title={Cost-Effective Hyperparameter Optimization for Large Language Model Generation Inference},
    author={Chi Wang and Susan Xueqing Liu and Ahmed H. Awadallah},
    year={2023},
    booktitle={AutoML'23},
}
```

 [MathChat](https://arxiv.org/abs/2306.01337). 

```
bibtex
@inproceedings{wu2023empirical,
    title={An Empirical Study on Challenging Math Problem Solving with GPT-4},
    author={Yiran Wu and Feiran Jia and Shaokun Zhang and Hangyu Li and Erkang Zhu and Yue Wang and Yin Tat Lee and Richard Peng and Qingyun Wu and Chi Wang},
    year={2023},
    booktitle={ArXiv preprint arXiv:2306.01337},
}
```

* Seperated AutoGen and EcoOptGen and removed 'bibtex'

## Citation  
[AutoGen](https://arxiv.org/abs/2308.08155). 
``` 
@inproceedings{wu2023autogen,
      title={AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation Framework},
      author={Qingyun Wu and Gagan Bansal and Jieyu Zhang and Yiran Wu and Shaokun Zhang and Erkang Zhu and Beibin Li and Li Jiang and Xiaoyun Zhang and Chi Wang},
      year={2023},
      eprint={2308.08155},
      archivePrefix={arXiv},
      primaryClass={cs.AI}
}
```

[EcoOptiGen](https://arxiv.org/abs/2303.04673).
```
@inproceedings{wang2023EcoOptiGen,
    title={Cost-Effective Hyperparameter Optimization for Large Language Model Generation Inference},
    author={Chi Wang and Susan Xueqing Liu and Ahmed H. Awadallah},
    year={2023},
    booktitle={AutoML'23},
}
```
2023-10-01 21:18:55 +00:00
Chi Wang
c39bfcaa6e typing & docstr update (#59)
* typing & docstr update

* bump version to 0.1.5
v0.1.5
2023-10-01 11:57:21 +00:00
Li Jiang
e4eb7aed97 Bump version to 0.1.5 (#60) 2023-10-01 11:56:49 +00:00
Aaron
4adbffa94b retrieve_utils.py - Updated.py to have the ability to parse text from PDF Files (#50)
* UPDATE - Updated retrieve_utils.py to have the ability to parse text from pdf files

* UNDO - change to recursive condition

* UPDATE - updated agentchat_RetrieveChat.ipynb to clarify which file types are accepted to be in the docs path

* ADD - missing import

* UPDATE - setup.py to have PyPDF2 in retrievechat

* RE-ADD - urls

* ADD - tests for retrieve utils, and removed deprecated PyPdf2

* Update agentchat_RetrieveChat.ipynb

* Update retrieve_utils.py

Fix format

* Update retrieve_utils.py

Replace print with logger

* UPDATE - added more specific exception to PDF decryption try/catch

* FIX - typo, return statement at wrong indentation in extract_text_from_pdf

---------

Co-authored-by: Ward <award40@LAMU0CLP74YXVX6.uhc.com>
Co-authored-by: Li Jiang <bnujli@gmail.com>
2023-10-01 10:22:58 +00:00
Ali Eren SALKIM
7112da6b7a Update README.md (#54)
README update for my profile <3
2023-10-01 02:17:58 +00:00
Li Jiang
b06919bb76 Update no_update_context, fix upsert docs (#52)
* Update no_update_context, fix upsert docs

* Recreate only once

* Add comments to get_or_create

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-10-01 02:00:00 +00:00
Chi Wang
904b293aa4 make retry_time configurable, add doc (#53)
* make retry_time configurable, add doc

* in seconds

* retry_wait_time

* bump version to 0.1.4

* remove .json

* rename

* time
v0.1.4
2023-09-30 16:21:07 +00:00
Juanma Cuevas
d802b7ae04 Improves clarity and fixes punctuation in README and Multi-agent documentation (#40)
* Improves clarity and fixes punctuation in README and Multi-agent documentation

* fix broken colab link to agentchat_groupchat_research.ipynb (others are fine)

* fix typos, improves readability
2023-09-29 17:59:30 +00:00
Ikko Eltociear Ashimine
5550803ed6 Fix typo in README.md (#37)
functionalites -> functionalities
v0.1.3
2023-09-28 20:18:57 +00:00
Chi Wang
402c5bf8d1 Fix bug for windows and improve sample code (#38)
* fix bug for windows

* fix bug for windows

* more clear example

* link to example

* add test

* format

* comment

* fix assertion error

* fix test error and links

---------

Co-authored-by: Chi Wang (MSR) <chiw@microsoft.com>
2023-09-28 20:14:36 +00:00
Danizord
d3d5dca159 Remove duplicated sentence (#35) 2023-09-28 14:54:15 +00:00
Chi Wang
0dff1237c1 cleanup 2023-09-27 21:14:21 +00:00
Chi Wang
e549fc4f80 cleanup 2023-09-27 21:01:09 +00:00
Chi Wang
38639fcf12 cleanup 2023-09-27 17:54:32 +00:00
Chi Wang
5c86bfaf35 cleanup 2023-09-27 17:43:27 +00:00
Chi Wang
8fbfa8b1c2 cleanup 2023-09-27 17:00:53 +00:00
Chi Wang
ddf10044a1 cleanup 2023-09-27 16:29:12 +00:00
Chi Wang
eef911d39b cleanup 2023-09-27 12:57:39 +00:00
Chi Wang
8e9cda716e Merge branch 'main' of https://github.com/microsoft/autogen v0.1.2 2023-09-27 04:22:54 +00:00
Chi Wang
0dca217f4d Merge branch 'cleanup' 2023-09-27 04:20:37 +00:00
Chi Wang
9f3af1ef80 cleanup 2023-09-27 04:20:22 +00:00
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
Qingyun Wu
f619eccda3 update link (#20) 2023-09-26 18:32:50 +00:00
Chi Wang
5d209d0f7d Merge branch 'cleanup' 2023-09-25 21:42:33 +00:00
Chi Wang
23ceac0fe0 cleanup 2023-09-25 21:42:24 +00:00
Chi Wang
2eddcf80df Merge branch 'cleanup' 2023-09-23 22:07:03 +00:00
Chi Wang
552c30f4c0 cleanup 2023-09-23 22:06:52 +00:00
Kosta Petan
86ac81009c change to EP plan on Windows + bux fixes (#2) 2023-09-21 21:16:21 +02:00
Beibin Li
3627ca4f2c Extact_code can detect single-line code now (#2)
* Extact_code can detect single-line code now

* Add comments for RE

* Add test case and adjust UNKNOWN behavior

* Remove tmp test files

* Update autogen/code_utils.py

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-09-21 16:50:44 +00:00
Chi Wang
8a43c3bab1 cleanup 2023-09-21 15:58:42 +00:00
Chi Wang
efa8213d9d cleanup 2023-09-21 15:40:14 +00:00
Chi Wang
23633ae744 cleanup 2023-09-21 15:39:52 +00:00
Chi Wang
7dd9831857 cleanup 2023-09-21 15:20:10 +00:00
Chi Wang
c8cdb2a752 cleanup 2023-09-21 15:19:06 +00:00
Chi Wang
6f54631707 cleanup v0.1.1 2023-09-21 02:48:20 +00:00
Chi Wang
0a1f8a1e61 cleanup 2023-09-21 02:42:38 +00:00
Chi Wang
0fbf1a0b46 cleanup 2023-09-21 02:30:53 +00:00
Chi Wang
cf4d46f31d cleanup 2023-09-19 20:34:01 +00:00
Chi Wang
012faa60e2 cleanup v0.1.1rc1 2023-09-19 18:26:50 +00:00
Chi Wang
a3efd9cecd cleanup 2023-09-19 18:14:54 +00:00
Chi Wang
b6ef985d4f cleanup v0.1.0rc2 2023-09-19 17:50:43 +00:00