Skip to content

appwrite/embedding

embedding

A small Rust HTTP service for generating vector embeddings.

Quick start

docker compose up --build

First request triggers the model download into ./models (bind-mounted into the container); subsequent restarts reuse it.

curl -X POST http://localhost:3000/embed \
  -H 'content-type: application/json' \
  -d '{"texts":["hello world","another piece of text"]}'

API

POST /embed

Request:

{ "texts": ["string", "..."] }

Response:

{
  "model": "NomicEmbedTextV15",
  "embeddings": [[0.012, -0.034, ...], ...],
  "tokens": 17
}

Errors:

  • 400 Bad Requesttexts is empty.
  • 500 Internal Server Error — embedding or tokenizer failure (message in error field).

About

Simple and easy to use embedding services

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors