llama-index embeddings siliconflow integration
Project description
LlamaIndex Embeddings Integration: SiliconFlow
1. Product Introduction
SiliconCloud provides cost-effective GenAI services based on an excellent open-source foundation model. introduction: https://docs.siliconflow.cn/introduction
2. Product features
-
As a one-stop cloud service platform that integrates top large models, SiliconCloud is committed to providing developers with faster, cheaper, more comprehensive, and smoother model APIs.
-
SiliconCloud has been listed on Qwen2.5-72B, DeepSeek-V2.5, Qwen2, InternLM2.5-20B-Chat, BCE, BGE, SenseVoice-Small, Llama-3.1, FLUX.1, DeepSeek-Coder-V2, SD3 Medium, GLM-4-9B-Chat, A variety of open-source large language models, image generation models, code generation models, vector and reordering models, and multimodal large models, including InstantID.
-
Among them, Qwen 2.5 (7B), Llama 3.1 (8B) and other large model APIs are free to use, so that developers and product managers do not need to worry about the computing power costs caused by the R&D stage and large-scale promotion, and realize "token freedom".
-
-
Provide out-of-the-box large model inference acceleration services to bring a more efficient user experience to your GenAI applications.
3. Installation
pip install llama-index-embeddings-siliconflow
4. Usage
import asyncio
import os
from llama_index.embeddings.siliconflow import SiliconFlowEmbedding
embedding = SiliconFlowEmbedding(
model="BAAI/bge-m3",
api_key=os.getenv("SILICONFLOW_API_KEY"),
)
response = embedding.get_query_embedding("...")
print(response)
response = asyncio.run(embedding.aget_query_embedding("..."))
print(response)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_embeddings_siliconflow-0.1.0.tar.gz.
File metadata
- Download URL: llama_index_embeddings_siliconflow-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e110304303445eec3d4070735f372e3f9fcb04ef8e835684c878a4e8ba5a884
|
|
| MD5 |
48ca240ded0ed3934101dbb7e8b3f17e
|
|
| BLAKE2b-256 |
e5a92e618b391dd23448afa2ad247b7bf7ccc213e292fc682a8f2f748e68e87e
|
File details
Details for the file llama_index_embeddings_siliconflow-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_embeddings_siliconflow-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2474fc5d6f17d8b6a148b3c7703a1a55e79b43c324be2ab3f069a90e7cb509a5
|
|
| MD5 |
1ea0e88b28edb31d3a17216f6473c630
|
|
| BLAKE2b-256 |
dfd53d309064876d8ff7b4c9fbdc91cb759728fb359ffe786578b167871390b8
|