petercat-ai / petercat

A conversational Q&A agent configuration system, self-hosted deployment solutions, and a convenient all-in-one application SDK, allowing you to create intelligent Q&A bots for your GitHub repositories
https://petercat.ai
MIT License
605 stars 18 forks source link

fix: tewak the promt of the issue helper #367

Closed xingwanying closed 2 months ago

xingwanying commented 2 months ago

image

close #363

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
petercat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 8, 2024 7:40am
petercat-assistant[bot] commented 2 months ago

Walkthrough

This PR tweaks the prompts used in the issue helper to ensure better alignment with user requirements and language preferences.

Changes

File Summary
server/agent/prompts/bot_template.py Added a guideline to avoid making up facts when unsure.
server/agent/prompts/issue_helper.py Added guidelines to respect the language of the issue's title and content.
server/agent/qa_chat.py Refactored function definitions for better readability.