file
Base classes for retrieval.
Classes:
-
FilePathRet
–File Retrieval class.
-
PDFPathRet
–PDFPathRet Retrieval class.
FilePathRet
FilePathRet(
source: Any,
splitter: TextSplitterBase = LangChainTextSplitter(
'RecursiveCharacterTextSplitter'
),
api_key: str = '',
cache: Optional[Cache] = None,
logs: dict[str, Any] = DEFAULT_LOGS,
)
Bases: RetrievalBase
File Retrieval class.
Methods:
-
get
–Get the data from the source.
Source code in src/rago/retrieval/base.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
|
PDFPathRet
PDFPathRet(
source: Any,
splitter: TextSplitterBase = LangChainTextSplitter(
'RecursiveCharacterTextSplitter'
),
api_key: str = '',
cache: Optional[Cache] = None,
logs: dict[str, Any] = DEFAULT_LOGS,
)
Bases: FilePathRet
PDFPathRet Retrieval class.
Methods:
-
get
–Get the data from the source.
Source code in src/rago/retrieval/base.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
|
get
Get the data from the source.
Source code in src/rago/retrieval/file.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|