The Embeddings API (POST /v1/embeddings) converts text into high-dimensional vectors. Use them to build your own semantic search, clustering pipelines, or similarity scoring outside of PrivateGPT’s built-in retrieval.
Response:
Pass an array of strings to embed multiple texts in one request. The response preserves input order — data[i] corresponds to input[i]:
The model field must match the name of an embedding model registered in your PrivateGPT instance. Use GET /v1/models to list available models and their types.
For consistent similarity results, always use the same model to embed both your corpus and your queries. Mixing models produces incomparable vectors.