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

Add Tools for Managing Agent Traces in Hugging Face Datasets #217

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RohitP2005
Copy link

[Sample PR] Add Tools for Managing Agent Traces in Hugging Face Datasets

reference: #53

Summary

This PR introduces a foundational implementation for managing and uploading agent traces to Hugging Face datasets. It provides tools to simplify adding traces, maintaining an index dataset for easy retrieval, and enforcing whitelist-based constraints for legality.

Key Features

1. Hugging Face Dataset Structure

  • Index Dataset: Stores metadata for each trace, allowing easy querying based on attributes.
  • Trace Dataset: Contains actual zipped trace files, which can be retrieved via pointers from the index.

2. Upload System

  • Functionality to upload traces one by one.
  • Automated grouping of traces by study.
  • Metadata generation, including:
    • study_name, llm, benchmark, and license.
    • A reference (trace_pointer) to the actual trace file.

Notes

  • This is a sample template and can be expanded upon.
  • Future work may include better versioning, enhanced querying capabilities, and automated dataset updates.

Checklist

  • Upload functionality
  • Query functionality
  • Legal compliance checks
  • Documentation

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