Skip to main content

llama-index readers gpt_repo integration

Project description

GPT Repository Loader

pip install llama-index-readers-gpt-repo

This loader is an adaptation of https://github.com/mpoon/gpt-repository-loader to LlamaIndex. 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.readers.gpt_repo import 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_readers_gpt_repo-0.1.4.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page