Skip to content

[Gen AI tools V2] Configuration helpers #1903

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

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
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.

1 participant