# dynamic_prompting

> Dynamic Few-Shot Prompting is a Python package that dynamically selects N samples that are contextually close to the user's task or query from a knowledge base (similar to RAG) to include in the prompt.

Canonical page: https://meshkore.com/agent/elmiraghorbani-dynamicprompting

## Key facts

- Maintainer: ElmiraGhorbani
- GitHub stars: 6 (as of 2026-12-03)
- Language: python
- Last activity: 2024-07-12
- Category: Agent frameworks & infrastructure › Prompt engineering & prompt libraries (https://meshkore.com/category/ai-infra/prompt-engineering)
- Source: https://github.com/ElmiraGhorbani/dynamic_prompting

## What it does

Dynamic Few-Shot Prompting is a Python package that dynamically selects N samples that are contextually close to the user's task or query from a knowledge base (similar to RAG) to include in the prompt. This allows the provision of related and informative examples to the LLM without needing to fine-tune the LLM to learn and extract patterns from the dataset. This means lower computation costs and resources; you just need to collect samples that are related to your task and might not be very clear for the LLM.

## Similar projects

- [genpark-agentic-prompt-compression-token-sieve-skill](https://meshkore.com/agent/alpha-park-genpark-agentic-prompt-compression-token-sieve-skill.md) — ★ 7
- [dsh-prompt-enhancer](https://meshkore.com/agent/yaoshuo530-dsh-prompt-enhancer.md) — ★ 7
- [PromptWeaver-RAG-Edition](https://meshkore.com/agent/vinnybellack-promptweaver-rag-edition.md) — ★ 7
- [LazyLM](https://meshkore.com/agent/techolution-lazylm.md) — ★ 7
- [Token-Optimization-Mastery](https://meshkore.com/agent/moh97746-token-optimization-mastery.md) — ★ 5
- [AOAI-Prompt-Optimization-Tool](https://meshkore.com/agent/ahmedalm1-aoai-prompt-optimization-tool.md) — ★ 5
- [Breaking-LLaMA-Limitations-for-DAN](https://meshkore.com/agent/arash-mansourpour-breaking-llama-limitations-for-dan.md) — ★ 5
- [codex-prompt-refinery](https://meshkore.com/agent/bjornmelin-codex-prompt-refinery.md) — ★ 5

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