You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/partners/mongodb/tests/unit_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>
4 months ago
..
__init__.py mongodb[minor]: MongoDB Partner Package -- Porting MongoDBAtlasVectorSearch (#17652) 5 months ago
test_cache.py mongodb[patch]: Added scoring threshold to caching (#19286) 4 months ago
test_chat_message_histories.py langchain-mongodb: add unit tests for MongoDBChatMessageHistory (#18599) 4 months ago
test_imports.py mongodb[patch]: include LLM caches in toplevel library import (#18601) 4 months ago
test_vectorstores.py mongodb[minor]: Add MongoDB LLM Cache (#17470) 4 months ago