Files
langchain/tests/integration_tests
Mike Salvatore 44928014a8 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.
2023-07-03 16:06:23 -07:00
..
2023-07-03 16:06:23 -07:00
2023-07-03 16:05:41 -07:00
2023-07-03 16:05:41 -07:00
2023-07-03 16:06:23 -07:00
2023-07-03 16:06:23 -07:00
2023-06-20 22:07:00 -07:00