Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Raggit is a full-stack Retrieval-Augmented Generation (RAG) application designed to help developers understand and explore new codebases through chat. It pre-generates and stores code embeddings for a repository, making it easy to query the code. When a user asks a question, Raggit retrieves the most relevant code snippets and feeds them as context

RanjanaRaghavan/RAGGit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RAG-Code-Repository-Assistant

This is a full-stack Retrieval Augmented Generation (RAG) App that helps browse and query new code-bases via chat. We generate and store embeddings for a given repository in advance, and then when a user asks a question, we retrieve relevant code snippets and provide them to the LLM as context.

image

Setup

  1. Clone this repository:

    git clone https://github.com/iPrSri/RAG-Code-Repository-Assistant
    cd RAG-Code-Repository-Assistant
    
  2. Create a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
    
  3. Install the required packages:

    pip install -r requirements.txt
    
  4. Run the script:

    streamlit run app.py
    
  5. When prompted, enter your OpenAI API key and GitHub token.

Usage

After indexing, you can ask questions about a given repository. Type 'quit' to move to the next repository or exit the program.

About

Raggit is a full-stack Retrieval-Augmented Generation (RAG) application designed to help developers understand and explore new codebases through chat. It pre-generates and stores code embeddings for a repository, making it easy to query the code. When a user asks a question, Raggit retrieves the most relevant code snippets and feeds them as context

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages