TRON Support AI

Project Name: Tron Support AI
Project Track: Web3
Team Name: Tron Support AI
Team Member(s): nerd (only one member)
DevPost Project Link: N/A (need a video)
Project Goal: Make learning TRON accessible to new developers
Project Value: With BlockChain being hard for new developers, having an interactive expert to help you to navigate and debug smart contract errors helps stimulate innovation.
Project Info:
tronai.pdf (408.1 KB)

You may upload this part later but it is advisable to upload it ASAP so the community can learn about your project early]
Project Website: N/A
Project Test Instructions: You can clone and run the project from my GitHub if you add an .env file with the discord bot token, openai token, and pinecone token.
Project Details: A RAG system that lets AI automatically respond to complicated TRON questions
Smart Contract links: N/A
Project Milestones:
Users can currently ask questions to the system, and it will respond after thinking for ~10-20 seconds.

TRON Discord Bot

The Community

TRON has one of the largest Discord communities I’ve ever seen. It is so big, that they have a completely separate discord community specifically for developers to get help. Blockchain technologies have always been hard to access for newbies, so we wanted to leverage the power of community and AI to make onboarding new talent easier.

The Project

We are a Discord bot that hooks into the TRON developer documentation, and uses that information to respond to user’s questions automatically. By leveraging the newest models, we are able to better “stuff” the context window with as much TRON information as possible.

The Tech

In general, we used:

  • langchain
  • discord.py
  • openai
  • pinecone

Embeddings

We take a look at all the dev docs, and split it into “useful chunks”. We take those chunks, and turn them into a vectors. We store these vectors into a vector database (Pinecone, in this case), which allows us to query them later.

Now when a user sends a message, we can also turn that message into a vector. We can then pull all similar vectors from the vector database, and inject them into the prompt!

Natural Language Processing (NLP)

Once we have all the vectors and their messages, we just have to construct a clever prompt that is really good at answering specific questions. This is just some basic prompt engineering, but then we inject all the embedding data so that we can learn about the newest TRON information live, then share that information with the world.

Optimizations

Often, users will ask “bad questions” (e.g. questions that don’t capture the full context of their problem). When this happens, the performance of embeddings tends to drop off. We introduce a new solution… We have a second agent to look at the user’s question, and “hallucinate” user intention. We use these “guesses” as well as the original message to find our embeddings.

4 Likes

Welcome to session 7 of hackathon, when am done reading your project I will definitely have queries for you.

Welcome to the Hackathon of season 7, I am ok after I read your project, please tell me how are you going to preventing the misuse of the bot, thank you

Welcome to Hackathon Season 7, after a careful read I see this aims to enhance the onboarding experience for new developers in the TRON ecosystem by creating an interactive Discord bot that leverages AI to answer complex questions related to TRON development.
Moving forward, what strategies will you implement to drive user adoption and encourage engagement with the bot?

Hello Team Tron support AI, welcome to the session.
Just a few scan into your project, I recalled we had similar project like this TronDevGPT - your friendly neighbourhood AI
You can check out.

1 Like

Welcome to season 7,
Idea is good how blockchain integrated with your idea ?

Welcome to hackaTron S7. What I will like to know about your project is the target audience. Is it for people who doesn’t have any prior knowledge on coding, or people with basic coding knowledge but need help in few areas to continue their project development?

1 Like

Welcome to hackathon S7 Sir, I like what you are building.

[quote=“nerd, post:1, topic:27717”]
TRON has one of the largest Discord communities I’ve ever seen

[/quote] Please share the official Tron discord link

Please will this project only be for discord users? because newbies not familiar with discord.
And again how will your platform provide latest developments on Tron example Staking, Nft, and announcement.
Thank you

1 Like