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:
- A directory with the template name
- A
template_config.pyfile with template metadata and questions - Template files, with
.j2extension for files that should be processed as Jinja2 templates
Available variables in templates:
project_name: Name of the projectpkg_name: Name of the python packageragbits_version: Latest version of ragbits- Custom variables from template questions
Template structure
To create a new template, add a directory under templates/ with:
- Template files (ending in
.j2) - these will be rendered using Jinja2 - A
template_config.pyfile 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 typing import List
from create_ragbits_app.template_config_base import (
TemplateConfig,
TextQuestion,
ListQuestion,
ConfirmQuestion
)
class ExampleTemplateConfig(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 = ExampleTemplateConfig()
Metadata
Release files for create-ragbits-app 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| create_ragbits_app-0.1.1.tar.gz | 36.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| create_ragbits_app-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 99.6 kB
Release files / create_ragbits_app-0.1.1.tar.gz
| Download URL | create_ragbits_app-0.1.1.tar.gz |
|---|---|
| Size | 36.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f784f99fadb58f7ad4bb06dfc9c97c4d358ff254dfe6dbfa7dc56701472c58ec
|
|
BLAKE2b-256 checksum How to use checksums |
cbbdbce41b40b3badc8e9fdce9ffbf47bb4745e91b1d5c5d0a7a2d3febf25ae7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.10
|
Release files / create_ragbits_app-0.1.1-py3-none-any.whl
| Download URL | create_ragbits_app-0.1.1-py3-none-any.whl |
|---|---|
| Size | 63.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61d866273bd2cc272f553f5dbf2d75b958cf44a46696c384e5c45570257e622c
|
|
BLAKE2b-256 checksum How to use checksums |
d6a050e5f19d3d41940674115880199e0967209a3d003d435b74d6ddcea39a83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.10
|