Shakakai
Joined 18 years ago
Joined 18 years ago
# What does it currently do?
- Documentation: Provides a class that you can easily generate documentation for. This means all your normal python documentation generators and tooling can provide useful docs for your templates that are easily consumable by your team.
- IDE/Copilot Support: Pydantic classes provide an great developer experience in the IDE with helpful autocomplete and a structure that Copilot understands well.
- Validation: Runtime validation that the data conforms to the type definitions.
# Why did I create this?
I'm working with LLMs everyday now. I have hundreds of LLM prompts (and countless variants) in my project. If you are like me, it doesn't take long after creating a template to forget the shape of the data required to make it render properly. I'm lazy. This library lets me forget more things and lean on my tooling.
# Notes
- Currently works with Jinja2 and Django templating engines. If you need a different engine, just ask (quick to implement).
- Was built to play nice with any framework.
- Next library coming is a Non-OpenAI interface to LLMs that feels good. Uses LiteLLM under the hood to support almost all available LLMs.
Network effect with programming languages is a difficult nut to crack. That's the reason most new languages build on the syntax and features of existing "successful" languages.
The toolchain aspect has been less of an issue for us since we're using it for pure data analysis rather than shoehorning it into building webapps etc.
If you are writing a trivially simple webapp, then you would be correct that you could hack together something with just the core language features of PHP.
I can tell you legal recourse is a bit of a tricky thing. You really don't want to rely on contracts in a foreigner vs chinese situation. The supplier's guanxi (business relationships) will almost always trump your connections. The only way to resolve things are:
A) Place a larger order under safer terms for you - I know that sounds crazy but you can sometimes get suppliers to "do the right thing" by rewarding them for their bad behavior. Offer to purchase an extra large order where the money they already have is the down payment. Requires a certain morale flexibility to hand more money over to a thief (but it can get the job done)!
B) Buy some guanxi. Get yourself a high end law firm (or consultant) based in Shenzhen and pay for their persuasive abilities with the local government and supplier in question.
Hope this helps. Good luck!