If you are like me, and you didnโ€™t immediately understand why people rave about Copilot, these simple examples by Simon Willison may be useful to you:

You are viewing a single thread.
View all comments
2 points
*

I just started using it a week ago and I canโ€™t stop geeking out over it!

My favourite is that it even writes comments well which is the thing most programmers hate the most!

permalink
report
reply

The biggest aha-moment with Copilot for me was when I wanted to implement tools for my GPT-based personal assistant. The function calling wasnโ€™t yet available in the OpenAI API, and Iโ€™ve found that GPT-3.5 was really bad at using tools consistently in a long chat conversation. So I decided to implement a classifier DAG, with either a simple LLM prompt or a regular function in its nodes. Something like this:

what is this? (reminder | todo | other)
    reminder -> what kind of reminder? (one-time | recurring)
        one-time -> return the ISO timestamp and the reminder text in a JSON object like this
        recurring -> return the cron expression and the reminder text in a JSON object like this
    todo -> what kind of todo operation (add | delete | ...)
        ...
    other -> just respond normally

I wrote an example of using this classifier graph in code, something like this (itโ€™s missing a lot of important details):

const decisionTree = new Decision(
  userIntentClassifier, {
    "REMINDER": new Decision(
      reminderClassifier, {
        "ONE_TIME": new Sequence(
          parseNaturalLanguageTime,
          createOneTimeReminder,
          explainAction
        ),
        "RECURRING": new Sequence(
          createRecurringReminder,
          explainAction
        ),
      }
    ),
    "TASK": new Decision(
      taskClassifier, {
        ...
      }
    ),
    "NONE": answerInChat,
  }
);

decisionTree.call(context);

And then I started writing class Decision, class Sequence, etc. and it implemented the classes perfectly!

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply

Actually Useful AI

!auai@programming.dev

Create post

Welcome! ๐Ÿค–

Our community focuses on programming-oriented, hype-free discussion of Artificial Intelligence (AI) topics. We aim to curate content that truly contributes to the understanding and practical application of AI, making it, as the name suggests, โ€œactually usefulโ€ for developers and enthusiasts alike.

Be an active member! ๐Ÿ””

We highly value participation in our community. Whether itโ€™s asking questions, sharing insights, or sparking new discussions, your engagement helps us all grow.

What can I post? ๐Ÿ“

In general, anything related to AI is acceptable. However, we encourage you to strive for high-quality content.

What is not allowed? ๐Ÿšซ

  • ๐Ÿ”Š Sensationalism: โ€œHow I made $1000 in 30 minutes using ChatGPT - the answer will surprise you!โ€
  • โ™ป๏ธ Recycled Content: โ€œUltimate ChatGPT Prompting Guideโ€ that is the 10,000th variation on โ€œAs a (role), explain (thing) in (style)โ€
  • ๐Ÿšฎ Blogspam: Anything the mods consider crypto/AI bro success porn sigma grindset blogspam

General Rules ๐Ÿ“œ

Members are expected to engage in on-topic discussions, and exhibit mature, respectful behavior. Those who fail to uphold these standards may find their posts or comments removed, with repeat offenders potentially facing a permanent ban.

While we appreciate focus, a little humor and off-topic banter, when tasteful and relevant, can also add flavor to our discussions.

Related Communities ๐ŸŒ

General

Chat

Image

Open Source

Please message @sisyphean@programming.dev if you would like us to add a community to this list.

Icon base by Lord Berandas under CC BY 3.0 with modifications to add a gradient

Community stats

  • 2

    Monthly active users

  • 157

    Posts

  • 594

    Comments