Need Help with Azure Search Vector Store as Retriever using semantic_hybrid_score_threshold #30235
Replies: 1 comment 6 replies
-
Your syntax for implementing the retriever = self.vector_store.as_retriever(
search_type="semantic_hybrid_score_threshold",
k=50,
search_kwargs={
"score_threshold": 10.0, # Ensure this is set correctly
"fetch_k": 20, # Example value, adjust as needed
"lambda_mult": 0.5, # Example value, adjust as needed
"filter": "metadata_filter_expression" # Example filter, adjust as needed
},
semantic_configuration_name="my-semantic-config"
) Make sure that To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I currently have this code but I can't seem to get the scoring correctly. I couldn't find any examples online of anyone who used the semantic_hybrid_score_threshold so I'm not sure if my syntax is correct or not.
Beta Was this translation helpful? Give feedback.
All reactions