Gonza

Gonza

Custom code helper tool with local models?

Hi! I’m thinking of building a tool to help me code using LLMs. It’s not a novel idea, but none of the implementations I tried to date ever really worked, and I saw that Elixir is a nice tool for implementing “A.I.” inference with nx.

The idea is pretty basic in itself, but I’m asking here how feasible it is to implement it with current technology as I am pretty inexperienced yet with Elixir & friends.

First of all, my program should build a comprehensive DB of my current code base, and keep it up-to-date, including ideally a model of my database (I’m using MongoDB). I’m no expert but I’m guessing this is what vector DBs are for.

Also, I should have deployed locally at least one pre-trained model, which is my next question. Which one is better suited for the task, preferably on consumer hardware? I have GPT and Bard apikeys as well, but I’m not sure how easily can they be integrated with a custom repository of knowledge. In future versions, a good idea would be to implement agents that can bounce ideas off of each other and help polish the final piece of code, including the user as one of the participants in the ‘conversation’. There can be coders, testers, linters, and agents for verifying best practices, documenting, and so on.

Lastly, there should be some sort of interface, for which I’m leaning toward Phoenix (don’t think there is any real choice here). The most basic UI should be a chatbot, but ideally, my program should be able to suggest changes, let me edit them, and write them to disk (future work)


So, my question is mainly the following: do you think this project can be done with the current state of Elixir’s ecosystem? I so, is my plan/roadmap reasonable, or would you change something?

Most Liked Responses

Gonza

Gonza

I’m leaving here a skeleton repository so as to be building in public and to welcome any contributors to the project, be it by participating in discussions, submitting code, reporting issues, etc.
I’ll be updating it during the week with proposals and maybe some code if I’m lucky:

https://github.com/M-Gonzalo/Etaoin-Shrdlu

Where Next?

Popular in Questions Top

sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
Tee
can someone please explain to me how Enum.reduce works with maps
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lists...
New
nobody
How to bind a phoenix app to a specific ip address? could not find anything about that, nowhere, unfortunately, but for me this is quite...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New

Other popular topics Top

marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
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
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New

We're in Beta

About us Mission Statement