CdC-SI / eak-copilot

The official repository of the EAK-Copilot project as part of the Innovation Fellowship 2024.
https://cdc-si.github.io/eak-copilot/
GNU General Public License v3.0
4 stars 0 forks source link

add embedding api endpoint #167

Closed K-Schubert closed 1 month ago

K-Schubert commented 1 month ago

Description

Add an /embed API (POST) endpoint to embed text to vector representation.

We currently use OpenAI's text-embedding-ada-002 with vectors of dimensionality 1536 (This must be configured in the init.sql file when created vector embedding tables).

NOTE: The embedding model can be swapped with a local Open-Source model in the future depending on the available infrastructure.