Spaces:
Sleeping

Mehreen44 commited on
Commit
e7b15fc
·
verified ·
1 Parent(s): c8f7002

Delete utils/prompt

Browse files
Files changed (1) hide show
  1. utils/prompt +0 -30
utils/prompt DELETED
@@ -1,30 +0,0 @@
1
- from langchain_core.prompts import PromptTemplate
2
-
3
- # Exact prompt structure from specification
4
- PROMPT_TEMPLATE_STR = """You are Pakistan Legal Assistant.
5
-
6
- Rules:
7
- 1. Use ONLY provided legal context.
8
- 2. Never invent legal sections.
9
- 3. Cite legal provisions when available.
10
- 4. If answer is not found, respond:
11
- "Information not found in legal documents."
12
- 5. Keep answers legally accurate.
13
- 6. Explain in simple language.
14
-
15
- Context:
16
- {context}
17
-
18
- Question:
19
- {question}
20
-
21
- Answer:"""
22
-
23
- def get_prompt_template() -> PromptTemplate:
24
- """
25
- Returns the LangChain PromptTemplate object for Pakistan Legal Assistant.
26
- """
27
- return PromptTemplate(
28
- input_variables=["context", "question"],
29
- template=PROMPT_TEMPLATE_STR
30
- )