Class GitHubSource
java.lang.Object
dev.langchain4j.data.document.source.github.GitHubSource
- All Implemented Interfaces:
DocumentSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvides anInputStreamto read the content of the document.metadata()Returns the metadata associated with the source of the document.
-
Constructor Details
-
GitHubSource
- Throws:
IOException
-
-
Method Details
-
inputStream
Description copied from interface:DocumentSourceProvides anInputStreamto read the content of the document. This method can be implemented to read from various sources like a local file or a network connection.- Specified by:
inputStreamin interfaceDocumentSource- Returns:
- An InputStream from which the document content can be read.
-
metadata
Description copied from interface:DocumentSourceReturns the metadata associated with the source of the document. This could include details such as the source location, date of creation, owner, etc.- Specified by:
metadatain interfaceDocumentSource- Returns:
- A
Metadataobject containing information about the document source, such asDocument.FILE_NAMEandDocument.ABSOLUTE_DIRECTORY_PATH.
-