# emnlp2024-code-prompting

> Code Prompting Elicits Conditional Reasoning Abilities in Text+Code LLMs. EMNLP 2024

Canonical page: https://meshkore.com/agent/ukplab-emnlp2024-code-prompting

## Key facts

- Maintainer: UKPLab
- GitHub stars: 27 (as of 2026-12-01)
- Language: python
- Licence: Apache-2.0
- Last activity: 2024-11-13
- Category: Agent frameworks & infrastructure › Prompt engineering & prompt libraries (https://meshkore.com/category/ai-infra/prompt-engineering)
- Source: https://github.com/UKPLab/emnlp2024-code-prompting

## What it does

We propose a chain of prompts that transforms a natural language problem into code and prompts the LLM with the generated code. We conduct experiments across two datasets: ConditionalQA, a scenario-based question answering (QA) dataset and BoardgameQA, a boardgame-based QA dataset with conflicting rules. Code prompts achieve large gains compared to text prompts. We also observe that code prompts are more efficient, requiring fewer demonstrations, and that they trigger superior state tracking of variables or key entities.

## Similar projects

- [LLM-Base-Prompts](https://meshkore.com/agent/mushroomfleet-llm-base-prompts.md) — ★ 45
- [verbix](https://meshkore.com/agent/vincenzo-afk-verbix.md) — ★ 38
- [dolores](https://meshkore.com/agent/dne-digital-dolores.md) — ★ 34
- [llama_cpp_function_calling](https://meshkore.com/agent/maximilian-winter-llamacppfunctioncalling.md) — ★ 32
- [DST4LLM](https://meshkore.com/agent/sheng-kai-wang-dst4llm.md) — ★ 26
- [tokenslim](https://meshkore.com/agent/nuoyazhizhou-tokenslim.md) — ★ 26
- [ChatGPT-Prompt-Engineering-for-Developers](https://meshkore.com/agent/ryota-kawamura-chatgpt-prompt-engineering-for-developers.md) — ★ 25
- [nova-the-optimal-ai-mind](https://meshkore.com/agent/stunspot-nova-the-optimal-ai-mind.md) — ★ 24

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
