Spaces:
Running
Running
s change prompt
Browse files- src/main.py +2 -3
src/main.py
CHANGED
|
@@ -70,10 +70,9 @@ def get_llm_res(
|
|
| 70 |
- If the query asks about a general concept (e.g., "Time Series") not explicitly defined but related, apply your relevant general knowledge to relevant parts of the <context> to construct an answer.
|
| 71 |
- Do NOT fill in gaps with internal knowledge about specific library methods, parameters, or classes, as APIs may have changed.
|
| 72 |
3. **Conflict Resolution:** If internal knowledge conflicts with <context>, the <context> WINS.
|
| 73 |
-
4. **
|
| 74 |
-
5. **Code Examples:** Provide exact code examples in blocks if possible.
|
| 75 |
- Ensure code is complete and syntactically correct.
|
| 76 |
-
|
| 77 |
""").strip()
|
| 78 |
|
| 79 |
user_prompt = textwrap.dedent(f"""
|
|
|
|
| 70 |
- If the query asks about a general concept (e.g., "Time Series") not explicitly defined but related, apply your relevant general knowledge to relevant parts of the <context> to construct an answer.
|
| 71 |
- Do NOT fill in gaps with internal knowledge about specific library methods, parameters, or classes, as APIs may have changed.
|
| 72 |
3. **Conflict Resolution:** If internal knowledge conflicts with <context>, the <context> WINS.
|
| 73 |
+
4. **Code Examples:** Provide exact code examples in blocks if possible.
|
|
|
|
| 74 |
- Ensure code is complete and syntactically correct.
|
| 75 |
+
5. **Format:** Use Markdown (Headers, Bold, Code Blocks). ALWAYS specify the language in code blocks (e.g., ```python).
|
| 76 |
""").strip()
|
| 77 |
|
| 78 |
user_prompt = textwrap.dedent(f"""
|