Learn how to use in-memory PDF bytes in your knowledge base.
Parameter | Type | Default | Description |
---|---|---|---|
pdfs | Union[List[bytes], List[IO]] | - | List of PDF content as bytes or IO streams. |
exclude_files | List[str] | [] | List of file patterns to exclude (inherited from base class). |
reader | Union[PDFReader, PDFImageReader] | PDFReader() | A PDFReader or PDFImageReader that converts the PDFs into Documents for the vector database. |
PDFBytesKnowledgeBase
is a subclass of the AgentKnowledge class and has access to the same params.