Spaces:
Running
Running
github-actions[bot] commited on
Commit ·
c7ce552
1
Parent(s): a7bea68
Deploy 0d2e297 from GitHub
Browse files- backend/pipeline/models.py +1 -1
- backend/settings.py +3 -2
backend/pipeline/models.py
CHANGED
|
@@ -7,7 +7,7 @@ The three AI models the pipeline uses, in one place (all through LlamaIndex):
|
|
| 7 |
well the passage answers it, from 0 to 1. Runs on our server, free.
|
| 8 |
- Language model: writes answers, flashcards, quizzes and summaries. Sarvam AI by default; any
|
| 9 |
service with an OpenAI-style chat API can be used instead (LLM_PROVIDER=openai_like), e.g.
|
| 10 |
-
|
| 11 |
|
| 12 |
To try another model, change the setting (see settings.py) and run the answer-quality test before
|
| 13 |
and after (scripts/answer_quality.py).
|
|
|
|
| 7 |
well the passage answers it, from 0 to 1. Runs on our server, free.
|
| 8 |
- Language model: writes answers, flashcards, quizzes and summaries. Sarvam AI by default; any
|
| 9 |
service with an OpenAI-style chat API can be used instead (LLM_PROVIDER=openai_like), e.g.
|
| 10 |
+
Gemini (what the live Space uses), NVIDIA, DeepInfra or OpenRouter.
|
| 11 |
|
| 12 |
To try another model, change the setting (see settings.py) and run the answer-quality test before
|
| 13 |
and after (scripts/answer_quality.py).
|
backend/settings.py
CHANGED
|
@@ -72,7 +72,8 @@ LLM_API_KEY = (os.getenv("LLM_API_KEY") or "").strip()
|
|
| 72 |
LLM_MODEL = (os.getenv("LLM_MODEL") or "").strip()
|
| 73 |
# With openai_like: extra request fields that switch the model's thinking off. Quick jobs (rewriting
|
| 74 |
# follow-up questions, flashcards, quizzes, summaries) always run without thinking. The default suits
|
| 75 |
-
# DeepSeek and Qwen on NVIDIA, DeepInfra and Together;
|
|
|
|
| 76 |
LLM_THINKING_OFF = _env_json("LLM_THINKING_OFF", {"chat_template_kwargs": {"thinking": False}})
|
| 77 |
# Whether the model thinks before answering questions: first words come later, hard questions can
|
| 78 |
# get better answers. Off = answers start straight away.
|
|
@@ -176,7 +177,7 @@ MIN_SCORE_LIBRARY_SUBJECT = 0.15 # the other PDFs of that course
|
|
| 176 |
# ---------- Running a pilot ----------
|
| 177 |
APP_TIMEZONE = _env_str("APP_TIMEZONE", "Asia/Kolkata") # "today", streaks and reminder times use this
|
| 178 |
STARTER_NOTES = _env_bool("STARTER_NOTES", True) # new accounts get a "Getting started" folder
|
| 179 |
-
PRIVACY_VERSION = "2026-10-
|
| 180 |
ADMIN_EMAILS = {e.strip().lower() for e in (os.getenv("ADMIN_EMAILS") or "").split(",") if e.strip()}
|
| 181 |
ALERT_WEBHOOK_URL = (os.getenv("ALERT_WEBHOOK_URL") or "").strip() # Slack/Discord-style webhook for errors
|
| 182 |
|
|
|
|
| 72 |
LLM_MODEL = (os.getenv("LLM_MODEL") or "").strip()
|
| 73 |
# With openai_like: extra request fields that switch the model's thinking off. Quick jobs (rewriting
|
| 74 |
# follow-up questions, flashcards, quizzes, summaries) always run without thinking. The default suits
|
| 75 |
+
# DeepSeek and Qwen on NVIDIA, DeepInfra and Together; Gemini and gpt-oss use {"reasoning_effort": "low"};
|
| 76 |
+
# OpenRouter uses {"reasoning": {"enabled": false}}.
|
| 77 |
LLM_THINKING_OFF = _env_json("LLM_THINKING_OFF", {"chat_template_kwargs": {"thinking": False}})
|
| 78 |
# Whether the model thinks before answering questions: first words come later, hard questions can
|
| 79 |
# get better answers. Off = answers start straight away.
|
|
|
|
| 177 |
# ---------- Running a pilot ----------
|
| 178 |
APP_TIMEZONE = _env_str("APP_TIMEZONE", "Asia/Kolkata") # "today", streaks and reminder times use this
|
| 179 |
STARTER_NOTES = _env_bool("STARTER_NOTES", True) # new accounts get a "Getting started" folder
|
| 180 |
+
PRIVACY_VERSION = "2026-10-15" # bump when the privacy note changes
|
| 181 |
ADMIN_EMAILS = {e.strip().lower() for e in (os.getenv("ADMIN_EMAILS") or "").split(",") if e.strip()}
|
| 182 |
ALERT_WEBHOOK_URL = (os.getenv("ALERT_WEBHOOK_URL") or "").strip() # Slack/Discord-style webhook for errors
|
| 183 |
|