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

Added parallel calls to OpenAI with asyncio #21

Merged
merged 52 commits into from
Apr 23, 2024
Merged

Conversation

ArthurCamara
Copy link
Contributor

No description provided.

ArthurCamara and others added 19 commits April 12, 2024 10:07
* SImplify utils to return lists instead of dictionary

* A query has many retrieved documents and many answers. Not the opposite.

* Tests for new query-document types

* small todo for OpenAI LLM

* Fixed reasoner evaluator and updated mocked llm_provider

* Update custom prompt for retrieval evaluator

* Update Domain Expert evaluator

* rdnam evaluator as an example of meta_data usage.

* Custom metadata in prompt

* Cleanup rdnam

* Start updating answer evaluator to same interface as retrieval. Re-organize duplicate code.

* dummy build_message for domain expert

* _build_message no longer abstract.

* custom prompt for answer updated to new formatting

* Better handling of parsed answers

* Simplify skip_tuples

* The great simplification of the Pairwise Answer Evaluator

* test data column fixes

* Readme update, new tests for the readme example. Other fixes.

* More general JSON parsing, moving more stuff to BaseEvaluator

* Removed unused file

* Fix to output file

* Fix to output file

* Move to pydantic, batch_eval returns existing evaluations, fixes to output

* Easier to pass retrieved documents to answer evaluator

* removed unused tuple_columns

* Solve pydantic warnings and formatting. All tests passing.

* Solve pydantic warnings and formatting. All tests passing.

* add pydantic as a requirement

* Solve pydantic deprecation warnings

* Fix import warning

* version bump of pydantic to solve openai+mypy issues

* More strict mypy checks

* not-so-strict mypy. Mypy is happy. Pytest isn't.

* Clean-up, fix tests, update readme.

* Splitting configurations into multiple files. AKA: The longer the PR is open, the more stuff I will add to it.
* Supports pydantic v1

* Unify BaseModel interface, work around on args.py.

* Change pydantic version to 1.9 on requirements and 2.7 on dev

* Fix for type annotation on 1.9

* fix for 1.9 on args.py

* fix for Pydantic 1.9 on args.py
@ArthurCamara ArthurCamara requested a review from din0s April 16, 2024 14:30
@ArthurCamara ArthurCamara merged commit 14f9fe9 into master Apr 23, 2024
@ArthurCamara ArthurCamara deleted the parallel-llm-calls branch April 23, 2024 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants