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

Object Error: TypeError #47

Closed n0w33d closed 6 months ago

n0w33d commented 6 months ago

Error Description: Upon initially running local-rag, I get the following error:

Screenshot image

TypeError: Object is not an iterable and could not be converted to one. Object: False
Traceback:
File "/.venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script
    exec(code, module.__dict__)
File "/home/appuser/main.py", line 31, in <module>
    sidebar()
File "/home/appuser/components/sidebar.py", line 16, in sidebar
    settings()
File "/home/appuser/components/tabs/settings.py", line 23, in settings
    st.selectbox(
File "/.venv/lib/python3.10/site-packages/streamlit/runtime/metrics_util.py", line 397, in wrapped_func
    result = non_optional_func(*args, **kwargs)
File "/.venv/lib/python3.10/site-packages/streamlit/elements/widgets/selectbox.py", line 198, in selectbox
    return self._selectbox(
File "/.venv/lib/python3.10/site-packages/streamlit/elements/widgets/selectbox.py", line 237, in _selectbox
    opt = ensure_indexable(options)
File "/.venv/lib/python3.10/site-packages/streamlit/type_util.py", line 670, in ensure_indexable
    it = ensure_iterable(obj)
File "/.venv/lib/python3.10/site-packages/streamlit/type_util.py", line 661, in ensure_iterable
    raise TypeError(

Operating System Host operating system: Windows 11 Pro 23H2 Windows Subsystem for Linux operating system: Debian 12.5 Docker Desktop version: 4.28.0

Please let me know what further info you need from me to help me troubleshoot.

Steps to reproduce the behavior:

  1. In Windows 11 Pro, install WSL via Windows Store.
  2. Install Debian Linux via Windows Store.
  3. Install Docker Desktop.
  4. Open PowerShell and run '''wsl'''.
  5. In WSL (still within PowerShell) follow all local-rag installation pre-requirements as if it were a regular Debian OS.
  6. In WSL, run the docker-compose for local-rag.
  7. Launch browser and access local-rag and witness error.