Share via


ConnectorBase Class

Base class for search engine connectors.

Constructor

ConnectorBase()

Methods

search

Returns the search results of the query provided by pinging the search engine API.

Returns the search results of the query provided by pinging the search engine API.

abstract async search(query: str, num_results: int = 1, offset: int = 0) -> list[str]

Parameters

Name Description
query
Required
num_results
Default value: 1
offset
Default value: 0