Skip to main content

Set up a modern LLM app by running one command

Project description

create-ragbits-app

A CLI tool to create new ragbits applications from templates.

Usage

# Create a new ragbits application
uvx create-ragbits-app

Available Templates

  • rag: Basic RAG (Retrieval Augmented Generation) application

Creating Custom Templates

Templates are stored in the templates/ directory. Each template consists of:

  1. A directory with the template name
  2. A template_config.py file with template metadata and questions
  3. Template files, with .j2 extension for files that should be processed as Jinja2 templates

Available variables in templates:

  • project_name: Name of the project
  • pkg_name: Name of the python package
  • ragbits_version: Latest version of ragbits
  • Custom variables from template questions

Template structure

To create a new template, add a directory under templates/ with:

  1. Template files (ending in .j2) - these will be rendered using Jinja2
  2. A template_config.py file with template metadata and questions

For example, see the templates/example-template directory.

Template Configuration

The template_config.py file should define a TemplateConfig class that inherits from TemplateConfig and creates a config instance at the bottom of the file:

from create_ragbits_app.template_config_base import (
    BaseTemplateConfig,
    TextQuestion,
    ListQuestion,
    ConfirmQuestion
)

class TemplateConfig(TemplateConfig):
    name: str = "My Template Name"
    description: str = "Description of the template"

    questions: List = [
        TextQuestion(
            name="variable_name",
            message="Question to display to user",
            default="Default value"
        ),
        # More questions...
    ]

# Create instance of the config to be imported
config = TemplateConfig()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

create_ragbits_app-0.0.11.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

create_ragbits_app-0.0.11-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file create_ragbits_app-0.0.11.tar.gz.

File metadata

  • Download URL: create_ragbits_app-0.0.11.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for create_ragbits_app-0.0.11.tar.gz
Algorithm Hash digest
SHA256 a78b6c92485d3b79dfb1c0bd9bf7c8fc8f03602f608b872e56a58e51dc7fb621
MD5 53ac93fd6dfb7813baf49384f389e07e
BLAKE2b-256 97ee93ccbd20d12692755a8e75bbd7b11408a286c213a56e0f65c7923a6f1e0d

See more details on using hashes here.

File details

Details for the file create_ragbits_app-0.0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for create_ragbits_app-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 c642ffd423ddc4b9e3c422298b3680ca44ab714abd2fb95ee75382e234095e9d
MD5 2267c3fa47d0ee664a4281e61b7d2dfc
BLAKE2b-256 97d06819f9146514d069c579254dd94d64636a1bb4ecccf6e9ede793fa4a89f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page