Skip to main content

Class: GithubRepoLoader

document_loaders/web/github.GithubRepoLoader

Hierarchy​

Implements​

Constructors​

constructor​

β€’ new GithubRepoLoader(githubUrl, Β«destructuredΒ»?)

Parameters​

NameType
githubUrlstring
Β«destructuredΒ»GithubRepoLoaderParams

Overrides​

BaseDocumentLoader.constructor

Defined in​

langchain/src/document_loaders/web/github.ts:57

Properties​

accessToken​

β€’ Optional accessToken: string

Implementation of​

GithubRepoLoaderParams.accessToken

Defined in​

langchain/src/document_loaders/web/github.ts:55


branch​

β€’ branch: string

Implementation of​

GithubRepoLoaderParams.branch

Defined in​

langchain/src/document_loaders/web/github.ts:49


recursive​

β€’ recursive: boolean

Implementation of​

GithubRepoLoaderParams.recursive

Defined in​

langchain/src/document_loaders/web/github.ts:51


unknown​

β€’ unknown: UnknownHandling

Implementation of​

GithubRepoLoaderParams.unknown

Defined in​

langchain/src/document_loaders/web/github.ts:53

Methods​

load​

β–Έ load(): Promise<Document<Record<string, any>>[]>

Returns​

Promise<Document<Record<string, any>>[]>

Overrides​

BaseDocumentLoader.load

Defined in​

langchain/src/document_loaders/web/github.ts:101


loadAndSplit​

β–Έ loadAndSplit(splitter?): Promise<Document<Record<string, any>>[]>

Parameters​

NameType
splitterTextSplitter

Returns​

Promise<Document<Record<string, any>>[]>

Inherited from​

BaseDocumentLoader.loadAndSplit

Defined in​

langchain/src/document_loaders/base.ts:15