JinaSearchAPIWrapper#

class langchain_community.utilities.jina_search.JinaSearchAPIWrapper[source]#

Bases: BaseModel

Wrapper around the Jina search engine.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

param base_url: str = 'https://s.jina.ai/'#

The base URL for the Jina search engine.

download_documents(query: str) List[Document][source]#

Query the Jina search engine and return the results as a list of Documents.

Parameters:

query (str) – The query to search for.

Return type:

List[Document]

Returns: The results as a list of Documents.

run(query: str) str[source]#

Query the Jina search engine and return the results as a JSON string.

Parameters:

query (str) – The query to search for.

Return type:

str

Returns: The results as a JSON string.