Skip to content
Back to skills

067 Configure 5ca2e2f6

ASecurity

Configure embedding models for vector search.

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 31, 2026
ai-agentspythonbashapidocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 31, 2026

npx -y skills add tools-only/X-Skills --skill 067-configure_5ca2e2f6 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 067 Configure 5ca2e2f6?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 067 Configure 5ca2e2f6
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-067-configure-5ca2e2f6/badge)](https://www.skillsdirectory.com/skills/tools-only-067-configure-5ca2e2f6)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Embedding Configuration

Configure embedding models for vector search.

## Volcengine Doubao (Recommended)

```json
{
  "embedding": {
    "dense": {
      "provider": "volcengine",
      "api_key": "your-volcengine-api-key",
      "model": "doubao-embedding-vision-250615",
      "dimension": 1024,
      "input": "multimodal"
    }
  }
}
```

### Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `provider` | str | `"volcengine"` |
| `api_key` | str | Volcengine API key |
| `model` | str | Model name |
| `dimension` | int | Vector dimension |
| `input` | str | Input type: `"text"` or `"multimodal"` |

### Available Models

| Model | Dimension | Input Type | Notes |
|-------|-----------|------------|-------|
| `doubao-embedding-vision-250615` | 1024 | multimodal | Recommended |
| `doubao-embedding-250615` | 1024 | text | Text only |

## Getting Volcengine API Key

1. Visit [Volcengine Console](https://console.volcengine.com/)
2. Navigate to **Ark** service
3. Create an API key
4. Copy the key to your configuration

## Environment Variable

```bash
export VOLCENGINE_API_KEY="your-api-key"
```

Then in config:

```json
{
  "embedding": {
    "dense": {
      "provider": "volcengine",
      "model": "doubao-embedding-vision-250615",
      "dimension": 1024
    }
  }
}
```

## Programmatic Configuration

```python
from openviking.utils.config import EmbeddingConfig, DenseEmbeddingConfig

embedding_config = EmbeddingConfig(
    dense=DenseEmbeddingConfig(
        provider="volcengine",
        api_key="your-api-key",
        model="doubao-embedding-vision-250615",
        dimension=1024,
        input="multimodal"
    )
)
```

## Multimodal Support

With `input: "multimodal"`, OpenViking can embed:

- Text content
- Images (PNG, JPG, etc.)
- Mixed text and images

```python
# Multimodal embedding is used automatically
await client.add_resource("image.png")  # Image embedded
await client.add_resource("doc.pdf")    # Text + images embedded
```

## Troubleshooting

### API Key Error

```
Error: Invalid API key
```

Check your API key is correct and has embedding permissions.

### Dimension Mismatch

```
Error: Vector dimension mismatch
```

Ensure the `dimension` in config matches the model's output dimension.

### Rate Limiting

```
Error: Rate limit exceeded
```

Volcengine has rate limits. Consider:
- Batch processing with delays
- Upgrading your plan

## Related Documentation

- [Configuration](./configuration.md) - Main configuration
- [LLM Configuration](./llm.md) - LLM setup
- [Resources](../api/resources.md) - Adding resources

Files in this skill

  • README.md788 B
  • skill.md2.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.