CoolFace
Apppublic

Brahim-0/ColQwen2

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes
App README

ColQwen2 Document Retrieval API

A FastAPI-based API for document retrieval using ColQwen2 vision-language model.

Endpoints

  • —GET / - API info
  • —GET /health - Health check
  • —POST /embed/query - Get embeddings for a text query
  • —POST /embed/image - Get embeddings for a document image
  • —POST /score - Compute similarity between query and image

Usage

Get similarity score

bash
curl -X POST "https://brahim-0-colqwen2.hf.space/score" \
  -F "query=What is the total amount?" \
  -F "file=@invoice.png"

Get query embeddings

bash
curl -X POST "https://brahim-0-colqwen2.hf.space/embed/query" \
  -F "query=Find financial documents"