Skip to content

AmnaMubarak/Codebase-Query-Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAG Code Assistant

A FastAPI-based application that provides code assistance using Retrieval-Augmented Generation (RAG) technology.

Features

  • Web-based code assistant interface
  • FastAPI backend with API documentation
  • RAG-powered code suggestions and assistance

Prerequisites

  • Python 3.8+
  • pip (Python package manager)

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/code-assistant.git
    cd code-assistant
  2. Set up a virtual environment:

    python -m venv venv
  3. Activate the virtual environment:

    • Windows:
      venv\Scripts\activate
    • macOS/Linux:
      source venv/bin/activate
  4. Install dependencies:

    pip install -r requirements.txt
  5. Create a .env file in the root directory (optional):

    # Example environment variables
    PORT=8000
    HOST=0.0.0.0
    WORKERS=1
    

Usage

Run the application:

python run.py

The server will start at http://localhost:8000

Project Structure

code-assistant/
├── app/                  # Application directory
│   ├── api/              # API routes
│   ├── frontend/         # Frontend application
│   ├── schemas/          # Pydantic models
│   ├── services/         # Business logic
│   ├── tasks/            # Background tasks
│   └── main.py           # FastAPI application initialization
├── venv/                 # Virtual environment
├── .env                  # Environment variables (create this)
├── .gitignore            # Git ignore file
├── README.md             # This file
├── requirements.txt      # Python dependencies
└── run.py                # Application entry point

License

[Your License Here]

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

About

An Application that provides code assistance using Retrieval-Augmented Generation (RAG) technology for intelligent codebase querying.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages