llama-github  by JetXu-LLM

Python library for agentic RAG from GitHub projects

created 1 year ago
298 stars

Top 90.1% on sourcepulse

GitHubView on GitHub
Project Summary

Llama-github is a Python library designed to enable LLM Chatbots, AI Agents, and Auto-dev Solutions to perform Agentic Retrieval Augmented Generation (RAG) on public GitHub repositories. It retrieves relevant code snippets, issues, and repository information to generate context for coding questions, aiming to streamline AI-driven development.

How It Works

The library employs an LLM-powered question analysis to break down complex queries and generate effective search strategies. It then retrieves highly relevant information from GitHub using advanced techniques and caches repositories across threads to improve efficiency and reduce API token consumption. Finally, it generates comprehensive, contextually relevant answers by combining retrieved GitHub data with LLM reasoning. The architecture is built with asynchronous programming for concurrent request handling and offers flexible LLM integration.

Quick Start & Requirements

  • Install via pip: pip install llama-github
  • Requires GitHub Personal Access Token or GitHub App authentication.
  • Requires OpenAI API key (optional in simple mode).
  • Jina API key is optional but recommended for high concurrency production deployment.
  • See documentation for advanced usage: https://deepwiki.com/JetXu-LLM/llama-github

Highlighted Details

  • Intelligent GitHub retrieval for code snippets, issues, and repo info.
  • Repository pool caching for accelerated retrieval and reduced API token usage.
  • LLM-powered question analysis for optimized search strategies.
  • Asynchronous processing for concurrent request handling.
  • Flexible LLM and embedding model integration.

Maintenance & Community

Licensing & Compatibility

  • Licensed under the Apache 2.0 license.
  • Compatible with commercial use and closed-source linking.

Limitations & Caveats

In professional mode, context generation for a single query can take approximately one minute. The library relies on external API keys for OpenAI and optionally Jina.

Health Check
Last commit

6 days ago

Responsiveness

Inactive

Pull Requests (30d)
1
Issues (30d)
1
Star History
13 stars in the last 90 days

Explore Similar Projects

Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Anton Troynikov Anton Troynikov(Cofounder of Chroma), and
20 more.

llama_index by run-llama

0.3%
43k
Data framework for building LLM-powered agents
created 2 years ago
updated 1 day ago
Feedback? Help us improve.