broken💎shaders
10/14/2025, 11:57 PMRemappingId + other utilities for mapping raw data to LLM-friendly strings
https://cdn.discordapp.com/attachments/1119375594984050779/1427807583854661756/image.png?ex=68f034ef&is=68eee36f&hm=5de1450917e36f27c41ea04b1bda9eada05668541cffa5df50c521f1cb1752d2&broken💎shaders
10/15/2025, 12:05 AMbroken💎shaders
10/15/2025, 12:06 AMgreg (BAML)
10/15/2025, 12:16 AMbroken💎shaders
10/15/2025, 12:19 AMbroken💎shaders
10/15/2025, 12:22 AMpromptify_baml_obj which promtifies instances of BAML types.
Example:
java
enum JobInfoPayUnit {
USD
EUR
GBP
CAD
AUD
Crypto
Other
Percent @description("For equity")
Unknown
}
class JobInfoCompensation {
amount float[]? @description("Single figure or range of numbers")
unit JobInfoPayUnit? @description("The unit used for the amount field")
type JobInfoCompensationType @description("The type of compensation the amount field represents")
}
enum JobInfoLocationType {
Remote
Hybrid
Onsite
Unknown
}
enum JobInfoTimeCommitment {
FullTime
PartTime
Unknown
}
class JobInfo {
job_title string? @description("Job title")
company_name string? @description("Name of the company")
location JobInfoLocationType?
location_detail string? @description("If any details to add about the job location, keep it short")
time_commitment JobInfoTimeCommitment?
time_commitment_notes string? @description("If any notes to add... Keep it short")
compensation JobInfoCompensation[]? @description(#"
The compensation specified. Add multiple if it's a hybrid compensation model
(e.g. multiple ways of getting compensated, for example salary + equity)
"#)
main_body_text_refs ContentRange? @description(#"
This selection is supposed to capture the main body of text.
Select only multiple ranges if needed.
"#)
}broken💎shaders
10/15/2025, 12:31 AMpython
promptify_baml_obj(job_info,
exclude = ['main_body_text_refs'],
transform = {
'JobInfoCompensation': lambda x: promptify_compensation(x)
},
)
## --> Which turns it into a nice LLM-friendly string like this:
md
# About the job
Job title: Secondary Art Curriculum Developer
Company name: Miaplaza
Location: Remote
Location detail: 100% remote (within or outside the U.S.)
Time commitment: FullTime
Time commitment notes: 30-40 hours of availability each week on a year-round basis
Compensation:
1: (USD) $24.92-$35.01 per hour
## Job Description
Our vision is to elevate online learning by applying the most successful approaches in virtual education to create an accessible and inclusive homeschool curriculum platform where all students can be successful! Our K-8 platforms include Miacademy, Always Icecream, and Clever Dragons, and our 9-12 options include MiaPrep and MiaPrep Online High School
[...]
@Vaibhav (BAML 🐑) do you think there is a need for doing this, or is it somewhat wasted effort? I'm second guessing working on this since - what if I could just raw-dog a stringified JSON object to the LLM and get the same performance with the only downside being slightly more tokens. Is this worth it, or wasted effort? I haven't really had the chance yet to benchmark how this performs VS just serializing it with JSON.broken💎shaders
10/15/2025, 12:47 AMbroken💎shaders
10/15/2025, 12:53 AMbroken💎shaders
10/15/2025, 1:59 AMbroken💎shaders
10/15/2025, 2:12 AMpromtified <--> real data
## Basically.
The need for an orchestration solution is completely fake.
People without experience in this specific domain initially think they need an orchestration solution. There is something comforting about thinking the right framework will solve your problems. But it seems to me that this is just group think and trying to avoid the real challenge, which is more related to:
Figuring out what data models are the right abstractions for the LLM to work with and the problem domain you're working inbroken💎shaders
10/15/2025, 2:17 AMbroken💎shaders
10/15/2025, 2:25 AMbroken💎shaders
10/15/2025, 2:28 AMbroken💎shaders
10/15/2025, 2:32 AM