Visual Document Retrieval
Transformers
Safetensors
sentence-transformers
multilingual
qwen3_5
feature-extraction
text
image
multimodal-embedding
vidore
colbert
colqwen3_5
multilingual-embedding
multi-vector
custom_code
Instructions to use webAI-Official/webAI-ColVec1.1-8b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use webAI-Official/webAI-ColVec1.1-8b with Transformers:
# Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("webAI-Official/webAI-ColVec1.1-8b", trust_remote_code=True) model = AutoModel.from_pretrained("webAI-Official/webAI-ColVec1.1-8b", trust_remote_code=True, device_map="auto") - sentence-transformers
How to use webAI-Official/webAI-ColVec1.1-8b with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("webAI-Official/webAI-ColVec1.1-8b", trust_remote_code=True) sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
| {%- for message in messages -%} | |
| {%- set ns = namespace(has_image=false, text='') -%} | |
| {%- if message['content'] is string -%} | |
| {%- set ns.text = message['content'] -%} | |
| {%- else -%} | |
| {%- for item in message['content'] -%} | |
| {%- if 'image' in item or 'image_url' in item or item.type == 'image' -%} | |
| {%- set ns.has_image = true -%} | |
| {%- elif 'text' in item -%} | |
| {%- set ns.text = ns.text + item.text -%} | |
| {%- endif -%} | |
| {%- endfor -%} | |
| {%- endif -%} | |
| {%- if ns.has_image -%} | |
| {{- '<|im_start|>user\n<|vision_start|><|image_pad|><|vision_end|>Describe the image.<|im_end|><|endoftext|>' -}} | |
| {%- else -%} | |
| {{- '<|im_start|>user\nQuery: ' + ns.text + '<|endoftext|>' * 10 + '<|im_end|><|endoftext|>' -}} | |
| {%- endif -%} | |
| {%- endfor -%} | |