Skip to content

(EAI-506 redux): Refactor full response generation as a stateless function #498

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

Merged
merged 20 commits into from
Sep 24, 2024

Conversation

mongodben
Copy link
Collaborator

@mongodben mongodben commented Sep 6, 2024

Jira: https://jira.mongodb.org/browse/EAI-506

Changes

  • Refactor the response generation as a stateless function so that we can more easily evaluate outputs w/o a server
  • Evaluate our whole RAG pipeline w/ braintrust autoevals
  • Refactor autoevals to use azure openai instead of plain ol openai
  • Upgrade typechat to "^0.1.0" b/c it was causing issues w/ braintrust CLI (see CLI Error: [ERROR] Could not resolve "readline/promises" braintrustdata/braintrust-sdk#356)
  • Add Braintrust instrumentation to our server implementation to trace results in the evals.
    • Note: We can also easily trace w the braintrust observability module if ever choose to use that.
  • Refactor server unit tests for simplicity

(Taken from #489)

Notes

mongodben and others added 16 commits August 28, 2024 10:25
Co-authored-by: Nick Larew <nick.larew@mongodb.com>
@mongodben mongodben marked this pull request as draft September 6, 2024 14:06
@mongodben mongodben marked this pull request as ready for review September 23, 2024 19:47
@mongodben mongodben merged commit 52bd0b0 into main Sep 24, 2024
1 check was pending
@mongodben mongodben deleted the EAI-506 branch September 24, 2024 12:59
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.

None yet

2 participants