jonfairbanks / local-rag

Ingest files for retrieval augmented generation (RAG) with open-source Large Language Models (LLMs), all without 3rd parties or sensitive data leaving your network.
GNU General Public License v3.0
449 stars 52 forks source link

Fixes application crash when models not found #58

Closed cybertechy closed 1 month ago

cybertechy commented 1 month ago

Issue: The interpreter used to throw error when ollama models where not found, this caused ollama_models state to be false causing the select box to crash in settings (Since not an Iterable).

Changes: return type of get_models() in catch statement gives an empty list. Also disables the select box when there no models and changes place holder to no models available.

jonfairbanks commented 1 month ago

Thanks for this fix, @cybertechy!