langchain/tests/integration_tests
Mike Salvatore d0c7f7c317
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 10:11:49 -06:00
..
agent Add Multi-CSV/DF support in CSV and DataFrame Toolkits (#5009) 2023-05-25 14:23:11 -07:00
cache feat: add Momento as a standard cache and chat message history provider (#5221) 2023-05-25 19:13:21 -07:00
callbacks split up batch llm calls into separate runs (#5804) 2023-06-24 21:03:31 -07:00
chains Rm retriever kwargs (#7013) 2023-07-02 08:22:24 -06:00
chat_models Harrison/split schema dir (#7025) 2023-07-01 13:39:19 -04:00
document_loaders feat: enable UnstructuredEmailLoader to process attachments (#6977) 2023-07-01 06:09:26 -07:00
embeddings Harrison/octo ml (#6897) 2023-06-28 23:04:11 -07:00
examples feat: enable UnstructuredEmailLoader to process attachments (#6977) 2023-07-01 06:09:26 -07:00
llms Harrison/octo ml (#6897) 2023-06-28 23:04:11 -07:00
memory Harrison/split schema dir (#7025) 2023-07-01 13:39:19 -04:00
prompts Cleanup integration test dir (#3308) 2023-04-21 09:44:09 -07:00
retrievers Rm retriever kwargs (#7013) 2023-07-02 08:22:24 -06:00
utilities Support params on GoogleSearchApiWrapper (#6810) (#7014) 2023-07-02 01:18:38 -06:00
vectorstores Remove None default value for FAISS relevance_score_fn (#7085) 2023-07-03 10:11:49 -06:00
__init__.py initial commit 2022-10-24 14:51:15 -07:00
.env.example adding MongoDBAtlasVectorSearch (#5338) 2023-05-30 07:59:01 -07:00
conftest.py feat: improve pinecone tests (#2806) 2023-04-13 21:49:31 -07:00
test_document_transformers.py Contextual compression retriever (#2915) 2023-04-20 17:01:14 -07:00
test_kuzu.py Add KuzuQAChain (#6454) 2023-06-20 22:07:00 -07:00
test_nebulagraph.py Harrison/nebula graph (#5865) 2023-06-07 21:56:43 -07:00
test_nlp_text_splitters.py OptimizedPrompt -- k-shot example choice backed by semantic search (#91) 2022-11-09 21:15:42 -08:00
test_pdf_pagesplitter.py cleanup: unify 3 different pdf loaders, rename PagedPDFSplitter (#1615) 2023-03-13 23:06:50 -07:00
test_schema.py Add 'get_token_ids' method (#4784) 2023-05-22 13:17:26 +00:00
test_text_splitter.py chore: spedd up integration test by using smaller model (#6044) 2023-06-12 13:27:10 -07:00