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

Enable the API cost tracking in Synthesizer #1405

Closed
wants to merge 5 commits into from

Conversation

chuqingG
Copy link
Contributor

@chuqingG chuqingG commented Mar 1, 2025

Add a new parameter (False by default) to configure and enable complete cost tracking. An use case is shown as following:

synthesizer = Synthesizer(model="gpt-4o-mini", cost_tracking=True)
goldens = synthesizer.generate_goldens_from_docs(document_paths=doc_paths)
dataset = EvaluationDataset(goldens=goldens)

The output looks like:
image

Copy link

vercel bot commented Mar 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
evals-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 2, 2025 4:56am

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.

1 participant