📎Attachments
Available Attachments Type
☁️ S3AttachmentConfig
from gllm_evals.types import S3AttachmentConfig
attachments_config = S3AttachmentConfig(
s3_bucket="your-s3-bucket",
s3_prefix="your-s3-prefix", # directory where you store the files in the S3 bucket
aws_access_key_id=os.getenv("AWS_ACCESS_KEY_ID"),
aws_secret_access_key=os.getenv("AWS_SECRET_ACCESS_KEY"),
aws_region=os.getenv("AWS_REGION"),
)
# you then can put the `attachments_config` as a parameter in a certain dataset
dataset = await SpreadsheetDataset.from_gsheets(
sheet_id="your-sheet-id",
worksheet_name="your-worksheet-name",
client_email=os.getenv("GOOGLE_SHEETS_CLIENT_EMAIL"),
private_key=os.getenv("GOOGLE_SHEETS_PRIVATE_KEY"),
attachments_config=attachments_config,
),🗃️ GoogleDriveAttachmentConfig
💻 LocalAttachmentConfig
Dataset Format
question_id
query
expected_response
attachments
Last updated
Was this helpful?