components/telegram-chat/

07 · a channel post

23 July 2024
Jardin Digital
💡AI as an API to accelerate development. Instead of using AI to help you code an API: [USER NEED] -> AI as API -> Validation -> Refine for cost/quality.
def complex_task():
    """
    Input: Complex JSON data
    Instructions: Analyze and produce structured output
    Output: {
        "result": "Predicted outcome",
        "confidence": 0.95
    }
    """
Traditionally you'd add a pass for a function like this or you'd just give up while implementing, now you can let AI be a blackbox that produces the output that you need validated with something like pydantic, using instructor. Very specific use-cases, but I'm sure everyone misses them still. (Natural Language Coding)
59 viewsedited00:27
23 July 2024
Jardin Digital
💡AI as an API to accelerate development. Instead of using AI to help you code an API: [USER NEED] -> AI as API -> Validation -> Refine for cost/quality.
def complex_task():
    """
    Input: Complex JSON data
    Instructions: Analyze and produce structured output
    Output: {
        "result": "Predicted outcome",
        "confidence": 0.95
    }
    """
Traditionally you'd add a pass for a function like this or you'd just give up while implementing, now you can let AI be a blackbox that produces the output that you need validated with something like pydantic, using instructor. Very specific use-cases, but I'm sure everyone misses them still. (Natural Language Coding)
59 viewsedited00:27

Reactions are buttons: press one and you count, press again and you leave. The emoji are Noto Animated Emoji (Google, Apache 2.0), animated WebP, no player; Telegram's own set lives behind its API and is its own. Each is 150-300 KB, lazy, which is why only reactions get them. The summaries are @xtldrbot's real output for these links; the follow-up answer is illustrative.