acrolink

acrolink

Libraries for AI driven chat-bot?

Hello,

I am looking for Elixir libraries to build a chat / recommendations bot. It should be AI driven (Open AI or Gemini) accelerated by data (about locations and businesses) stored in RDBMS.

Thank you.

Marked As Solved

martosaur

martosaur

I’m aware of 3 libraries at the moment:

  • langchain | Hex - I didn’t try this one myself, but looking at the docs it has a lot of stuff that’ll help with tools calls. That’d be my first choice.
  • instructor | Hex - This one is mostly for structured outputs, but can be useful nonetheless. Make sure to check out the main branch, as all the juicy recent changes haven’t been published yet
  • instructor_lite | Hex my fork of instructor. I’d say if you find yourself struggling to write custom stuff with instructor, take a look at this one. It’s simpler and easier to embed into your own code.

Also Liked

arcyfelix

arcyfelix

I just Googled Elixir chatgpt and got this:

Seems like it suits your requirements.

al2o3cr

al2o3cr

Check out instructor_ex - even if it doesn’t do quite what you want it should provide some inspiration / examples:

acrolink

acrolink

@martosaur @al2o3cr @arcyfelix

Thanks for sharing, all helpful. I will tell you more about our needs so you can hopefully help me to choose better between the different libraries.

We are building a chat-bot which should help people choose a restaurant to dine at or to order food delivery. Users will be authenticated and data from previous chats will be stored in RDBMS in order to fine-tune future suggestions by the chat-bot.

The chat session will have stages:

A. Understand if users want to dine at a restaurant or want to order delivery.
B. Understand cuisine type / preference of user.
C. Provider suggestions based on AI or/and data about restaurants we have at RDBMS.
D. Help user make an order online using 3rd party API’s

What do you think, which library can suit these needs better? Thank you.

waseigo

waseigo

In case you are using self-hosted LLMs with ollama, I’ve written this API wrapper: ollamex | Hex

Where Next?

Popular in Questions Top

sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
pgiesin
This should be a simple problem but I just can’t seem to figure it out. I have a standalone Elixir app that won’t find the database. Dep...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
lk-geimfari
What is most correct way to open, read and parse JSON file with poison? For example if we have example.json file in root of some projec...
New
LegitStack
I’m trying to make a websocket server in Phoenix or raw Elixir. I heard about gun, I think I could use cowboy, but since I’m not that sma...
New
chewm
Hi guys, nice to meet you to the whole forum, I’m new here, I’m trying to configure visual studio code for elixir, right now the intellis...
New
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
Exadra37
Sometimes I want to check if the input into a function is not a blank string. My first approach: defmodule Example do def do_stuff(s...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New

Other popular topics Top

peerreynders
Manning 2016 Halloween weekend sale via Deal of the Day Friday, October 28 - Half off all MEAPs - code WM102816LT Saturday, October 29 ...
326 29600 154
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
sergio
I couldn’t find any guides that worked well with Phoenix 1.6.0 and esbuild. I hope this helps people test the waters and eases you into t...
New
malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 42633 214
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
Nvim
Elixir appears to be a superior language to Python. I don’t see any advantage of Python over Elixir. Are there any?
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New

We're in Beta

About us Mission Statement