Open cartergrobinson opened 7 months ago
I'm having the same issue, the error should came from here https://github.com/nilsherzig/LLocalSearch/blob/54bb8cdb6a96b5569d37a1b1b8e6fe46f42ddba1/backend/llm_tools/tool_websearch.go#L57
But I have also this in the logs, so it could be a searxng issue
frontend-1 | ➜ Network: http://172.21.0.5:4173/
searxng-1 | 2024-04-04 08:10:12,197 ERROR:searx.engines.soundcloud: Fail to initialize
searxng-1 | Traceback (most recent call last):
searxng-1 | File "/usr/local/searxng/searx/network/__init__.py", line 95, in request
searxng-1 | return future.result(timeout)
searxng-1 | ^^^^^^^^^^^^^^^^^^^^^^
searxng-1 | File "/usr/lib/python3.11/concurrent/futures/_base.py", line 458, in result
searxng-1 | raise TimeoutError()
searxng-1 | TimeoutError
searxng-1 |
searxng-1 | The above exception was the direct cause of the following exception:
searxng-1 |
searxng-1 | Traceback (most recent call last):
searxng-1 | File "/usr/local/searxng/searx/search/processors/abstract.py", line 73, in initialize
searxng-1 | self.engine.init(get_engine_from_settings(self.engine_name))
searxng-1 | File "/usr/local/searxng/searx/engines/soundcloud.py", line 69, in init
searxng-1 | guest_client_id = get_client_id()
searxng-1 | ^^^^^^^^^^^^^^^
searxng-1 | File "/usr/local/searxng/searx/engines/soundcloud.py", line 57, in get_client_id
Hi could you show me your searxng settings? You need to enable json responses.
This was in the default file (/data/compose/2/searxng/settings.yml
) from the container in the compose file.
# remove format to deny access, use lower case.
# formats: [html, csv, json, rss]
formats:
- html
Manually changed to:
# remove format to deny access, use lower case.
# formats: [html, csv, json, rss]
formats:
- html
- json
Restarted containers, and now it's good.
Ah yes, you've changed the searxng volume. This setting is the reason why i put my searxng folder in this github repo haha. I think it should be possible to change the searxng start comamnd to something, which will patch the default file and start searxng after that. This would allow us to remove the folder / requirement for a volume
Issue:
Error "Exiting chain with error: invalid character '<' looking for beginning of value"
Description:
I have installed LLocalSearch on Ubuntu 22.04 using Docker and have successfully connected it to my Ollama instance running on the same server (not in Docker). The Ollama service is configured to listen on all interfaces and responds to API requests from other systems on the LAN.
Ollama Installation:
It can successfully connect to my Ollama instance on the same server (not in Docker). I can tell it works because it successfully used the API to pull all-minilm:v2. Also, I changed the Ollama service to listen on all interfaces (ex.
Environment="OLLAMA_HOST=0.0.0.0:11434"
in/etc/systemd/system/ollama.service
. I verified that I get a response when I run this from another system on the LAN, which makes me think Ollama is fine:Error
However, when I use the LLocalSearch interface at http://localhost:3000, any preset or longer chat prompt I choose results in the following error:
The backend logs show:
Simple test queries that don't trigger a search seem to work fine. For example, if I write "test," I get the expected response:
Logs:
Docker-compose
Here is my docker-compose configuration. All I've changed is the IP for Ollama.
I have double-checked the configuration and connections between the components, and everything seems to be set up correctly.
Could you please help me identify the cause of this error and provide guidance on how to resolve it? Let me know if you need any additional information.
Thank you for your assistance!