CoolFace
Apppublic

reddwarf03/archethic-sdk-assistant

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes
App README

๐Ÿค– Archethic SDK AI Assistant

Welcome to the AI assistant for Archethic blockchain development!

Goal: This chatbot is designed to answer your questions about the Archethic SDKs (JavaScript and AssemblyScript) and related documentation. It can help you understand concepts, find functions, and even generate code examples.

How to use:

  • โ€”Ask your questions in natural language in the text box below.
  • โ€”Example questions:
  • โ€”"How do I send UCO tokens using the JS SDK?"
  • โ€”"Show me a simple AssemblyScript contract example for storing a value."
  • โ€”"What is the function to retrieve an account balance in JS?"
  • โ€”"How to deploy a WASM contract?"

Technology:

  • โ€”This chatbot uses a RAG (Retrieval-Augmented Generation) approach.
  • โ€”It searches for relevant information in a vector knowledge base (ChromaDB) built from the SDK source code (libjs, ae-contract-as, ae-contract-test) and documentation (archethic-docs).
  • โ€”An open-source language model (Mistral-7B-Instruct-v0.3) via the Hugging Face Inference API generates answers based on the retrieved information.
  • โ€”The interface is built with Gradio, and the orchestration framework is LlamaIndex.

Important:

  • โ€”Since the language model runs on free CPU infrastructure, responses may take some time to generate. Thank you for your patience!
  • โ€”The AI relies solely on the information provided in the SDKs and documentation at the time of indexing. It may not be aware of the very latest updates not included or may make mistakes.
  • โ€”Always verify the generated code before using it in production.

Useful Links:

Feel free to ask your questions!