File tree Expand file tree Collapse file tree 2 files changed +9
-15
lines changed Expand file tree Collapse file tree 2 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -478,16 +478,13 @@ def get_answer_with_settings_with_weaviate_filter(
478
478
question ,
479
479
vectorstore ,
480
480
client ,
481
- model_id ,
482
- max_tokens ,
483
- model_temperature ,
484
481
system_prompt ,
485
482
relevant_docs ,
486
- llm_server_url ,
487
483
sql_search_db_and_model_path ,
488
484
alpha ,
489
485
max_context_length ,
490
486
sql_ticket_source ,
487
+ llm_settings ,
491
488
):
492
489
493
490
search_type = question_router (question , sql_search_db_and_model_path )
@@ -499,10 +496,10 @@ def get_answer_with_settings_with_weaviate_filter(
499
496
500
497
return get_sql_answer (
501
498
question ,
502
- model_id ,
503
- max_tokens ,
504
- model_temperature ,
505
- llm_server_url ,
499
+ llm_settings . model_id ,
500
+ llm_settings . max_tokens ,
501
+ llm_settings . model_temperature ,
502
+ llm_settings . llm_server_url ,
506
503
sql_search_db_and_model_path ,
507
504
max_context_length ,
508
505
sql_ticket_source ,
@@ -530,9 +527,9 @@ def get_answer_with_settings_with_weaviate_filter(
530
527
question ,
531
528
retriever ,
532
529
client ,
533
- model_id ,
534
- max_tokens ,
535
- model_temperature ,
530
+ llm_settings . model_id ,
531
+ llm_settings . max_tokens ,
532
+ llm_settings . model_temperature ,
536
533
system_prompt ,
537
534
)
538
535
Original file line number Diff line number Diff line change @@ -85,16 +85,13 @@ def setup(
85
85
get_answer_with_settings_with_weaviate_filter ,
86
86
vectorstore = vectorstore ,
87
87
client = client ,
88
- model_id = llm_settings .model_id ,
89
- max_tokens = llm_settings .max_tokens ,
90
- model_temperature = llm_settings .model_temperature ,
91
88
system_prompt = SYSTEM_PROMPT_DEFAULT ,
92
89
relevant_docs = relevant_docs ,
93
- llm_server_url = llm_settings .llm_server_url ,
94
90
sql_search_db_and_model_path = sql_search_db_and_model_path ,
95
91
alpha = weaviate_settings .weaviate_hybrid_search_alpha ,
96
92
max_context_length = max_context_length ,
97
93
sql_ticket_source = sql_ticket_source ,
94
+ llm_settings = llm_settings ,
98
95
)
99
96
100
97
@app .get ("/answer/{question}" )
You can’t perform that action at this time.
0 commit comments