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
fix(backend): resolve five backend bugs reported in #259
Each fix ships with a regression test (RED->GREEN):
- tools/process_pdf.py: return [] when a PDF raises PdfStreamError instead
of falling through to an UnboundLocalError on the undefined `documents`.
- vectorstores/faiss.py: honor the FAISS_DB_PATH environment variable in
get_db_path() (previously the configured value was ignored).
- agents/retriever_typing.py: add the missing `context_list` field to the
AgentState schema so LangGraph propagates retrieved context downstream.
- api/routers/helpers.py: derive the Gemini model from GOOGLE_GEMINI via a
small mapping (default gemini-2.0-flash) instead of hardcoding it.
- prompts/prompt_templates.py: fix the "avaiable" typo in
summarise_prompt_template ("Sorry, it's not available...").
ruff format/check and mypy (strict) pass.
Closes#259
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments