cmpnd-ai

A DSPy adapter tailored to Qwen 3+ suggested formatting patterns.

19
1
100% credibility
Found Apr 22, 2026 at 19 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Python
AI Summary

This repository provides a specialized adapter for the DSPy framework that ensures reliable tool usage and response parsing for Qwen AI models running on local servers.

How It Works

1
🔍 Discover the Fix

You're building a smart AI helper that uses tools, but it keeps failing on tasks with your local AI brain – then you find this simple helper that makes everything reliable.

2
📦 Add the Helper

Grab the helper with a quick download and setup, like adding a useful app to your toolkit.

3
🔗 Link Your Local AI

Tell your setup to use this helper with your own running AI brain on your computer – it connects smoothly in moments.

4
🤖 Build Reliable Agents

Now craft your AI agents that think, use tools, and answer questions perfectly, without any parsing hiccups or lost steps.

5
📊 Test and Wow

Run your agents on tough scenarios like weather checks, math chains, or code tasks, and see 100% success every time.

Perfect AI Helper

Your AI agent handles complex jobs flawlessly, saving time and frustration, ready for real use.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 19 to 19 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is dspy-qwen-adapter?

This Python DSPy adapter fixes parse errors when using Qwen 3+ models (like Qwen 3.5 and Coder variants) with DSPy ReAct agents or Predict modules on local servers such as LM Studio, vLLM, or Ollama. It prompts in Qwen's native XML tool-calling format for reliable multi-turn interactions, bypassing buggy server parsers entirely. Drop it in via `dspy.configure(lm=..., adapter=QwenAdapter())` and run standard DSPy workflows without tweaking prompts or formats.

Why is it gaining traction?

Benchmarks across 880 runs on three Qwen models show zero parse failures or tool execution errors, crushing stock DSPy chat adapter, JSON adapter, and XML adapter in task success (up to 100% vs. frequent 0% fails) and multilingual scenarios. It handles ReAct trajectories natively, strips leaked think tags, and rescues empty responses from thinking-mode servers—benefits you notice in fewer wasted turns and consistent agent outputs. Devs searching dspy adapter parse error or dspy xml adapter finally get a drop-in fix for Qwen quirks.

Who should use this?

DSPy users building ReAct agents or custom modules with Qwen on local inference stacks, especially for dspy github examples involving tools, SQL, or code execution. Agent devs tired of dspy json adapter flakiness on vLLM, or those prototyping dspy rlm and multi-step chains on LM Studio. Ideal for dspy tutorial github repos needing robust Qwen support without server hacks.

Verdict

Grab it if you're doing DSPy + Qwen—benchmarks prove it works where others fail, and setup is one line. At 19 stars and 1.0% credibility, it's early beta with solid tests and a benchmark harness, but watch for streaming support.

(187 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.