Application¶
app ¶
Assembly: Wario
Filename: app.py
Author: Terry D. Eppler
Created: 01-31-2026
Last Modified By: Terry D. Eppler
Last Modified On: 01-20-2026
app.py
Copyright © 2026 Terry Eppler
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
You can contact me at: terryeppler@gmail.com
load_embedder ¶
Load embedder.
Purpose
Retrieves load embedder for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Returns:
| Name | Type | Description |
|---|---|---|
SentenceTransformer |
SentenceTransformer
|
Normalized result produced for the active application workflow. |
Source code in app.py
resolve_gemini_api_key ¶
Resolve gemini api key.
Purpose
Supports the resolve gemini api key application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: Text value produced for the active application workflow. |
Source code in app.py
extract_response_text ¶
Extract response text.
Purpose
Transforms extract response text inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
response
|
object
|
Response value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
convert_xml ¶
Convert xml.
Purpose
Transforms convert xml inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
convert_markdown ¶
Convert markdown.
Purpose
Transforms convert markdown inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
Any
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 | |
encode_image_base64 ¶
Encode image base64.
Purpose
Supports the encode image base64 application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
File, upload, or path value used by the document or storage workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
normalize_text ¶
Normalize text.
Purpose
Transforms normalize text inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
chunk_text ¶
Chunk text.
Purpose
Supports the chunk text application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
max_tokens
|
int
|
Numeric control value that constrains the operation. |
400
|
Returns:
| Type | Description |
|---|---|
list[str]
|
list[str]: List of normalized values used by the application workflow. |
Source code in app.py
cosine_sim ¶
Cosine sim.
Purpose
Supports the cosine sim application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
a
|
ndarray
|
A value used by the application workflow. |
required |
b
|
ndarray
|
B value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
float |
float
|
Normalized result produced for the active application workflow. |
Source code in app.py
sanitize_markdown ¶
Sanitize markdown.
Purpose
Transforms sanitize markdown inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
inject_response_css ¶
Inject response css.
Purpose
Renders inject response css in the Streamlit interface while preserving the active session state and provider workflow context.
Source code in app.py
style_subheaders ¶
Style subheaders.
Purpose
Renders style subheaders in the Streamlit interface while preserving the active session state and provider workflow context.
Source code in app.py
init_state ¶
Init state.
Purpose
Maintains application runtime state for init state by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
reset_state ¶
Reset state.
Purpose
Maintains application runtime state for reset state by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
normalize ¶
Normalize.
Purpose
Supports the normalize application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obj
|
Any
|
Object or nested value to normalize for safe display, serialization, or provider handling. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Source code in app.py
extract_sources ¶
Extract sources.
Purpose
Transforms extract sources inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
response
|
Any
|
Response value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of normalized values used by the application workflow. |
Source code in app.py
1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 | |
save_temp ¶
Save temp.
Purpose
Applies the save temp operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
upload
|
Any
|
Streamlit uploaded-file object to persist to a temporary path. |
required |
Returns:
| Type | Description |
|---|---|
str | None
|
str | None: Text value produced for the active application workflow. |
Source code in app.py
update_token_counters ¶
Update token counters.
Purpose
Applies the update token counters operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resp
|
Any
|
Resp value used by the application workflow. |
required |
Source code in app.py
build_intent_prefix ¶
Build intent prefix.
Purpose
Builds build intent prefix from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mode
|
str
|
Mode value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
save_message ¶
Save message.
Purpose
Applies the save message operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
role
|
str
|
Role value used by the application workflow. |
required |
content
|
str
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
Source code in app.py
load_history ¶
Load history.
Purpose
Retrieves load history for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Returns:
| Type | Description |
|---|---|
List[Tuple[str, str]]
|
List[Tuple[str, str]]: List of normalized values used by the application workflow. |
Source code in app.py
clear_history ¶
Clear history.
Purpose
Maintains application runtime state for clear history by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
format_results ¶
Format results.
Purpose
Supports the format results application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
results
|
Any
|
Provider result collection containing a data sequence with name attributes. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
HTML list markup containing formatted result names. |
Source code in app.py
count_tokens ¶
Count tokens.
Purpose
Transforms count tokens inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Normalized result produced for the active application workflow. |
Source code in app.py
fetch_prompt_names ¶
Fetch prompt names.
Purpose
Retrieves fetch prompt names for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
db_path
|
str
|
File, upload, or path value used by the document or storage workflow. |
required |
Returns:
| Type | Description |
|---|---|
list[str]
|
list[str]: List of normalized values used by the application workflow. |
Source code in app.py
fetch_prompt_text ¶
Fetch prompt text.
Purpose
Retrieves fetch prompt text for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
db_path
|
str
|
File, upload, or path value used by the document or storage workflow. |
required |
name
|
str
|
Name value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
str | None
|
str | None: Text value produced for the active application workflow. |
Source code in app.py
fetch_prompts_df ¶
Fetch prompts df.
Purpose
Retrieves fetch prompts df for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Returns:
| Type | Description |
|---|---|
DataFrame
|
pd.DataFrame: DataFrame produced for application display, profiling, retrieval, or export. |
Source code in app.py
fetch_prompt_by_id ¶
Fetch prompt by id.
Purpose
Retrieves fetch prompt by id for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pid
|
int
|
Pid value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any] | None
|
Dict[str, Any] | None: Dictionary containing normalized workflow configuration or results. |
Source code in app.py
fetch_prompt_by_name ¶
Fetch prompt by name.
Purpose
Retrieves fetch prompt by name for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Name value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any] | None
|
Dict[str, Any] | None: Dictionary containing normalized workflow configuration or results. |
Source code in app.py
insert_prompt ¶
Insert prompt.
Purpose
Applies the insert prompt operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
Dict[str, Any]
|
Data value used by the application workflow. |
required |
Source code in app.py
update_prompt ¶
Update prompt.
Purpose
Applies the update prompt operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pid
|
int
|
Pid value used by the application workflow. |
required |
data
|
Dict[str, Any]
|
Data value used by the application workflow. |
required |
Source code in app.py
delete_prompt ¶
Delete prompt.
Purpose
Applies the delete prompt operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pid
|
int
|
Pid value used by the application workflow. |
required |
Source code in app.py
build_prompt ¶
Build prompt.
Purpose
Builds build prompt from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
user_input
|
str
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
initialize_database ¶
Initialize database.
Purpose
Maintains application runtime state for initialize database by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 | |
create_connection ¶
Create connection.
Purpose
Builds create connection from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Returns:
| Type | Description |
|---|---|
Connection
|
sqlite3.Connection: SQLite connection used by the local data-management workflow. |
Source code in app.py
list_tables ¶
List tables.
Purpose
Retrieves list tables for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
create_schema ¶
Create schema.
Purpose
Builds create schema from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table
|
str
|
SQLite table name used by the data-management workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[Tuple]
|
List[Tuple]: List of normalized values used by the application workflow. |
Source code in app.py
read_table ¶
Read table.
Purpose
Retrieves read table for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table
|
str
|
SQLite table name used by the data-management workflow. |
required |
limit
|
int
|
Numeric control value that constrains the operation. |
None
|
offset
|
int
|
Numeric control value that constrains the operation. |
0
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
pd.DataFrame: DataFrame produced for application display, profiling, retrieval, or export. |
Source code in app.py
drop_table ¶
Drop table.
Purpose
Applies the drop table operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table
|
str
|
SQLite table name used by the data-management workflow. |
required |
Source code in app.py
create_index ¶
Create index.
Purpose
Builds create index from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table
|
str
|
SQLite table name used by the data-management workflow. |
required |
column
|
str
|
Column name used for filtering, schema, indexing, or profiling operations. |
required |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
apply_filters ¶
Apply filters.
Purpose
Supports the apply filters application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
DataFrame supplied to the application data-management or display workflow. |
required |
Returns:
| Type | Description |
|---|---|
DataFrame
|
pd.DataFrame: DataFrame produced for application display, profiling, retrieval, or export. |
Source code in app.py
create_aggregation ¶
Create aggregation.
Purpose
Builds create aggregation from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
DataFrame supplied to the application data-management or display workflow. |
required |
Source code in app.py
create_visualization ¶
Create visualization.
Purpose
Builds create visualization from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
DataFrame supplied to the application data-management or display workflow. |
required |
Source code in app.py
dm_create_table_from_df ¶
Dm create table from df.
Purpose
Supports the dm create table from df application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str
|
SQLite table name used by the data-management workflow. |
required |
df
|
DataFrame
|
DataFrame supplied to the application data-management or display workflow. |
required |
Source code in app.py
insert_data ¶
Insert data.
Purpose
Applies the insert data operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str
|
SQLite table name used by the data-management workflow. |
required |
df
|
DataFrame
|
DataFrame supplied to the application data-management or display workflow. |
required |
Source code in app.py
get_sqlite_type ¶
Get sqlite type.
Purpose
Retrieves get sqlite type for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dtype
|
Any
|
Pandas dtype or dtype-like object to map into a SQLite storage type. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
create_custom_table ¶
Create custom table.
Purpose
Builds create custom table from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str
|
SQLite table name used by the data-management workflow. |
required |
columns
|
list
|
Column name used for filtering, schema, indexing, or profiling operations. |
required |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
is_safe_query ¶
Is safe query.
Purpose
Evaluates whether is safe query is enabled or safe for the current provider, model, table, query, or workflow context.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query
|
str
|
Query string used by the database, retrieval, or provider workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True when the requested condition is satisfied; otherwise, False. |
Source code in app.py
create_identifier ¶
Create identifier.
Purpose
Builds create identifier from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Name value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
get_indexes ¶
Get indexes.
Purpose
Retrieves get indexes for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table
|
str
|
SQLite table name used by the data-management workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[Tuple[Any, ...]]
|
List[Tuple[Any, ...]]: SQLite index metadata rows returned by PRAGMA index_list. |
Source code in app.py
add_column ¶
Add column.
Purpose
Applies the add column operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table
|
str
|
SQLite table name used by the data-management workflow. |
required |
column
|
str
|
Column name used for filtering, schema, indexing, or profiling operations. |
required |
col_type
|
str
|
Col Type value used by the application workflow. |
required |
Source code in app.py
create_profile_table ¶
Create profile table.
Purpose
Builds create profile table from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table
|
str
|
SQLite table name used by the data-management workflow. |
required |
Returns:
| Type | Description |
|---|---|
DataFrame
|
pd.DataFrame: Column-level profile dataframe for the selected SQLite table. |
Source code in app.py
drop_column ¶
Drop column.
Purpose
Applies the drop column operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table
|
str
|
SQLite table name used by the data-management workflow. |
required |
column
|
str
|
Column name used for filtering, schema, indexing, or profiling operations. |
required |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 | |
rename_table ¶
Rename table.
Purpose
Applies the rename table operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
old_name
|
str
|
Old Name value used by the application workflow. |
required |
new_name
|
str
|
New Name value used by the application workflow. |
required |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 | |
rename_column ¶
Rename column.
Purpose
Applies the rename column operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str
|
SQLite table name used by the data-management workflow. |
required |
old_name
|
str
|
Old Name value used by the application workflow. |
required |
new_name
|
str
|
New Name value used by the application workflow. |
required |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 | |
ensure_session_key ¶
Ensure session key.
Purpose
Maintains application runtime state for ensure session key by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
str
|
Session-state key or state value used by the Streamlit workflow. |
required |
default
|
Any
|
Default value used by the application workflow. |
required |
Source code in app.py
get_provider_name ¶
Get provider name.
Purpose
Retrieves get provider name for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
get_provider_module ¶
Get provider module.
Purpose
Retrieves get provider module for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Source code in app.py
provider_supports ¶
Provider supports.
Purpose
Evaluates whether provider supports is enabled or safe for the current provider, model, table, query, or workflow context.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
capability_name
|
str
|
Capability Name value used by the application workflow. |
required |
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True when the requested condition is satisfied; otherwise, False. |
Source code in app.py
get_provider_capability ¶
Get provider capability.
Purpose
Retrieves get provider capability for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
capability_name
|
str
|
Capability Name value used by the application workflow. |
required |
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
create_provider_capability ¶
Create provider capability.
Purpose
Builds create provider capability from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
capability_name
|
str
|
Capability Name value used by the application workflow. |
required |
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Source code in app.py
get_chat_module ¶
Get chat module.
Purpose
Retrieves get chat module for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Source code in app.py
get_images_module ¶
Get images module.
Purpose
Retrieves get images module for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Source code in app.py
get_embeddings_module ¶
Get embeddings module.
Purpose
Retrieves get embeddings module for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Source code in app.py
get_tts_module ¶
Get tts module.
Purpose
Retrieves get tts module for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Source code in app.py
get_transcription_module ¶
Get transcription module.
Purpose
Retrieves get transcription module for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Source code in app.py
get_translation_module ¶
Get translation module.
Purpose
Retrieves get translation module for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Source code in app.py
get_files_module ¶
Get files module.
Purpose
Retrieves get files module for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Source code in app.py
get_file_search_module ¶
Get file search module.
Purpose
Retrieves get file search module for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
get_cloudbuckets_module ¶
Get cloudbuckets module.
Purpose
Retrieves get cloudbuckets module for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
get_cloud_buckets_module ¶
Get cloud buckets module.
Purpose
Retrieves get cloud buckets module for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Source code in app.py
get_gemini_vector_backend ¶
Get gemini vector backend.
Purpose
Retrieves get gemini vector backend for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
get_vectorstores_module ¶
get_vectorstores_module(
provider_name: Optional[str] = None,
backend: Optional[str] = None,
) -> Any
Get vectorstores module.
Purpose
Retrieves get vectorstores module for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
backend
|
Optional[str]
|
Backend value used by the application workflow. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
get_vectorstores_backend_name ¶
get_vectorstores_backend_name(
provider_name: Optional[str] = None,
backend: Optional[str] = None,
) -> str
Get vectorstores backend name.
Purpose
Retrieves get vectorstores backend name for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document- processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
backend
|
Optional[str]
|
Backend value used by the application workflow. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
ensure_storage_mode_state ¶
Ensure storage mode state.
Purpose
Maintains application runtime state for ensure storage mode state by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
normalize_storage_rows ¶
Normalize storage rows.
Purpose
Transforms normalize storage rows inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
Any
|
Value value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of normalized values used by the application workflow. |
Source code in app.py
parse_storage_ids ¶
Parse storage ids.
Purpose
Transforms parse storage ids inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
Any
|
Value value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
parse_storage_json ¶
Parse storage json.
Purpose
Transforms parse storage json inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
Any
|
Value value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
get_storage_identifier ¶
Get storage identifier.
Purpose
Retrieves get storage identifier for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
row
|
Dict[str, Any]
|
Row value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
get_storage_display_name ¶
Get storage display name.
Purpose
Retrieves get storage display name for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
row
|
Dict[str, Any]
|
Row value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
get_selected_store_id ¶
get_selected_store_id(
manual_key: str = "stores_manual_id",
selected_key: str = "stores_selected_id",
fallback_key: str = "stores_id",
) -> str
Get selected store id.
Purpose
Retrieves get selected store id for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
manual_key
|
str
|
Session-state key or state value used by the Streamlit workflow. |
'stores_manual_id'
|
selected_key
|
str
|
Session-state key or state value used by the Streamlit workflow. |
'stores_selected_id'
|
fallback_key
|
str
|
Session-state key or state value used by the Streamlit workflow. |
'stores_id'
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
get_vectorstores_selected_id ¶
Get vectorstores selected id.
Purpose
Retrieves get vectorstores selected id for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document- processing steps.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
call_storage_method ¶
Call storage method.
Purpose
Executes the call storage method workflow using the current provider, document, prompt, and session-state configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
target
|
Any
|
Target value used by the application workflow. |
required |
method_names
|
List[str]
|
Method Names value used by the application workflow. |
required |
args
|
Any
|
Args value used by the application workflow. |
()
|
kwargs
|
Any
|
Kwargs value used by the application workflow. |
{}
|
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 | |
save_uploaded_storage_file ¶
Save uploaded storage file.
Purpose
Applies the save uploaded storage file operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
uploaded_file
|
Any
|
File, upload, or path value used by the document or storage workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
set_storage_rows ¶
Set storage rows.
Purpose
Supports the set storage rows application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rows
|
Any
|
Rows value used by the application workflow. |
required |
table_key
|
str
|
SQLite table name used by the data-management workflow. |
'storage_table_data'
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of normalized values used by the application workflow. |
Source code in app.py
set_storage_result ¶
set_storage_result(
result: Any,
operation: str,
result_key: str = "storage_operation_result",
) -> Dict[str, Any]
Set storage result.
Purpose
Supports the set storage result application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
Any
|
Result value used by the application workflow. |
required |
operation
|
str
|
Operation value used by the application workflow. |
required |
result_key
|
str
|
Session-state key or state value used by the Streamlit workflow. |
'storage_operation_result'
|
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Source code in app.py
sync_storage_selection ¶
sync_storage_selection(
selected_option: Optional[str],
provider_name: Optional[str] = None,
backend: Optional[str] = None,
) -> str
Sync storage selection.
Purpose
Supports the sync storage selection application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
selected_option
|
Optional[str]
|
Selected Option value used by the application workflow. |
required |
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
backend
|
Optional[str]
|
Backend value used by the application workflow. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
clear_vectorstore_outputs ¶
Clear vectorstore outputs.
Purpose
Maintains application runtime state for clear vectorstore outputs by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
reset_vectorstore_controls ¶
Reset vectorstore controls.
Purpose
Maintains application runtime state for reset vectorstore controls by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
reset_vectorstore_all ¶
Reset vectorstore all.
Purpose
Maintains application runtime state for reset vectorstore all by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
require_storage_value ¶
Require storage value.
Purpose
Supports the require storage value application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Name value used by the application workflow. |
required |
value
|
Any
|
Value value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
get_grok_collections ¶
Get grok collections.
Purpose
Retrieves get grok collections for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
vectorstores
|
Any
|
Vectorstores value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of normalized values used by the application workflow. |
Source code in app.py
warn_grok_unsupported_operation ¶
Warn grok unsupported operation.
Purpose
Supports the warn grok unsupported operation application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
operation_name
|
str
|
Operation Name value used by the application workflow. |
required |
Source code in app.py
get_storage_backend_summary ¶
get_storage_backend_summary(
provider_name: Optional[str] = None,
backend: Optional[str] = None,
) -> Dict[str, Any]
Get storage backend summary.
Purpose
Retrieves get storage backend summary for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document- processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
backend
|
Optional[str]
|
Backend value used by the application workflow. |
None
|
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Source code in app.py
ensure_key ¶
Ensure key.
Purpose
Maintains application runtime state for ensure key by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
str
|
Session-state key or state value used by the Streamlit workflow. |
required |
default
|
Any
|
Default value used by the application workflow. |
required |
Source code in app.py
ensure_common_mode_state ¶
Ensure common mode state.
Purpose
Maintains application runtime state for ensure common mode state by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 | |
ensure_text_mode_state ¶
Ensure text mode state.
Purpose
Maintains application runtime state for ensure text mode state by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
ensure_image_mode_state ¶
Ensure image mode state.
Purpose
Maintains application runtime state for ensure image mode state by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
ensure_audio_mode_state ¶
Ensure audio mode state.
Purpose
Maintains application runtime state for ensure audio mode state by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
ensure_embeddings_mode_state ¶
Ensure embeddings mode state.
Purpose
Maintains application runtime state for ensure embeddings mode state by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
ensure_docqna_mode_state ¶
Ensure docqna mode state.
Purpose
Maintains application runtime state for ensure docqna mode state by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 | |
ensure_files_mode_state ¶
Ensure files mode state.
Purpose
Maintains application runtime state for ensure files mode state by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
ensure_vectorstores_mode_state ¶
Ensure vectorstores mode state.
Purpose
Maintains application runtime state for ensure vectorstores mode state by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
ensure_file_search_mode_state ¶
Ensure file search mode state.
Purpose
Maintains application runtime state for ensure file search mode state by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
ensure_cloudbuckets_mode_state ¶
Ensure cloudbuckets mode state.
Purpose
Maintains application runtime state for ensure cloudbuckets mode state by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
ensure_export_mode_state ¶
Ensure export mode state.
Purpose
Maintains application runtime state for ensure export mode state by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
ensure_data_management_mode_state ¶
Ensure data management mode state.
Purpose
Maintains application runtime state for ensure data management mode state by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
ensure_mode_state ¶
Ensure mode state.
Purpose
Maintains application runtime state for ensure mode state by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mode_name
|
str | None
|
Mode Name value used by the application workflow. |
None
|
Source code in app.py
get_text_avatar ¶
Get text avatar.
Purpose
Retrieves get text avatar for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
str
|
Provider name used to route the operation. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
get_text_option_list ¶
Get text option list.
Purpose
Retrieves get text option list for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
source
|
Any
|
Source value used by the application workflow. |
required |
attr_name
|
str
|
Attr Name value used by the application workflow. |
required |
fallback
|
List[str]
|
Fallback value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
clear_text_messages ¶
Clear text messages.
Purpose
Maintains application runtime state for clear text messages by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
clear_text_instructions ¶
Clear text instructions.
Purpose
Maintains application runtime state for clear text instructions by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
load_text_instruction_template ¶
Load text instruction template.
Purpose
Retrieves load text instruction template for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document- processing steps.
Source code in app.py
convert_text_system_instructions ¶
Convert text system instructions.
Purpose
Transforms convert text system instructions inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Source code in app.py
reset_text_model_settings ¶
Reset text model settings.
Purpose
Maintains application runtime state for reset text model settings by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
reset_text_inference_settings ¶
Reset text inference settings.
Purpose
Maintains application runtime state for reset text inference settings by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
reset_text_tool_settings ¶
Reset text tool settings.
Purpose
Maintains application runtime state for reset text tool settings by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
reset_text_response_settings ¶
Reset text response settings.
Purpose
Maintains application runtime state for reset text response settings by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
split_text_values ¶
Split text values.
Purpose
Transforms split text values inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
Any
|
Value value used by the application workflow. |
required |
delimiter
|
str
|
Numeric control value that constrains the operation. |
','
|
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
parse_text_vector_store_ids ¶
Parse text vector store ids.
Purpose
Transforms parse text vector store ids inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str | List[str] | None
|
Value value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
build_text_response_format ¶
build_text_response_format(
response_format: str | None,
schema_name: str | None = None,
schema_text: str | None = None,
strict: bool = True,
) -> Dict[str, Any] | None
Build text response format.
Purpose
Builds build text response format from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
response_format
|
str | None
|
Response Format value used by the application workflow. |
required |
schema_name
|
str | None
|
Schema Name value used by the application workflow. |
None
|
schema_text
|
str | None
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
None
|
strict
|
bool
|
Strict value used by the application workflow. |
True
|
Returns:
| Type | Description |
|---|---|
Dict[str, Any] | None
|
Dict[str, Any] | None: Dictionary containing normalized workflow configuration or results. |
Source code in app.py
build_text_tools ¶
build_text_tools(
selected_tools: List[str] | None,
vector_store_ids: List[str] | None = None,
) -> List[Dict[str, Any]]
Build text tools.
Purpose
Builds build text tools from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
selected_tools
|
List[str] | None
|
Selected Tools value used by the application workflow. |
required |
vector_store_ids
|
List[str] | None
|
Vector Store Ids value used by the application workflow. |
None
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of normalized values used by the application workflow. |
Source code in app.py
build_text_include ¶
build_text_include(
selected_include: List[str] | None,
selected_tools: List[Dict[str, Any]] | None = None,
) -> List[str]
Build text include.
Purpose
Builds build text include from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
selected_include
|
List[str] | None
|
Selected Include value used by the application workflow. |
required |
selected_tools
|
List[Dict[str, Any]] | None
|
Selected Tools value used by the application workflow. |
None
|
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
build_text_tool_choice ¶
build_text_tool_choice(
tool_choice: str | None,
selected_tools: List[Dict[str, Any]] | None = None,
) -> str | None
Build text tool choice.
Purpose
Builds build text tool choice from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tool_choice
|
str | None
|
Tool Choice value used by the application workflow. |
required |
selected_tools
|
List[Dict[str, Any]] | None
|
Selected Tools value used by the application workflow. |
None
|
Returns:
| Type | Description |
|---|---|
str | None
|
str | None: Text value produced for the active application workflow. |
Source code in app.py
build_text_context ¶
build_text_context(
messages: List[Dict[str, Any]] | None,
include_last_message: bool = False,
) -> List[Dict[str, str]]
Build text context.
Purpose
Builds build text context from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
messages
|
List[Dict[str, Any]] | None
|
Messages value used by the application workflow. |
required |
include_last_message
|
bool
|
Include Last Message value used by the application workflow. |
False
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, str]]
|
List[Dict[str, str]]: List of normalized values used by the application workflow. |
Source code in app.py
get_text_conversation_id ¶
Get text conversation id.
Purpose
Retrieves get text conversation id for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_mode
|
str | None
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
conversation_id
|
str | None
|
Conversation Id value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
str | None
|
str | None: Text value produced for the active application workflow. |
Source code in app.py
get_text_previous_response_id ¶
Get text previous response id.
Purpose
Retrieves get text previous response id for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document- processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_mode
|
str | None
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
previous_id
|
str | None
|
Previous Id value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
str | None
|
str | None: Text value produced for the active application workflow. |
Source code in app.py
apply_gemini_runtime_config ¶
Apply gemini runtime config.
Purpose
Supports the apply gemini runtime config application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Source code in app.py
clear_image_messages ¶
Clear image messages.
Purpose
Maintains application runtime state for clear image messages by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
clear_image_instructions ¶
Clear image instructions.
Purpose
Maintains application runtime state for clear image instructions by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
append_image_message ¶
Append image message.
Purpose
Supports the append image message application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
role
|
str
|
Role value used by the application workflow. |
required |
content
|
str
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
Source code in app.py
load_image_instruction_template ¶
Load image instruction template.
Purpose
Retrieves load image instruction template for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document- processing steps.
Source code in app.py
convert_image_system_instructions ¶
Convert image system instructions.
Purpose
Transforms convert image system instructions inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Source code in app.py
reset_image_llm_settings ¶
Reset image llm settings.
Purpose
Maintains application runtime state for reset image llm settings by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
reset_image_visual_settings ¶
Reset image visual settings.
Purpose
Maintains application runtime state for reset image visual settings by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
reset_image_tool_settings ¶
Reset image tool settings.
Purpose
Maintains application runtime state for reset image tool settings by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
reset_image_response_settings ¶
Reset image response settings.
Purpose
Maintains application runtime state for reset image response settings by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
get_image_models ¶
Get image models.
Purpose
Retrieves get image models for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image
|
Any
|
Image value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_image_analysis_models ¶
Get image analysis models.
Purpose
Retrieves get image analysis models for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image
|
Any
|
Image value used by the application workflow. |
None
|
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_image_editing_models ¶
Get image editing models.
Purpose
Retrieves get image editing models for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image
|
Any
|
Image value used by the application workflow. |
None
|
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_image_size_options ¶
Get image size options.
Purpose
Retrieves get image size options for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image
|
Any
|
Image value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_image_quality_options ¶
Get image quality options.
Purpose
Retrieves get image quality options for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image
|
Any
|
Image value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_image_mime_options ¶
Get image mime options.
Purpose
Retrieves get image mime options for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image
|
Any
|
Image value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_image_background_options ¶
Get image background options.
Purpose
Retrieves get image background options for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document- processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image
|
Any
|
Image value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_image_detail_options ¶
Get image detail options.
Purpose
Retrieves get image detail options for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image
|
Any
|
Image value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_image_aspect_options ¶
Get image aspect options.
Purpose
Retrieves get image aspect options for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image
|
Any
|
Image value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_image_modality_options ¶
Get image modality options.
Purpose
Retrieves get image modality options for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image
|
Any
|
Image value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
render_image_output ¶
render_image_output(
image_result: (
str | bytes | List[str | bytes] | Any | None
),
caption: str = "Image output",
) -> bool
Render image output.
Purpose
Renders render image output in the Streamlit interface while preserving the active session state and provider workflow context.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image_result
|
str | bytes | List[str | bytes] | Any | None
|
Image Result value used by the application workflow. |
required |
caption
|
str
|
Caption value used by the application workflow. |
'Image output'
|
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True when the requested condition is satisfied; otherwise, False. |
Source code in app.py
get_image_prompt ¶
Get image prompt.
Purpose
Retrieves get image prompt for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
prompt
|
str | None
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
ensure_audio_runtime_state ¶
Ensure audio runtime state.
Purpose
Maintains application runtime state for ensure audio runtime state by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
get_audio_task_options ¶
Get audio task options.
Purpose
Retrieves get audio task options for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_audio_option_list ¶
Get audio option list.
Purpose
Retrieves get audio option list for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
source
|
Any
|
Source value used by the application workflow. |
required |
attr_name
|
str
|
Attr Name value used by the application workflow. |
required |
fallback
|
List[str]
|
Fallback value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_audio_model_options ¶
get_audio_model_options(
task: str | None,
transcriber: Any,
translator: Any,
tts: Any,
) -> List[str]
Get audio model options.
Purpose
Retrieves get audio model options for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task
|
str | None
|
Task value used by the application workflow. |
required |
transcriber
|
Any
|
Transcriber value used by the application workflow. |
required |
translator
|
Any
|
Translator value used by the application workflow. |
required |
tts
|
Any
|
Tts value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_audio_language_options ¶
Get audio language options.
Purpose
Retrieves get audio language options for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task
|
str | None
|
Task value used by the application workflow. |
required |
transcriber
|
Any
|
Transcriber value used by the application workflow. |
required |
translator
|
Any
|
Translator value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_audio_voice_options ¶
Get audio voice options.
Purpose
Retrieves get audio voice options for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tts
|
Any
|
Tts value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_audio_response_format_options ¶
get_audio_response_format_options(
task: str | None,
model: str | None,
transcriber: Any,
translator: Any,
tts: Any,
) -> List[str]
Get audio response format options.
Purpose
Retrieves get audio response format options for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document- processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task
|
str | None
|
Task value used by the application workflow. |
required |
model
|
str | None
|
Provider model identifier selected for the active workflow. |
required |
transcriber
|
Any
|
Transcriber value used by the application workflow. |
required |
translator
|
Any
|
Translator value used by the application workflow. |
required |
tts
|
Any
|
Tts value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_audio_prompt_value ¶
Get audio prompt value.
Purpose
Retrieves get audio prompt value for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task
|
str | None
|
Task value used by the application workflow. |
required |
prompt
|
str | None
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
Returns:
| Type | Description |
|---|---|
str | None
|
str | None: Text value produced for the active application workflow. |
Source code in app.py
get_audio_response_format_value ¶
get_audio_response_format_value(
task: str | None,
selected_format: str | None,
selected_mime_type: str | None = None,
) -> str | None
Get audio response format value.
Purpose
Retrieves get audio response format value for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document- processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task
|
str | None
|
Task value used by the application workflow. |
required |
selected_format
|
str | None
|
Selected Format value used by the application workflow. |
required |
selected_mime_type
|
str | None
|
Selected Mime Type value used by the application workflow. |
None
|
Returns:
| Type | Description |
|---|---|
str | None
|
str | None: Text value produced for the active application workflow. |
Source code in app.py
extract_audio_usage ¶
Extract audio usage.
Purpose
Transforms extract audio usage inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
response
|
Any
|
Response value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Source code in app.py
clear_audio_outputs ¶
Clear audio outputs.
Purpose
Maintains application runtime state for clear audio outputs by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
clear_audio_messages ¶
Clear audio messages.
Purpose
Maintains application runtime state for clear audio messages by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
clear_audio_instructions ¶
Clear audio instructions.
Purpose
Maintains application runtime state for clear audio instructions by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
load_audio_instruction_template ¶
Load audio instruction template.
Purpose
Retrieves load audio instruction template for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document- processing steps.
Source code in app.py
convert_audio_system_instructions ¶
Convert audio system instructions.
Purpose
Transforms convert audio system instructions inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Source code in app.py
reset_audio_llm_settings ¶
Reset audio llm settings.
Purpose
Maintains application runtime state for reset audio llm settings by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
reset_audio_response_settings ¶
Reset audio response settings.
Purpose
Maintains application runtime state for reset audio response settings by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
save_audio_upload ¶
Save audio upload.
Purpose
Applies the save audio upload operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
upload
|
Any
|
Streamlit uploaded-file object to persist to a temporary path. |
required |
Returns:
| Type | Description |
|---|---|
str | None
|
str | None: Text value produced for the active application workflow. |
Source code in app.py
run_audio_file_task ¶
run_audio_file_task(
task: str | None,
file_path: str | None,
transcriber: Any,
translator: Any,
) -> str | None
Run audio file task.
Purpose
Executes the run audio file task workflow using the current provider, document, prompt, and session-state configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task
|
str | None
|
Task value used by the application workflow. |
required |
file_path
|
str | None
|
File, upload, or path value used by the document or storage workflow. |
required |
transcriber
|
Any
|
Transcriber value used by the application workflow. |
required |
translator
|
Any
|
Translator value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
str | None
|
str | None: Text value produced for the active application workflow. |
Source code in app.py
6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 | |
run_audio_tts_task ¶
Run audio tts task.
Purpose
Executes the run audio tts task workflow using the current provider, document, prompt, and session-state configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str | None
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
tts
|
Any
|
Tts value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
bytes | None
|
bytes | None: Normalized result produced for the active application workflow. |
Source code in app.py
render_audio_text_result ¶
Render audio text result.
Purpose
Renders render audio text result in the Streamlit interface while preserving the active session state and provider workflow context.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
title
|
str
|
Title value used by the application workflow. |
required |
result_text
|
str | None
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
Source code in app.py
render_audio_bytes ¶
Render audio bytes.
Purpose
Renders render audio bytes in the Streamlit interface while preserving the active session state and provider workflow context.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
audio_bytes
|
bytes | None
|
Audio Bytes value used by the application workflow. |
required |
response_format
|
str | None
|
Response Format value used by the application workflow. |
None
|
Source code in app.py
get_embedding_model_options ¶
Get embedding model options.
Purpose
Retrieves get embedding model options for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document- processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
embedding
|
Any
|
Embedding value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_embedding_encoding_options ¶
Get embedding encoding options.
Purpose
Retrieves get embedding encoding options for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document- processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
embedding
|
Any
|
Embedding value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_embedding_max_dimensions ¶
Get embedding max dimensions.
Purpose
Retrieves get embedding max dimensions for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document- processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
str | None
|
Provider model identifier selected for the active workflow. |
required |
embedding
|
Any
|
Embedding value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Normalized result produced for the active application workflow. |
Source code in app.py
embedding_model_supports_dimensions ¶
Embedding model supports dimensions.
Purpose
Evaluates whether embedding model supports dimensions is enabled or safe for the current provider, model, table, query, or workflow context.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
str | None
|
Provider model identifier selected for the active workflow. |
required |
embedding
|
Any
|
Embedding value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True when the requested condition is satisfied; otherwise, False. |
Source code in app.py
normalize_embedding_dimensions ¶
normalize_embedding_dimensions(
model: str | None,
dimensions: int | None,
embedding: Any,
) -> int | None
Normalize embedding dimensions.
Purpose
Transforms normalize embedding dimensions inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
str | None
|
Provider model identifier selected for the active workflow. |
required |
dimensions
|
int | None
|
Dimensions value used by the application workflow. |
required |
embedding
|
Any
|
Embedding value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
int | None
|
int | None: Normalized result produced for the active application workflow. |
Source code in app.py
normalize_embedding_chunk_settings ¶
normalize_embedding_chunk_settings(
chunk_size: int | None, overlap_amount: int | None
) -> Tuple[int, int]
Normalize embedding chunk settings.
Purpose
Transforms normalize embedding chunk settings inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
chunk_size
|
int | None
|
Chunk Size value used by the application workflow. |
required |
overlap_amount
|
int | None
|
Overlap Amount value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
Tuple[int, int]
|
Tuple[int, int]: Normalized result produced for the active application workflow. |
Source code in app.py
chunk_text_for_embeddings ¶
chunk_text_for_embeddings(
text: str,
chunk_size: int = 800,
overlap_amount: int = 0,
encoding_name: str = "cl100k_base",
) -> List[str]
Chunk text for embeddings.
Purpose
Supports the chunk text for embeddings application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
chunk_size
|
int
|
Chunk Size value used by the application workflow. |
800
|
overlap_amount
|
int
|
Overlap Amount value used by the application workflow. |
0
|
encoding_name
|
str
|
Encoding Name value used by the application workflow. |
'cl100k_base'
|
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
normalize_embedding_vectors ¶
Normalize embedding vectors.
Purpose
Transforms normalize embedding vectors inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
vectors
|
Any
|
Vectors value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[Any]
|
List[Any]: List of normalized values used by the application workflow. |
Source code in app.py
build_embeddings_dataframe ¶
build_embeddings_dataframe(
chunks: List[str],
vectors: Any,
encoding_format: str = "float",
) -> pd.DataFrame
Build embeddings dataframe.
Purpose
Builds build embeddings dataframe from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
chunks
|
List[str]
|
Chunks value used by the application workflow. |
required |
vectors
|
Any
|
Vectors value used by the application workflow. |
required |
encoding_format
|
str
|
Encoding Format value used by the application workflow. |
'float'
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
pd.DataFrame: DataFrame produced for application display, profiling, retrieval, or export. |
Source code in app.py
get_embedding_vector_dimension ¶
Get embedding vector dimension.
Purpose
Retrieves get embedding vector dimension for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document- processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
vectors
|
Any
|
Vectors value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Normalized result produced for the active application workflow. |
Source code in app.py
extract_embedding_usage ¶
Extract embedding usage.
Purpose
Transforms extract embedding usage inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
response
|
Any
|
Response value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Source code in app.py
build_embedding_metrics ¶
build_embedding_metrics(
source_text: str,
normalized_text: str,
chunks: List[str],
vectors: Any,
usage: Dict[str, Any] | None = None,
) -> Dict[str, Any]
Build embedding metrics.
Purpose
Builds build embedding metrics from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
source_text
|
str
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
normalized_text
|
str
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
chunks
|
List[str]
|
Chunks value used by the application workflow. |
required |
vectors
|
Any
|
Vectors value used by the application workflow. |
required |
usage
|
Dict[str, Any] | None
|
Usage value used by the application workflow. |
None
|
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Source code in app.py
render_embedding_metrics ¶
Render embedding metrics.
Purpose
Renders render embedding metrics in the Streamlit interface while preserving the active session state and provider workflow context.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
metrics
|
Dict[str, Any] | None
|
Metrics value used by the application workflow. |
required |
Source code in app.py
render_embeddings_dataframe ¶
Render embeddings dataframe.
Purpose
Renders render embeddings dataframe in the Streamlit interface while preserving the active session state and provider workflow context.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df_embeddings
|
DataFrame
|
DataFrame supplied to the application data-management or display workflow. |
required |
Source code in app.py
reset_embeddings_controls ¶
Reset embeddings controls.
Purpose
Maintains application runtime state for reset embeddings controls by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
clear_embeddings_output ¶
Clear embeddings output.
Purpose
Maintains application runtime state for clear embeddings output by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
reset_embeddings_all ¶
Reset embeddings all.
Purpose
Maintains application runtime state for reset embeddings all by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
create_provider_embeddings ¶
create_provider_embeddings(
embedding: Any,
chunks: List[str],
model: str,
encoding_format: str,
dimensions: int | None,
user_value: str | None,
) -> Any
Create provider embeddings.
Purpose
Builds create provider embeddings from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
embedding
|
Any
|
Embedding value used by the application workflow. |
required |
chunks
|
List[str]
|
Chunks value used by the application workflow. |
required |
model
|
str
|
Provider model identifier selected for the active workflow. |
required |
encoding_format
|
str
|
Encoding Format value used by the application workflow. |
required |
dimensions
|
int | None
|
Dimensions value used by the application workflow. |
required |
user_value
|
str | None
|
User Value value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Source code in app.py
clear_docqna_messages ¶
Clear docqna messages.
Purpose
Maintains application runtime state for clear docqna messages by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
clear_docqna_outputs ¶
Clear docqna outputs.
Purpose
Maintains application runtime state for clear docqna outputs by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
unload_docqna_documents ¶
Unload docqna documents.
Purpose
Supports the unload docqna documents application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Source code in app.py
reset_docqna_controls ¶
Reset docqna controls.
Purpose
Maintains application runtime state for reset docqna controls by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
reset_docqna_all ¶
Reset docqna all.
Purpose
Maintains application runtime state for reset docqna all by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
clear_docqna_instructions ¶
Clear docqna instructions.
Purpose
Maintains application runtime state for clear docqna instructions by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
load_docqna_instruction ¶
Load docqna instruction.
Purpose
Retrieves load docqna instruction for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Source code in app.py
convert_docqna_instructions ¶
Convert docqna instructions.
Purpose
Transforms convert docqna instructions inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Source code in app.py
get_docqna_sources ¶
Get docqna sources.
Purpose
Retrieves get docqna sources for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_docqna_extension ¶
Get docqna extension.
Purpose
Retrieves get docqna extension for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
str | None
|
File, upload, or path value used by the document or storage workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
compute_fingerprint ¶
Compute fingerprint.
Purpose
Transforms compute fingerprint inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
documents
|
List[Dict[str, Any]]
|
Documents value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
extract_pdf_text ¶
Extract pdf text.
Purpose
Transforms extract pdf text inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file_bytes
|
bytes
|
File, upload, or path value used by the document or storage workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
extract_text_bytes ¶
Extract text bytes.
Purpose
Transforms extract text bytes inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file_bytes
|
bytes
|
File, upload, or path value used by the document or storage workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
extract_docx_text ¶
Extract docx text.
Purpose
Transforms extract docx text inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file_bytes
|
bytes
|
File, upload, or path value used by the document or storage workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
extract_docqna_text ¶
Extract docqna text.
Purpose
Transforms extract docqna text inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
str
|
File, upload, or path value used by the document or storage workflow. |
required |
file_bytes
|
bytes
|
File, upload, or path value used by the document or storage workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
normalize_docqna_text ¶
Normalize docqna text.
Purpose
Transforms normalize docqna text inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
chunk_docqna_text ¶
Chunk docqna text.
Purpose
Supports the chunk docqna text application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
chunk_size
|
int
|
Chunk Size value used by the application workflow. |
900
|
chunk_overlap
|
int
|
Chunk Overlap value used by the application workflow. |
150
|
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 | |
load_docqna_file ¶
Load docqna file.
Purpose
Retrieves load docqna file for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
uploaded
|
Any
|
File, upload, or path value used by the document or storage workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of normalized values used by the application workflow. |
Source code in app.py
7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 | |
get_document_names ¶
Get document names.
Purpose
Retrieves get document names for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
render_document_preview ¶
Render document preview.
Purpose
Renders render document preview in the Streamlit interface while preserving the active session state and provider workflow context.
Source code in app.py
rebuild_docqna_index ¶
Rebuild docqna index.
Purpose
Supports the rebuild docqna index application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of normalized values used by the application workflow. |
Source code in app.py
score_chunk ¶
Score chunk.
Purpose
Transforms score chunk inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query
|
str
|
Query string used by the database, retrieval, or provider workflow. |
required |
chunk
|
str
|
Chunk value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
float |
float
|
Normalized result produced for the active application workflow. |
Source code in app.py
retrieve_chunks ¶
Retrieve chunks.
Purpose
Retrieves retrieve chunks for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query
|
str
|
Query string used by the database, retrieval, or provider workflow. |
required |
top_k
|
int
|
Numeric control value that constrains the operation. |
6
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of normalized values used by the application workflow. |
Source code in app.py
build_docqna_local_prompt ¶
Build docqna local prompt.
Purpose
Builds build docqna local prompt from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query
|
str
|
Query string used by the database, retrieval, or provider workflow. |
required |
hits
|
List[Dict[str, Any]]
|
Hits value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
run_docqna_query ¶
Run docqna query.
Purpose
Executes the run docqna query workflow using the current provider, document, prompt, and session-state configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query
|
str
|
Query string used by the database, retrieval, or provider workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 | |
run_remote_query ¶
Run remote query.
Purpose
Executes the run remote query workflow using the current provider, document, prompt, and session-state configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query
|
str
|
Query string used by the database, retrieval, or provider workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 | |
render_hits ¶
Render hits.
Purpose
Renders render hits in the Streamlit interface while preserving the active session state and provider workflow context.
Source code in app.py
get_docqna_avatar ¶
Get docqna avatar.
Purpose
Retrieves get docqna avatar for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
str
|
Provider name used to route the operation. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
ensure_runtime_state ¶
Ensure runtime state.
Purpose
Maintains application runtime state for ensure runtime state by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
clear_files_messages ¶
Clear files messages.
Purpose
Maintains application runtime state for clear files messages by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
clear_files_outputs ¶
Clear files outputs.
Purpose
Maintains application runtime state for clear files outputs by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
reset_files_controls ¶
Reset files controls.
Purpose
Maintains application runtime state for reset files controls by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
reset_files_all ¶
Reset files all.
Purpose
Maintains application runtime state for reset files all by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
clear_files_instructions ¶
Clear files instructions.
Purpose
Maintains application runtime state for clear files instructions by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
load_files_instruction ¶
Load files instruction.
Purpose
Retrieves load files instruction for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Source code in app.py
convert_files_instructions ¶
Convert files instructions.
Purpose
Transforms convert files instructions inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Source code in app.py
get_purpose_options ¶
Get purpose options.
Purpose
Retrieves get purpose options for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
files
|
Any
|
File, upload, or path value used by the document or storage workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_filter_options ¶
Get filter options.
Purpose
Retrieves get filter options for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
files
|
Any
|
File, upload, or path value used by the document or storage workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
normalize_files_object ¶
Normalize files object.
Purpose
Transforms normalize files object inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
Any
|
Value value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Source code in app.py
normalize_files_list ¶
Normalize files list.
Purpose
Transforms normalize files list inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
Any
|
Value value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of normalized values used by the application workflow. |
Source code in app.py
get_files_id ¶
Get files id.
Purpose
Retrieves get files id for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
row
|
Dict[str, Any]
|
Row value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
build_selector_options ¶
Build selector options.
Purpose
Builds build selector options from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rows
|
List[Dict[str, Any]]
|
Rows value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_option_id ¶
Get option id.
Purpose
Retrieves get option id for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
option
|
str | None
|
Option value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
upload_provider_file ¶
Upload provider file.
Purpose
Applies the upload provider file operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
files
|
Any
|
File, upload, or path value used by the document or storage workflow. |
required |
path
|
str
|
File, upload, or path value used by the document or storage workflow. |
required |
purpose
|
str | None
|
Purpose value used by the application workflow. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Source code in app.py
list_provider_files ¶
List provider files.
Purpose
Retrieves list provider files for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
files
|
Any
|
File, upload, or path value used by the document or storage workflow. |
required |
purpose
|
str | None
|
Purpose value used by the application workflow. |
None
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of normalized values used by the application workflow. |
Source code in app.py
retrieve_provider_file ¶
Retrieve provider file.
Purpose
Retrieves retrieve provider file for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
files
|
Any
|
File, upload, or path value used by the document or storage workflow. |
required |
file_id
|
str
|
File, upload, or path value used by the document or storage workflow. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Source code in app.py
extract_file_content ¶
Extract file content.
Purpose
Transforms extract file content inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
files
|
Any
|
File, upload, or path value used by the document or storage workflow. |
required |
file_id
|
str
|
File, upload, or path value used by the document or storage workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
delete_provider_file ¶
Delete provider file.
Purpose
Applies the delete provider file operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
files
|
Any
|
File, upload, or path value used by the document or storage workflow. |
required |
file_id
|
str
|
File, upload, or path value used by the document or storage workflow. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Source code in app.py
analyze_provider_file ¶
analyze_provider_file(
files: Any,
prompt: str,
file_id: str | None = None,
model: str | None = None,
) -> str
Analyze provider file.
Purpose
Executes the analyze provider file workflow using the current provider, document, prompt, and session-state configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
files
|
Any
|
File, upload, or path value used by the document or storage workflow. |
required |
prompt
|
str
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
file_id
|
str | None
|
File, upload, or path value used by the document or storage workflow. |
None
|
model
|
str | None
|
Provider model identifier selected for the active workflow. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 | |
ensure_storage_state ¶
Ensure storage state.
Purpose
Maintains application runtime state for ensure storage state by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
clear_storage_outputs ¶
Clear storage outputs.
Purpose
Maintains application runtime state for clear storage outputs by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
reset_storage_controls ¶
Reset storage controls.
Purpose
Maintains application runtime state for reset storage controls by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
reset_storage_all ¶
Reset storage all.
Purpose
Maintains application runtime state for reset storage all by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
normalize_storage_object ¶
Normalize storage object.
Purpose
Transforms normalize storage object inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
Any
|
Value value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Source code in app.py
normalize_storage_list ¶
Normalize storage list.
Purpose
Transforms normalize storage list inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
Any
|
Value value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of normalized values used by the application workflow. |
Source code in app.py
get_storage_rowid ¶
Get storage rowid.
Purpose
Retrieves get storage rowid for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
row
|
Dict[str, Any]
|
Row value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
build_storage_selectors ¶
Build storage selectors.
Purpose
Builds build storage selectors from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rows
|
List[Dict[str, Any]]
|
Rows value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_storage_id_from_option ¶
Get storage id from option.
Purpose
Retrieves get storage id from option for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
option
|
str | None
|
Option value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
create_openai_vector_store ¶
Create openai vector store.
Purpose
Builds create openai vector store from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
vectorstores
|
Any
|
Vectorstores value used by the application workflow. |
required |
name
|
str
|
Name value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
list_openai_vector_stores ¶
List openai vector stores.
Purpose
Retrieves list openai vector stores for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
vectorstores
|
Any
|
Vectorstores value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of normalized values used by the application workflow. |
Source code in app.py
retrieve_openai_vector_store ¶
Retrieve openai vector store.
Purpose
Retrieves retrieve openai vector store for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document- processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
vectorstores
|
Any
|
Vectorstores value used by the application workflow. |
required |
store_id
|
str
|
Store Id value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
delete_openai_vector_store ¶
Delete openai vector store.
Purpose
Applies the delete openai vector store operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
vectorstores
|
Any
|
Vectorstores value used by the application workflow. |
required |
store_id
|
str
|
Store Id value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
attach_file_to_openai_vector_store ¶
attach_file_to_openai_vector_store(
vectorstores: Any, store_id: str, file_id: str
) -> Dict[str, Any]
Attach file to openai vector store.
Purpose
Applies the attach file to openai vector store operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
vectorstores
|
Any
|
Vectorstores value used by the application workflow. |
required |
store_id
|
str
|
Store Id value used by the application workflow. |
required |
file_id
|
str
|
File, upload, or path value used by the document or storage workflow. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
create_gemini_file_search_store ¶
Create gemini file search store.
Purpose
Builds create gemini file search store from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filestore
|
Any
|
File, upload, or path value used by the document or storage workflow. |
required |
name
|
str
|
Name value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
list_gemini_file_search_stores ¶
List gemini file search stores.
Purpose
Retrieves list gemini file search stores for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document- processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filestore
|
Any
|
File, upload, or path value used by the document or storage workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of normalized values used by the application workflow. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
retrieve_gemini_file_search_store ¶
Retrieve gemini file search store.
Purpose
Retrieves retrieve gemini file search store for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document- processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filestore
|
Any
|
File, upload, or path value used by the document or storage workflow. |
required |
store_id
|
str
|
Store Id value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
delete_gemini_file_search_store ¶
Delete gemini file search store.
Purpose
Applies the delete gemini file search store operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filestore
|
Any
|
File, upload, or path value used by the document or storage workflow. |
required |
store_id
|
str
|
Store Id value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
create_google_cloud_bucket ¶
Create google cloud bucket.
Purpose
Builds create google cloud bucket from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
buckets
|
Any
|
Buckets value used by the application workflow. |
required |
bucket_name
|
str
|
Bucket Name value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
list_google_cloud_buckets ¶
List google cloud buckets.
Purpose
Retrieves list google cloud buckets for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
buckets
|
Any
|
Buckets value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of normalized values used by the application workflow. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
upload_to_google_cloud_bucket ¶
upload_to_google_cloud_bucket(
buckets: Any,
bucket_name: str,
object_name: str,
path: str,
) -> Dict[str, Any]
Upload to google cloud bucket.
Purpose
Applies the upload to google cloud bucket operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
buckets
|
Any
|
Buckets value used by the application workflow. |
required |
bucket_name
|
str
|
Bucket Name value used by the application workflow. |
required |
object_name
|
str
|
Object Name value used by the application workflow. |
required |
path
|
str
|
File, upload, or path value used by the document or storage workflow. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
delete_google_cloud_bucket_object ¶
delete_google_cloud_bucket_object(
buckets: Any, bucket_name: str, object_name: str
) -> Dict[str, Any]
Delete google cloud bucket object.
Purpose
Applies the delete google cloud bucket object operation to application-managed data, files, prompts, or provider resources while preserving the surrounding workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
buckets
|
Any
|
Buckets value used by the application workflow. |
required |
bucket_name
|
str
|
Bucket Name value used by the application workflow. |
required |
object_name
|
str
|
Object Name value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Raises:
| Type | Description |
|---|---|
Exception
|
Raised when validation, provider execution, file processing, or database handling fails. |
Source code in app.py
get_retrieval_backend ¶
Get retrieval backend.
Purpose
Retrieves get retrieval backend for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Dictionary containing normalized workflow configuration or results. |
Source code in app.py
get_store_ids ¶
Get store ids.
Purpose
Retrieves get store ids for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_active_grok_collection_ids ¶
Get active grok collection ids.
Purpose
Retrieves get active grok collection ids for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document- processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
get_active_gemini_file_search_store_names ¶
Get active gemini file search store names.
Purpose
Retrieves get active gemini file search store names for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
merge_unique_strings ¶
Merge unique strings.
Purpose
Transforms merge unique strings inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
primary
|
List[str]
|
Primary value used by the application workflow. |
required |
secondary
|
List[str]
|
Secondary value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of normalized values used by the application workflow. |
Source code in app.py
build_provider_retrieval_summary ¶
Build provider retrieval summary.
Purpose
Builds build provider retrieval summary from validated runtime inputs and prepares the resulting object, payload, table, or display structure for later application processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
Optional[str]
|
Provider name used to route the operation. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
text_model_options ¶
Text model options.
Purpose
Supports the text model options application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
chat
|
object
|
object Chat value used by the application workflow. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[ str ]: Text value produced for the active application workflow. |
Source code in app.py
image_model_options ¶
Image model options.
Purpose
Supports the image model options application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image
|
Any
|
Image value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Source code in app.py
image_size_or_aspect_options ¶
Image size or aspect options.
Purpose
Supports the image size or aspect options application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image
|
Any
|
Image value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Source code in app.py
audio_model_options ¶
Audio model options.
Purpose
Supports the audio model options application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
transcriber
|
Any
|
Transcriber value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Source code in app.py
audio_language_options ¶
Audio language options.
Purpose
Supports the audio language options application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
transcriber
|
Any
|
Transcriber value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Source code in app.py
embedding_model_options ¶
Embedding model options.
Purpose
Supports the embedding model options application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
embed
|
Any
|
Embed value used by the application workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Any |
Any
|
Normalized result produced for the active application workflow. |
Source code in app.py
route_document_query ¶
Route document query.
Purpose
Executes the route document query workflow using the current provider, document, prompt, and session-state configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
prompt
|
str
|
Text value supplied to the prompt, conversion, retrieval, or provider workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 | |
extract_text_from_bytes ¶
Extract text from bytes.
Purpose
Transforms extract text from bytes inputs into a normalized representation used by provider calls, document retrieval, data management, or UI rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file_bytes
|
bytes
|
File, upload, or path value used by the document or storage workflow. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
summarize_document ¶
Summarize document.
Purpose
Executes the summarize document workflow using the current provider, document, prompt, and session-state configuration.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text value produced for the active application workflow. |
Source code in app.py
on_stream_chunk ¶
On stream chunk.
Purpose
Supports the on stream chunk application workflow by coordinating validated inputs, Streamlit session state, provider configuration, and local data processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
chunk
|
str
|
Chunk value used by the application workflow. |
required |
Source code in app.py
get_conn ¶
Get conn.
Purpose
Retrieves get conn for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Returns:
| Type | Description |
|---|---|
Connection
|
sqlite3.Connection: SQLite connection used by the local data-management workflow. |
Source code in app.py
reset_selection ¶
Reset selection.
Purpose
Maintains application runtime state for reset selection by initializing, clearing, or restoring the session values used by the active Streamlit workflow.
Source code in app.py
load_prompt ¶
Load prompt.
Purpose
Retrieves load prompt for the Streamlit application workflow and returns the normalized value used by downstream UI, provider, database, or document-processing steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pid
|
int
|
Pid value used by the application workflow. |
required |