RobotecAI / RobotecAI/rai

add few-shot prompting to `rai` demo projects

Open
#346 0 comments 0 reactions 1 assignee View on GitHub

@boczekbartek is already working on this.

Since Apr 17, 2025.

enhancement good first issue llm priority/minor
Dominant language
Python
Stars
589
Forks
76
Avg merge
1d 13h
Merged PRs (30d)
3

Description

Is your feature request related to a problem? Please describe.
Currently, demo projects in rai use prompts that contain:

  • robot identity from rai_whoami (link)
  • general mission for the robot (link)
  • tips and guidelines about ros2 (link)
  • tips and guidelines about the task (link, link)
  • documentation of attached tools (link)

Describe the solution you'd like
Few-shot prompting (https://www.promptingguide.ai/techniques/fewshot) is a technique commonly used to improve LLM agents' performance. The current demo shows that LLMs can achieve good zero-shot capabilities, but with few-show prompting, they have the potential to be significantly improved.

Few-shot prompting can be applied by adding successful interactions to the system prompt. This can be a sequence of tool calls or tool calls with specific parameters.

Describe alternatives you've considered
Fine-tuning is a next step, but few-shot should be checked first, as much cheaper and easier.

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.