Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Retrieval functionality for Components integration.
@deprecated( "This class will be removed in a future version. Use {} which is TypedDict." ) @dataclass class RetrievalConfig()
class RetrievalConfigDict(TypedDict)
def get_retrieval_config_dict( config: Union[RetrievalConfig, RetrievalConfigDict]) -> dict[str, Any]
config
class Retrieval(BaseContainer)
def __init__(config: Union[RetrievalConfig, RetrievalConfigDict], writer: LogWriter)
writer
def input(query: str)
query
@staticmethod def input_(writer: LogWriter, id: str, query: str)
id
def output(docs: Union[str, List[str]])
docs
def add_attachment(attachment: Union[FileAttachment, FileDataAttachment, UrlAttachment])
attachment
@staticmethod def add_attachment_(writer: LogWriter, id: str, attachment: Union[FileAttachment, FileDataAttachment, UrlAttachment])
@staticmethod def output_(writer: LogWriter, id: str, docs: Union[str, List[str]])
@staticmethod def end_(writer: LogWriter, id: str, data: Optional[Dict[str, Any]] = None)
data
@staticmethod def add_tag_(writer: LogWriter, id: str, key: str, value: str)
key
value
Was this page helpful?