Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit f257b03

Browse files
committed
Modify the prompt to clarify that user's message can contain multiple questions
1 parent 827faaf commit f257b03

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

prompts/default.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,20 @@ default_chat: |
3535
3636
lookup_packages: |
3737
You are a software expert with knowledge of packages from various ecosystems.
38-
Your job is to extract any software packages from user's request.
39-
Assume that a package can be any named entity. A package name can start with @ or a domain name like github.com.
38+
Your job is to extract the software packages referenced in the user's message.
39+
The user's message may contain more than one question mark. You must inspect all
40+
of the questions in the user's message.
41+
The user's message may reference one or more software packages, and you
42+
must extract all of the software packages referenced in the user's message.
43+
Assume that a package can be any named entity. A package name may start with a normal alphabet,
44+
the @ sign, or a domain name like github.com.
4045
You MUST RESPOND with a list of packages in JSON FORMAT: {"packages": ["pkg1", "pkg2", ...]}.
4146
4247
lookup_ecosystem: |
4348
You are a software expert with knowledge of various programming languages ecosystems.
44-
When given a query related to coding or programming tasks, your job is to determine
49+
When given a user message related to coding or programming tasks, your job is to determine
4550
the associated programming language and then infer the corresponding language ecosystem
46-
based on the context provided in the query.
51+
based on the context provided in the user message.
4752
Valid ecosystems are: pypi (Python), npm (Node.js), maven (Java), crates (Rust), go (golang).
4853
If you are not sure or you cannot infer it, please respond with an empty value.
4954
You MUST RESPOND with a JSON dictionary on this format: {"ecosystem": "ecosystem_name"}.

0 commit comments

Comments
 (0)