Inspiration
The initial inspiration was based on the question of whether an AI could run for political office. Electra tries to imagine what such an AI system would look like. The goal later became a decision support system for political issues.
I also found Theta Network's deployment of Open Source AI models to be a very interesting approach. I noticed that Llama 3.1 405b is now available, which is great news.
What it does
Electra has a batch which:
- Reads in news articles (mainly headlines) from newsapi.org.
- Generates issues based on the news.
- Generates proposals for the issues.
- Sends proposals and votes on them to the blockchain for transparency.
The UI features:
- Browsing the generated issues and proposals.
- Voting on proposals.
- A knowledge base which users can use to detail their values, goals and interests.
- A chat with Electra, which utilizes as much information in the system as possible.
How we built it
Tech stack:
- Web framework: Next.js + TypeScript
- Database: PostgreSQL
- Blockchain: Ethereum compatible (e.g. Theta blockchain)
- AI: Llama 3 8b (available on EdgeCloud), Google Generative AI API (for embeddings)
Two libraries, that I wrote myself, are utilized:
- Serene Core: basics for the web app.
- Serene AI: includes support for Open AI, which Llama 3 is compatible with.
Challenges we ran into
- I couldn't get a VM for Llama 3.1 on EdgeCloud. I may have tried too late, and now can't get a Llama 3 VM either.
- I couldn't connect to the Theta Testnet. There was an issue connecting to my account, but there was no error message that I could locate.
For this reason the demo uses compatible tech instead:
- Blockchain: Hardhat (development blockchain).
- A Llama 3 7B API (the same LLM that's available on EdgeCloud).
Accomplishments that we're proud of
- Developing Electra into its current, useful state.
- The future potential of the solution.
What we learned
- This was the first project I built to utilize the blockchain in some way.
- I wrote my first Solidity contract.
- This was the first project where I used semantic search.
- I should have allowed myself more time to testing with the Theta tech stack, instead I focused on developing as many features as I could in my dev environment.
What's next for Electra Theta
- I would like to continue development of Electra, and make the solution more broadly applicable to a range of problems and needs.
Built With
- ai
- blockchain
- nextjs
- postgresql
- typescript
Log in or sign up for Devpost to join the conversation.