Closed aaroosh-07 closed 2 months ago
This PR creates API endpoint using FastAPI to prompt LLM models. the endpoint is /prompt and following json data needs to be sent as request body.
/prompt
{ "context": text "question": text "model": text }
model can have these 4 possible vaules distilbert-base-cased roberta-base-squad2 google-bert electra_large_discriminator
distilbert-base-cased
roberta-base-squad2
google-bert
electra_large_discriminator
This PR creates API endpoint using FastAPI to prompt LLM models. the endpoint is
/prompt
and following json data needs to be sent as request body.model can have these 4 possible vaules
distilbert-base-cased
roberta-base-squad2
google-bert
electra_large_discriminator