mirror of https://github.com/hwchase17/langchain
Remove `None` default value for FAISS relevance_score_fn (#7085)
## Description The type hint for `FAISS.__init__()`'s `relevance_score_fn` parameter allowed the parameter to be set to `None`. However, a default function is provided by the constructor. This led to an unnecessary check in the code, as well as a test to verify this check. **ASSUMPTION**: There's no reason to ever set `relevance_score_fn` to `None`. This PR changes the type hint and removes the unnecessary code.pull/7234/head
parent
719316e84c
commit
d0c7f7c317
Loading…
Reference in New Issue