Llama-github logo

Llama-github

Free

Llama-github is a python library which built with Langchain framework that helps you retrieve the most relevant code snippets, issues, and repository information from GitHub ![GitHub Repo stars](https://img.shields.io/github/stars/JetXu-LLM/llama-github?style=social)

FreeFree tier
Type
Open Source
Company
JetXu-LLM

About Llama-github

Llama-github is an open-source Python library built with the Langchain framework that enables LLM Chatbots, AI Agents, and Auto-dev Solutions to perform Agentic RAG (Retrieval-Augmented Generation) from actively selected GitHub public projects. It retrieves the most relevant code snippets, issues, and repository information based on user queries, transforming them into valuable knowledge context. The library supports Python 3.10 through 3.14, offers a simple mode for quick retrieval, and integrates with external APIs such as OpenAI and Jina for enhanced concurrency. Installation is straightforward via pip, and usage involves initializing a GithubRAG object with access tokens and calling retrieve_context().

Key Features

Agentic RAG from actively selected GitHub public projects
Retrieves code snippets, issues, and repository information
Built on the Langchain framework
Simple mode for lightweight retrieval without full ML stack
Supports Python versions 3.10 through 3.14
Integration with OpenAI and Jina APIs for high concurrency
Returns context dictionaries with URL and relevant content

Pros & Cons

Pros
  • Open source with permissive license
  • Easy installation via pip
  • Supports multiple Python versions (3.10-3.14)
  • Provides both high-level API and retrieval-only integration
  • Optional Jina API for scalable production deployment
  • Returns structured context with URLs for verification
Cons
  • Requires GitHub access token for API calls
  • Depends on external APIs (OpenAI, Jina) for full functionality
  • May be overkill for simple code snippet lookups
  • Documentation limited to README; no dedicated website

Best For

Powering LLM chatbots with real-world code examplesBuilding AI agents that solve coding tasks autonomouslyAuto-dev solutions that need context from GitHubAnswering coding questions by retrieving relevant GitHub resourcesEnhancing RAG pipelines with up-to-date code and issues

FAQ

What is llama-github?
Llama-github is an open-source Python library that empowers LLM Chatbots, AI Agents, and Auto-dev Solutions to conduct Agentic RAG from actively selected GitHub public projects.
How do I install llama-github?
Install via pip: pip install llama-github
What Python versions are supported?
Python 3.10 through 3.14 are supported as of version 0.4.5.
What are the prerequisites for using llama-github?
You need a GitHub access token, and optionally an OpenAI API key and a Jina API key for high concurrency.
How do I retrieve context using llama-github?
Initialize GithubRAG with your credentials and call retrieve_context(query). It returns a list of dictionaries with 'url' and 'context' keys.