RAG and Embeddings
Build retrieval-augmented generation (RAG) pipelines and vector search systems with Parasail embeddings.
Embedding models
Model
HuggingFace ID
Notes
Generate embeddings
Serverless (low volume)
from openai import OpenAI
client = OpenAI(
base_url="https://api.parasail.io/v1",
api_key="<PARASAIL_API_KEY>"
)
response = client.embeddings.create(
model="parasail-ai/GritLM-7B-vllm",
input="Parasail provides affordable cloud GPUs for AI inference.",
encoding_format="base64"
)
print(response.data[0].embedding[:5])Batch (large scale—50% off)
Relevant guides
API reference
Next steps
Last updated