Skip to content

Conversation

@Linux0Hat
Copy link
Collaborator

This pull request introduces a new dynamic form-based configuration generator using the textual library. The changes include adding a dependency for textual and implementing a new Python script to create a multi-page form interface for generating configuration files.

Dependency Addition:

  • Added textual library (version ^3.5.0) as a new dependency in pyproject.toml to support the creation of terminal-based user interfaces.

New Feature Implementation:

  • Created a new script, gen_config_file.py, which defines a GenConfigApp class using the textual library. This class provides a multi-page dynamic form interface for generating configuration files in JSON format. Key features include:
    • A structured configuration form with sections for bot settings, embedding model settings, vector store settings, and additional parameters. The script can handle the configuration if she is changed.
    • Navigation buttons (Previous, Next, Write to JSON) to move between pages and save the configuration.
    • Dynamic widget generation based on the configuration schema, supporting text inputs, checkboxes, and integer fields.

@Linux0Hat Linux0Hat marked this pull request as ready for review June 25, 2025 16:19
@Benvii
Copy link
Member

Benvii commented Sep 25, 2025

I'm looking at it.

@zigzago zigzago requested a review from Benvii October 28, 2025 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants