raghavNCI
commited on
Commit
·
9ff5d3a
1
Parent(s):
2f3b9d0
changes v12
Browse files- question.py +4 -2
question.py
CHANGED
@@ -50,9 +50,11 @@ async def ask_question(input: QuestionInput):
|
|
50 |
|
51 |
# --- 1. Ask Mistral to extract keywords ---
|
52 |
keyword_prompt = (
|
53 |
-
f"
|
54 |
-
f"Return only comma-separated
|
|
|
55 |
)
|
|
|
56 |
raw_keywords = mistral_generate(keyword_prompt, max_new_tokens=32)
|
57 |
|
58 |
print("Raw extracted keywords:", raw_keywords)
|
|
|
50 |
|
51 |
# --- 1. Ask Mistral to extract keywords ---
|
52 |
keyword_prompt = (
|
53 |
+
f"Extract the 3–6 most important keywords from the following question. "
|
54 |
+
f"Return only the keywords, comma-separated (no explanations):\n\n"
|
55 |
+
f"{question}"
|
56 |
)
|
57 |
+
|
58 |
raw_keywords = mistral_generate(keyword_prompt, max_new_tokens=32)
|
59 |
|
60 |
print("Raw extracted keywords:", raw_keywords)
|