mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
62f13f95e4
**Description:** this PR adds DashScope Rerank capability to Langchain, you can find DashScope Rerank API from [here](https://help.aliyun.com/document_detail/2780058.html?spm=a2c4g.2780059.0.0.6d995024FlrJ12) & [here](https://help.aliyun.com/document_detail/2780059.html?spm=a2c4g.2780058.0.0.63f75024cr11N9). [DashScope](https://dashscope.aliyun.com/) is the generative AI service from Alibaba Cloud (Aliyun). You can create DashScope API key from [here](https://bailian.console.aliyun.com/?apiKey=1#/api-key). **Dependencies:** DashScopeRerank depends on `dashscope` python package. **Twitter handle:** my twitter/x account is https://x.com/LastMonopoly and I'd like a mention, thanks you! **Tests and docs** 1. integration test: `test_dashscope_rerank.py` 2. example notebook: `dashscope_rerank.ipynb` **Lint and test**: I have run `make format`, `make lint` and `make test` from the root of the package I've modified. --------- Co-authored-by: Bagatur <baskaryan@gmail.com> Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com> |
||
---|---|---|
.. | ||
test_imports.py |