@@ -15,28 +15,30 @@ def deploy_config(arguments: argparse.Namespace):
1515
1616 Args:
1717 arguments (argparse.Namespace): The arguments passed to the script"""
18+
19+ suffix = None if args .suffix == "None" else args .suffix
1820 if arguments .index_type == "rag" :
1921 index_config = RagDocumentsAISearch (
20- suffix = arguments . suffix ,
22+ suffix = suffix ,
2123 rebuild = arguments .rebuild ,
2224 enable_page_by_chunking = arguments .enable_page_chunking ,
2325 )
2426 elif arguments .index_type == "text_2_sql_schema_store" :
2527 index_config = Text2SqlSchemaStoreAISearch (
26- suffix = arguments . suffix ,
28+ suffix = suffix ,
2729 rebuild = arguments .rebuild ,
2830 single_data_dictionary_file = arguments .single_data_dictionary_file ,
2931 )
3032 elif arguments .index_type == "text_2_sql_query_cache" :
3133 index_config = Text2SqlQueryCacheAISearch (
32- suffix = arguments . suffix ,
34+ suffix = suffix ,
3335 rebuild = arguments .rebuild ,
3436 single_query_cache_file = arguments .single_query_cache_file ,
3537 enable_query_cache_indexer = arguments .enable_query_cache_indexer ,
3638 )
3739 elif arguments .index_type == "text_2_sql_column_value_store" :
3840 index_config = Text2SqlColumnValueStoreAISearch (
39- suffix = arguments . suffix ,
41+ suffix = suffix ,
4042 rebuild = arguments .rebuild ,
4143 )
4244 else :
0 commit comments