|
2 | 2 | from session_state import ConfigState
|
3 | 3 | from ui_components import (
|
4 | 4 | render_llm_config,
|
5 |
| - render_embedder_config, |
6 |
| - render_document_store_config, |
| 5 | + render_embedder_config, |
7 | 6 | render_import_yaml,
|
8 | 7 | render_pipeline_config,
|
9 |
| - render_preview_and_generate, |
| 8 | + render_preview, |
10 | 9 | render_apikey,
|
11 |
| - render_finished_setting |
| 10 | + render_generate_button |
12 | 11 | )
|
13 | 12 | import streamlit as st
|
14 | 13 |
|
|
43 | 42 |
|
44 | 43 | with col1:
|
45 | 44 |
|
46 |
| - st.subheader("API_KEY Configuration") |
47 | 45 | # API key input section
|
| 46 | + st.subheader("API_KEY Configuration") |
48 | 47 | render_apikey()
|
49 | 48 |
|
50 |
| - st.subheader("LLM Configuration") |
51 | 49 | # Upload and parse YAML file into session state
|
| 50 | + st.subheader("LLM Configuration") |
52 | 51 | render_import_yaml()
|
53 | 52 |
|
54 | 53 | # LLM model configuration UI
|
55 | 54 | render_llm_config()
|
56 | 55 |
|
57 |
| - st.subheader("Embedder Configuration") |
58 | 56 | # Embedding model configuration UI
|
| 57 | + st.subheader("Embedder Configuration") |
59 | 58 | render_embedder_config()
|
60 | 59 |
|
61 |
| - st.subheader("Document Store Configuration") |
62 |
| - # Document store configuration UI |
63 |
| - render_document_store_config() |
64 |
| - |
65 |
| - st.subheader("Pipeline Configuration") |
66 | 60 | # Pipeline flow configuration UI
|
| 61 | + st.subheader("Pipeline Configuration") |
67 | 62 | render_pipeline_config()
|
68 | 63 |
|
| 64 | + # Generate config.yaml and save configuration button |
| 65 | + render_generate_button(engine_blocks, settings_block) |
| 66 | + |
69 | 67 | with col2:
|
70 | 68 | # Final preview and export of the combined configuration as YAML
|
71 |
| - render_preview_and_generate(engine_blocks, pipeline_block, settings_block) |
72 |
| - |
73 |
| - # Signal that configuration is complete and ready for CLI continuation |
74 |
| - render_finished_setting() |
| 69 | + render_preview(engine_blocks, settings_block) |
| 70 | + |
0 commit comments