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
535 stars 64 forks source link

Fixes application crash when models not found #58

Closed cybertechy closed 5 months ago

cybertechy commented 5 months 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 5 months ago

Thanks for this fix, @cybertechy!