How is the LLM scene with Elixir/Phoenix?

What sort of libraries are available to integrate LLMs into your Phoenix Web Framework applications? e.g. Mistral, since these guys have available these endpoints, I was thinking to just consume those within the app. But I rather post my question, I know one or two things of LangChain, but there is only support for Python and JavaScript.

Thanks!

Is this something what you are looking for? https://www.youtube.com/watch?v=PSrzruaby1M

There seem to be a number of libraries. I haven’t explored them in depth but here’s a sampling:

Depends on your needs. Some advocate for just using Req and a GenServer.

6 Likes

100% reqllm best option imo.

Simply because it is dead simple to alter yourself.

3 Likes

Each of these libraries tackles the problem in slightly different ways.

I’m the author of ReqLLM, so I’m a bit biased - but I built it because the more advanced use cases I started building with LLMs, I needed lower-level control.

That said, Langchain is focused on higher level use cases such as chaining - which ReqLLM will not be implementing.

3 Likes

I started rolling my own. But reqllm is exactly what I I was shooting for but way better in every way, so I guess I’ll just start using that instead.

3 Likes