Elasticsearch GENAI and search-ui

Hi. i have setup a web crawler and added in the pipeline ingest a process to for a model from hugging face. long story short while in playground the chat works fine. now i would like to take this to the next step as a simple ui (like search ui) to send questions just like in the playground. i cant seem to find any ready for use template or example for me to use. i prefer in react/js/c# i only see a simple python example. please help

Hi @elitzur_e

Did you look at Search Labs?

Perhaps this One?

Or Perhaps This

thanks this Build a search experience with the Search Application client | Elasticsearch Guide [8.16] | Elastic how ever there dosnt seem a way to use this and specify the LLM (ex. gpt4o)

the rest also dont help since:
i cannot run python on my backend. only client (js,react etc) and if i must use backend code then c#.
and those examples seem to implement langchain. i already am using a model that is loaded to elasticsearch cloud. and is set as an ingest pipeline. thanks :slight_smile:

anyone?

We dont provide an API that you can embed the playground experience in your app.

The only thing I would suggest is click "view code" in playground and create an equivalent for c#. Then you could use something like Vercel AI (Deploy AI at the speed of frontend) to simplify the frontend development between the API and clientside.

Joe