修改了提示词

This commit is contained in:
chentianrui
2024-08-22 16:36:37 +08:00
parent 3ceb30c375
commit 59ef831a41
3 changed files with 49 additions and 8 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ def makeDescriptionByEngine(sql_database:SQLDatabase):
return table_schema_objs
def get_Retriever(index,**kwargs):
bEnableHybrid = True if os.getenv("HYBRID_ENABLED",False).title() == 'True' else False
bEnableHybrid = True if os.getenv("HYBRID_ENABLED",False) == True else False
if bEnableHybrid:
alpha = float(os.getenv("HYBRID_ALPHA", "0.5"))
retriever = HybridRetriever(index,alpha = alpha,**kwargs)