langchain/tests/integration_tests/retrievers/document_compressors
Jason Fan 8effd90be0
Add new types of document transformers (#7379)
- Description: Add two new document transformers that translates
documents into different languages and converts documents into q&a
format to improve vector search results. Uses OpenAI function calling
via the [doctran](https://github.com/psychic-api/doctran/tree/main)
library.
  - Issue: N/A
  - Dependencies: `doctran = "^0.0.5"`
  - Tag maintainer: @rlancemartin @eyurtsev @hwchase17 
  - Twitter handle: @psychicapi or @jfan001

Notes
- Adheres to the `DocumentTransformer` abstraction set by @dev2049 in
#3182
- refactored `EmbeddingsRedundantFilter` to put it in a file under a new
`document_transformers` module
- Added basic docs for `DocumentInterrogator`, `DocumentTransformer` as
well as the existing `EmbeddingsRedundantFilter`

---------

Co-authored-by: Lance Martin <lance@langchain.dev>
Co-authored-by: Bagatur <baskaryan@gmail.com>
2023-07-12 23:53:30 -04:00
..
__init__.py Contextual compression retriever (#2915) 2023-04-20 17:01:14 -07:00
test_base.py Contextual compression retriever (#2915) 2023-04-20 17:01:14 -07:00
test_chain_extract.py [simple] added test case and improve self class return type annotation (#3773) 2023-04-28 21:54:07 -07:00
test_chain_filter.py Contextual compression retriever (#2915) 2023-04-20 17:01:14 -07:00
test_cohere_reranker.py Update Cohere Reranker (#4180) 2023-05-05 09:11:37 -07:00
test_embeddings_filter.py Add new types of document transformers (#7379) 2023-07-12 23:53:30 -04:00