mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 11:39:18 +00:00
community[minor]: add DashScope Rerank (#22403)
**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>
This commit is contained in:
@@ -6,6 +6,7 @@ EXPECTED_ALL = [
|
||||
"JinaRerank",
|
||||
"RankLLMRerank",
|
||||
"FlashrankRerank",
|
||||
"DashScopeRerank",
|
||||
]
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user