Wrapper for Searx API.
To use you need to provide the searx host by passing the named parameter
searx_host or exporting the environment variable SEARX_HOST.
In some situations you might want to disable SSL verification, for example
if you are running searx locally. You can do this by passing the named parameter
unsecure. You can also pass the host url scheme as http to disable SSL.
SearxSearchWrapper()Example:
.. code-block:: python
from langchain_community.utilities import SearxSearchWrapper searx = SearxSearchWrapper(searx_host="http://localhost:8888")
Example with SSL disabled:
.. code-block:: python
from langchain_community.utilities import SearxSearchWrapper
searx = SearxSearchWrapper(searx_host="http://localhost:8888", unsecure=True)
Validate that custom searx params are merged with default ones.
Run query through Searx API and parse results.
You can pass any other params to the searx query API.
Asynchronously version of run.
Run query through Searx API and returns the results with metadata.
Asynchronously query with json results.
Uses aiohttp. See results for more info.