You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jac-gpt-fullstack/services/jacServer.impl.jac
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -123,11 +123,11 @@ HOW TO RESPOND:
123
123
124
124
Jac documentation RAG USAGE:
125
125
- Do not use URLs in queries.
126
-
- BREAK DOWN the user's query into individual components AND aspects. Execute SEPARATE search_docs calls for EACH concept AND each aspect independently. For example: if asked "What are nodes and edges", execute separate searches: "nodes definition in Jac", "nodes usage in Jac", "nodes examples in Jac", then "edges definition in Jac", "edges usage in Jac", "edges examples in Jac". Do not combine multiple aspects (definition/usage/examples) into a single search query.
126
+
- BREAK DOWN the user's query into individual components AND aspects. Execute SEPARATE search_docs calls for EACH concept AND each aspect independently. For example: if asked "What are nodes and edges", execute separate searches: "nodes definition in Jac", "nodes in Jac", "nodes examples in Jac", then "edges definition in Jac", "edges in Jac", "edges examples in Jac". Do not combine multiple aspects (definition/examples) into a single search query.
127
127
- USE SPECIFIC, CONTEXTUAL search queries - NOT just single keywords. Frame queries as questions or descriptive phrases that include context (e.g., "byllm definition" NOT just "byllm", "enums definition" NOT just "enum", "nodes example").
128
-
- Include relevant context in search queries to retrieve comprehensive documentation (e.g., "syntax", "usage", "examples", "definition", "how to").
128
+
- Include relevant context in search queries to retrieve comprehensive documentation (e.g., "syntax", "examples", "definition", "how to").
129
129
- If information cannot be found, retry searches progressively using different phrasing, synonyms, related terminology(eg: enum -> enumerations), and key terms from previously retrieved docs.
130
-
- Interpret and apply the documentation rather than copying it verbatim; include comprehensive examples when they are necessary for clarity.
130
+
- VERY IMPORTANT: Interpret and apply the documentation rather than copying it verbatim; include comprehensive examples when they are necessary for clarity.
131
131
- Never re-run previous searches.
132
132
- ONlY run additional searches if any concept, syntax, command, or behavior is not explicitly confirmed/found in the retrieved documentation.
Evaluate how well this document directly answers the query.
246
241
Rank higher if it contains specific, relevant information that satisfies the query intent, such as clear explanations, correct syntax, concrete details, or code examples when appropriate.
247
242
Rank lower if it only mentions related concepts, is overly general, or does not meaningfully address the query.
248
243
Focus on semantic relevance and answer completeness rather than keyword overlap.""";
0 commit comments