RetrievalToolkit
init
information_retrieval
- query (str): The question or query for which an answer is required.
- contents (Union[str, List[str]]): Local file paths, remote URLs or string contents.
- top_k (int, optional): The number of top results to return during retrieve. Must be a positive integer. Defaults to 1.
- similarity_threshold (float, optional): The similarity threshold for filtering results. Defaults to 0.7.