langchain/libs/partners/mongodb/tests/integration_tests
Jib f8078e41e5
mongodb[patch]: Added scoring threshold to caching (#19286)
## Description
Semantic Cache can retrieve noisy information if the score threshold for
the value is too low. Adding the ability to set a `score_threshold` on
cache construction can allow for less noisy scores to appear.


- [x] **Add tests and docs**
  1. Added tests that confirm the `score_threshold` query is valid.


- [x] **Lint and test**: Run `make format`, `make lint` and `make test`
from the root of the package(s) you've modified. See contribution
guidelines for more: https://python.langchain.com/docs/contributing/

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
2024-03-19 11:30:02 -07:00
..
__init__.py
test_cache.py mongodb[patch]: Added scoring threshold to caching (#19286) 2024-03-19 11:30:02 -07:00
test_chat_message_histories.py langchain-mongodb: Standardize mongodb collection/index names in tests (#18755) 2024-03-07 17:16:04 -05:00
test_compile.py
test_vectorstores.py mongodb[patch]: Remove embedding retrieval from mongodb payload (#19035) 2024-03-18 19:43:50 +00:00