Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A web app that uses Retrieval-Augmented Generation (RAG) to create an AI expert over a codebase. The app allows users to interact with a codebase via chat, retrieving relevant code snippets from a Pinecone vector database and generating responses using LLMs.

Notifications You must be signed in to change notification settings

rahatmoktadir03/codebase-rag-sage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

36 Commits

Repository files navigation

Codebase RAG Sage 🌲✨

Streamlit Pinecone LLM License: MIT


What Is Codebase RAG Sage?

Codebase RAG Sage is your AI-powered assistant for exploring and understanding codebases. It merges Retrieval-Augmented Generation (RAG) with Streamlit, Pinecone, and Groq’s LLaMA models to deliver contextual, code-aware answers to your queries.

Key Features

  • Conversational Code Exploration – Ask anything about your codebase in natural language and get informed responses grounded in actual source files.
  • Semantic Search – Powered by embeddings (via HuggingFaceEmbeddings), for smarter, context-aware retrieval.
  • Namespace-Based Code Indexing – Handle multiple repositories, each with a distinct namespace in Pinecone.
  • Streamlit Web Interface – Elegant and intuitive UI for all your codebase queries.

Demo Snapshot

App Demo Screenshot

(Here you can show how the app looks—like the input field, cloned repo display, and Q&A section.)


Quick Getting Started

1. Clone the Repo

git clone https://github.com/rahatmoktadir03/codebase-rag-sage.git
cd codebase-rag-sage

2. Create & Activate Virtual Environment

python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate

3. Install Dependencies

pip install -r requirements.txt

4. Setup Environment Variables

  • Create a .env file or export these:
    export PINECONE_API_KEY=your_pinecone_api_key
    export GROQ_API_KEY=your_groq_api_key

5. Create Pinecone Index (if needed)

import pinecone
pinecone.init(api_key="YOUR_KEY")
pinecone.create_index("codebase-rag", dimension=768)

About

A web app that uses Retrieval-Augmented Generation (RAG) to create an AI expert over a codebase. The app allows users to interact with a codebase via chat, retrieving relevant code snippets from a Pinecone vector database and generating responses using LLMs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /