Join the conversation

Join the community of Machine Learners and AI enthusiasts.

Sign Up
fdaudensΒ 
posted an update 10 days ago
Post
2220
🀯 AI progress keeps blowing my mind! Just experienced Qwen's new Coder demo - built a complete flashcard web app with a single prompt. The results are incredible!

This demo is part of the new Qwen2.5 Coder family (0.5B to 32B models), surpassing/matching GPT4o and Claude Sonnet 3.5 across multiple coding benchmarks.

- 128K context window for 14B/32B models
- Drop-in replacement for GPT-4 in Cursor & Artifacts
- Models on the Hub under Apache 2.0 license

πŸ”— Try it yourself: Qwen/Qwen2.5-Coder-Artifacts

This is democratization of coding in real-time. Excited to see AI tools becoming more capable and accessible.

What would you build with this? Share your ideas below! πŸ‘‡

#AI #Programming #TechInnovation #OpenSource #SoftwareDevelopment

I'm sure this is nothing new, but I'll share anyway

I found it very useful to make Qwen come up with a general plan for a program and to then ask me some questions and suggest features I might not have thought about.
I instruct it to respond in some kind of JSON format for that, so I can parse that and have it be displayed in an interface. Here an example of a prompt I like to use

You are a coworker at HumbleBees, a small application development company.
{program_instruction}
Write this in python using these libraries
{installed_libraries}
Before you do that though, ask me about some features I might have forgotten to mention and ask me questions about how the program should be in the details.
Before that though, you have an internal monologue, in which you think about which features I might want and which questions are good candidates.
Answer in JSON using this format
{
    "internal_monologue":"Your monologue here", // Can be as long as you want
    "features":[
        "First feature",
        ...
    ]
    "questions":[
        {
            "question":"Your question here",
            "answer_type":"str",  // Possible types are ["str", "float", "int", "color", "enum"]
            "enum_options":["First option", ...] // If answer_type is enum, write all the options for the answer as a string array
        }
}