langchain/libs/community/tests/unit_tests/retrievers
Vishnu Nandakumar e271965d1e
community: retrievers: added capability for using Product Quantization as one of the retriever. (#22424)
- [ ] **Community**: "Retrievers: Product Quantization"
- [X] This PR adds Product Quantization feature to the retrievers to the
Langchain Community. PQ is one of the fastest retrieval methods if the
embeddings are rich enough in context due to the concepts of
quantization and representation through centroids
    - **Description:** Adding PQ as one of the retrievers
    - **Dependencies:** using the package nanopq for this PR
    - **Twitter handle:** vishnunkumar_


- [X] **Add tests and docs**: If you're adding a new integration, please
include
   - [X] Added unit tests for the same in the retrievers.
   - [] Will add an example notebook subsequently

- [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/ -
done the same

---------

Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
Co-authored-by: Bagatur <baskaryan@gmail.com>
Co-authored-by: Chester Curme <chester.curme@gmail.com>
2024-07-24 13:52:15 +00:00
..
document_compressors infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_base.py patch: deprecate (a)get_relevant_documents (#20477) 2024-04-22 11:14:53 -04:00
test_bedrock.py community[patch]: upgrade to recent version of mypy (#21616) 2024-05-13 14:55:07 -04:00
test_bm25.py Community[Patch] Remove docs form bm25 repr (#16110) 2024-01-17 00:00:55 -08:00
test_ensemble.py langchain[patch],community[patch]: Move unit tests that depend on community to community (#21685) 2024-05-16 17:24:27 -04:00
test_imports.py community: retrievers: added capability for using Product Quantization as one of the retriever. (#22424) 2024-07-24 13:52:15 +00:00
test_knn.py community[patch]: Added missing from_documents method to KNNRetriever. (#18411) 2024-03-28 23:18:50 +00:00
test_nanopq.py community: retrievers: added capability for using Product Quantization as one of the retriever. (#22424) 2024-07-24 13:52:15 +00:00
test_remote_retriever.py patch: deprecate (a)get_relevant_documents (#20477) 2024-04-22 11:14:53 -04:00
test_svm.py patch: deprecate (a)get_relevant_documents (#20477) 2024-04-22 11:14:53 -04:00
test_tfidf.py community[patch]: Patch tdidf retriever (CVE-2024-2057) (#18695) 2024-03-06 15:49:04 -05:00
test_web_research.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_you.py patch: deprecate (a)get_relevant_documents (#20477) 2024-04-22 11:14:53 -04:00