Class OracleDocumentLoader
java.lang.Object
dev.langchain4j.data.document.loader.oracle.OracleDocumentLoader
Load documents
Load documents either from the file system or the database. The documents
can be in any format supported by the Oracle Text filter including
Word, PDF, HTML, and text files.
Use the following preferences
To specify a file:
{"file": "filename"}
To specify a directory:
{"dir": "directory name"}
To specify a table:
{"owner": "owner", "tablename": "table name", "colname": "column name"}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<dev.langchain4j.data.document.Document> loadDocuments(String pref) load documents
-
Constructor Details
-
OracleDocumentLoader
create a document loader
-
-
Method Details
-
loadDocuments
public List<dev.langchain4j.data.document.Document> loadDocuments(String pref) throws IOException, SQLException load documents- Parameters:
pref- JSON Preference specifying the file, directory, or table- Throws:
IOExceptionSQLException
-