Repositorium-ch / embedding-service

MIT License
2 stars 1 forks source link

Add context length warning #1

Closed colin-r-carter closed 1 month ago

colin-r-carter commented 7 months ago

Add a warning if context length is exceeded.

colin-r-carter commented 1 month ago

Added truncation and info, if input text exceeded token length of selected model to the API response. Should be transparent now, when not all input-text was used to calculate the embedding.