增加开启了混合检索
This commit is contained in:
@@ -39,7 +39,8 @@ def makeDescriptionByEngine(sql_database:SQLDatabase):
|
||||
return table_schema_objs
|
||||
|
||||
def get_Retriever(index,**kwargs):
|
||||
bEnableHybrid = True if os.getenv("HYBRID_ENABLED",False) == True else False
|
||||
strEnableHybrid = os.getenv("HYBRID_ENABLED",'False')
|
||||
bEnableHybrid = True if strEnableHybrid is not None and strEnableHybrid.title() == 'True' else False
|
||||
if bEnableHybrid:
|
||||
alpha = float(os.getenv("HYBRID_ALPHA", "0.5"))
|
||||
retriever = HybridRetriever(index,alpha = alpha,**kwargs)
|
||||
|
||||
Reference in New Issue
Block a user