chatflock.web_research.search

Module Contents

class chatflock.web_research.search.OrganicSearchResult

Bases: pydantic.BaseModel

position: int
title: str
class chatflock.web_research.search.SearchResults

Bases: pydantic.BaseModel

answer_snippet: str | None
knowledge_graph_description: str | None
organic_results: List[OrganicSearchResult]
class chatflock.web_research.search.SearchResultsProvider

Bases: abc.ABC

Helper class that provides a standard way to create an ABC using inheritance.

abstract search(query, n_results=3)
Parameters:
Return type:

SearchResults

class chatflock.web_research.search.GoogleSerperSearchResultsProvider(api_key=None)

Bases: SearchResultsProvider

Helper class that provides a standard way to create an ABC using inheritance.

Parameters:

api_key (Optional[str])

api_key
search(query, n_results=3)
Parameters:
Return type:

SearchResults