mirror of
https://github.com/run-llama/llama-hub.git
synced 2025-08-13 03:01:46 +00:00
GPT Repository Loader
This loader is an adaptation of https://github.com/mpoon/gpt-repository-loader to LlamaHub. Full credit goes to mpoon for coming up with this!
Usage
To use this loader, you need to pass in a path to a local Git repository
from llama_index import download_loader
GPTRepoReader = download_loader("GPTRepoReader")
loader = GPTRepoReader()
documents = loader.load_data(repo_path="/path/to/git/repo", preamble_str="<text to put at beginning of Document>")
This loader is designed to be used as a way to load data into LlamaIndex and/or subsequently used as a Tool in a LangChain Agent. See here for examples.