mirror of
https://github.com/hwchase17/langchain.git
synced 2026-02-21 06:33:41 +00:00
39 lines
984 B
Plaintext
39 lines
984 B
Plaintext
# iFlytek
|
|
|
|
>[iFlytek](https://www.iflytek.com) is a Chinese information technology company
|
|
> established in 1999. It creates voice recognition software and
|
|
> voice-based internet/mobile products covering education, communication,
|
|
> music, intelligent toys industries.
|
|
|
|
|
|
## Installation and Setup
|
|
|
|
- Get `SparkLLM` app_id, api_key and api_secret from [iFlyTek SparkLLM API Console](https://console.xfyun.cn/services/bm3) (for more info, see [iFlyTek SparkLLM Intro](https://xinghuo.xfyun.cn/sparkapi)).
|
|
- Install the Python package (not for the embedding models):
|
|
|
|
```bash
|
|
pip install websocket-client
|
|
```
|
|
|
|
## LLMs
|
|
|
|
See a [usage example](/docs/integrations/llms/sparkllm).
|
|
|
|
```python
|
|
from langchain_community.llms import SparkLLM
|
|
```
|
|
|
|
## Chat models
|
|
|
|
See a [usage example](/docs/integrations/chat/sparkllm).
|
|
|
|
```python
|
|
from langchain_community.chat_models import ChatSparkLLM
|
|
```
|
|
|
|
## Embedding models
|
|
|
|
```python
|
|
from langchain_community.embeddings import SparkLLMTextEmbeddings
|
|
```
|