Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/oss/python/integrations/providers/all_providers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2272,6 +2272,14 @@ Browse the complete collection of integrations available for Python. LangChain P
Vector similarity search engine.
</Card>

<Card
title="QwQ (Alibaba Cloud)"
href="/oss/integrations/providers/qwq"
icon="link"
>
QwQ and Qwen models with advanced reasoning capabilities.
</Card>

<Card
title="Ragatouille"
href="/oss/integrations/providers/ragatouille"
Expand Down
1 change: 1 addition & 0 deletions src/oss/python/integrations/providers/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ To see a full list of integrations by component type, refer to the categories in
| [MongoDB](/oss/integrations/providers/mongodb_atlas) | [`langchain-mongodb`](https://reference.langchain.com/python/integrations/langchain_mongodb/) | <a href="https://pypi.org/project/langchain-mongodb/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-mongodb/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a> | <a href="https://pypi.org/project/langchain-mongodb/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-mongodb?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a> | [✅](https://www.npmjs.com/package/@langchain/mongodb) |
| [Deepseek](/oss/integrations/providers/deepseek/) | [`langchain-deepseek`](https://reference.langchain.com/python/integrations/langchain_deepseek/) | <a href="https://pypi.org/project/langchain-deepseek/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-deepseek/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a> | <a href="https://pypi.org/project/langchain-deepseek/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-deepseek?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a> | [✅](https://www.npmjs.com/package/@langchain/deepseek) |
| [Qdrant](/oss/integrations/providers/qdrant/) | [`langchain-qdrant`](https://reference.langchain.com/python/integrations/langchain_qdrant/) | <a href="https://pypi.org/project/langchain-qdrant/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-qdrant/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a> | <a href="https://pypi.org/project/langchain-qdrant/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-qdrant?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a> | [✅](https://www.npmjs.com/package/@langchain/qdrant) |
| [QwQ (Alibaba Cloud)](/oss/integrations/providers/qwq/) | [`langchain-qwq`](https://pypi.org/project/langchain-qwq/) | <a href="https://pypi.org/project/langchain-qwq/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-qwq/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a> | <a href="https://pypi.org/project/langchain-qwq/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-qwq?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a> | ❌ |
| [Milvus](/oss/integrations/providers/milvus/) | [`langchain-milvus`](https://reference.langchain.com/python/integrations/langchain_milvus/) | <a href="https://pypi.org/project/langchain-milvus/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-milvus/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a> | <a href="https://pypi.org/project/langchain-milvus/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-milvus?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a> | [✅](https://www.npmjs.com/package/@langchain/community) |
| [Tavily](/oss/integrations/providers/tavily/) | [`langchain-tavily`](https://pypi.org/project/langchain-tavily/) | <a href="https://pypi.org/project/langchain-tavily/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-tavily/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a> | <a href="https://pypi.org/project/langchain-tavily/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-tavily?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a> | [✅](https://www.npmjs.com/package/@langchain/tavily) |
| [Elasticsearch](/oss/integrations/providers/elasticsearch/) | [`langchain-elasticsearch`](https://reference.langchain.com/python/integrations/langchain_elasticsearch/) | <a href="https://pypi.org/project/langchain-elasticsearch/" target="_blank"><img src="https://static.pepy.tech/badge/langchain-elasticsearch/month" alt="Downloads per month" noZoom class="rounded not-prose" /></a> | <a href="https://pypi.org/project/langchain-elasticsearch/" target="_blank"><img src="https://img.shields.io/pypi/v/langchain-elasticsearch?style=flat-square&label=%20" alt="PyPI - Latest version" noZoom class="rounded not-prose" /></a> | [✅](https://www.npmjs.com/package/@langchain/community) |
Expand Down
69 changes: 69 additions & 0 deletions src/oss/python/integrations/providers/qwq.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
title: QwQ (Alibaba Cloud)
---

[QwQ](https://github.com/yigit353/langchain-qwq) provides seamless integration between LangChain and QwQ models as well as other Qwen series models from Alibaba Cloud BaiLian (via OpenAI-compatible API).

QwQ models feature advanced reasoning capabilities with direct access to internal model reasoning and thinking content.

## Installation and Setup

Install the integration package:

<CodeGroup>
```bash pip
pip install langchain-qwq
```

```bash uv
uv add langchain-qwq
```
</CodeGroup>

Request an API key from [Alibaba Cloud DashScope](https://dashscope.console.aliyun.com/) and set it as an environment variable:

```bash
export DASHSCOPE_API_KEY=your_api_key
```

<Note>
Domestic Chinese users should configure `DASHSCOPE_API_BASE` to the domestic endpoint, as `langchain-qwq` defaults to the international Alibaba Cloud endpoint.
</Note>

## Chat models

The package provides two main chat model classes:

### ChatQwQ

For QwQ and QvQ models with built-in reasoning capabilities:

```python
from langchain_qwq import ChatQwQ

model = ChatQwQ(model="qwq-plus")
response = model.invoke("Hello, how are you?")
```

### ChatQwen

For Qwen3 series models and other Qwen models:

```python
from langchain_qwq import ChatQwen

model = ChatQwen(model="qwen-max")
response = model.invoke("Hello, how are you?")
```

## Features

- **QwQ Model Integration**: Full support for QwQ models with advanced reasoning capabilities
- **Qwen3 Model Integration**: Comprehensive support for Qwen3 series models with hybrid reasoning modes
- **Other Qwen Models**: Compatibility with Qwen-Max, Qwen2.5, and other Qwen series models
- **Vision Models**: Native support for Qwen-VL series vision models
- **Streaming Support**: Synchronous and asynchronous streaming capabilities
- **Tool Calling**: Function calling with support for parallel execution
- **Structured Output**: JSON mode and function calling for structured response generation
- **Reasoning Access**: Direct access to internal model reasoning and thinking content