ChatCX Docs
  • πŸ“Œ Introduction
  • πŸ“ API Documentation / Endpoints Overview
    • πŸ”‘ Authentication
    • πŸ“ Submit a Query
    • ⏳ Check Job Status
    • πŸ›  Integration Guide
    • πŸ— Error Handling
    • πŸ”‘ Manage API Keys (Admin Only)
    • πŸ›  Admin API Endpoints
  • πŸ’‘ How ChatCX Works
  • πŸš€ ChatCX Chat
  • 🦜 Crypto Parrot - AI-Powered Web3 News Feed
  • πŸ“– What Can ChatCX Answer?
  • πŸš€ What Are the Possibilities with ChatCX?
  • πŸ€– What Else Can You Do with ChatCX?
Powered by GitBook
On this page
  • πŸ“Œ High-Level Flow Diagram
  • πŸ“Œ Step 1: Data Collection, Preprocessing & Storage πŸ“Š
  • πŸ“Œ Step 2: Query Processing & Retrieval πŸ”
  • πŸ“Œ Step 3: Response Generation using DeepSeek R1 🧠
  • πŸ“Œ Step 4: Delivering the Response via AltLayer Autonome
  • Why ChatCX is Built This Way

πŸ’‘ How ChatCX Works

PreviousπŸ›  Admin API EndpointsNextπŸš€ ChatCX Chat

Last updated 4 months ago

ChatCX is a cutting-edge AI agent that retrieves, processes, and generates intelligent Web3 insights using retrieval-augmented generation (RAG) and reinforcement learning (RL).

πŸš€ Key Technologies Used:

βœ… Hyperbolic APIs β†’ Provides access to DeepSeek R1 for response generation βœ… AltLayer Autonome β†’ Hosts the ChatCX agent for scalable, reliable AI execution βœ… pgvector (PostgreSQL) β†’ Stores vectorized embeddings for fast semantic search βœ… OpenAI Embeddings β†’ Converts user queries & tweets into searchable vector data


πŸ“Œ High-Level Flow Diagram


πŸ“Œ Step 1: Data Collection, Preprocessing & Storage πŸ“Š

A cron job performs:

  1. Fetching fresh tweets from a curated list of Web3 Twitter/X accounts.

  2. Preprocessing, filtering and customizing to remove spam, extract useful information and convert into a meaningful schema for LLMs.

  3. Vectorizing the cleaned tweets custom schema using OpenAI Embeddings.

  4. Storing vectorized embeddings in pgvector (PostgreSQL).

This allows ChatCX to quickly retrieve relevant discussions when answering user queries.


πŸ“Œ Step 2: Query Processing & Retrieval πŸ”

When a user sends a query, ChatCX:

  1. Assigns a unique chatID and starts processing.

  2. Vectorizes the user’s query using OpenAI Embeddings.

  3. Queries the pgvector database for the most relevant discussions & insights.

  4. Retrieves the top matches (can include recent tweets, past responses, and summaries).


πŸ“Œ Step 3: Response Generation using DeepSeek R1 🧠

Once the relevant data is retrieved, ChatCX:

  1. Sends it to DeepSeek R1 via Hyperbolic APIs.

  2. Includes:

    • System prompt β†’ Fine-tuned to format responses accurately.

    • Temperature settings β†’ Adjusts randomness vs. precision.

    • Previously generated insights β†’ Ensures context-awareness.

  3. DeepSeek R1 generates an intelligent response.

  4. Stores the response under the assigned chatID.


πŸ“Œ Step 4: Delivering the Response via AltLayer Autonome

  1. The generated response is stored under the chatID.

  2. AltLayer Autonome hosts the ChatCX agent, ensuring:

    • Scalability πŸš€ β†’ Handles large traffic efficiently.

    • Resilience πŸ”„ β†’ Ensures uninterrupted service.

    • Secure execution β†’ Unbiased generation.

  3. The response can be queried using the chatID.


Why ChatCX is Built This Way

Instead of using a basic keyword search or simple chatbot responses, ChatCX leverages state-of-the-art AI techniques to ensure accurate, real-time, and context-aware insights for Web3 users. Here’s why:

βœ… Retrieval-Augmented Generation (RAG) for Precision β†’ Unlike traditional AI agents, ChatCX doesn’t hallucinate responses. β†’ It retrieves relevant, real-world data before generating an answer.

βœ… Reinforcement Learning (RL) for self awareness β†’ ChatCX learns from it's previous responses. β†’ It queries for previous generations before generating a new answer.

βœ… Latest Web3 Narratives in Real Time β†’ Crypto narratives evolve fastβ€”ChatCX ensures you're always up-to-date. β†’ The bot continuously fetches fresh discussions from Twitter/X.

βœ… AI-Enhanced Summarization Using DeepSeek R1 β†’ Instead of overwhelming users with raw data, ChatCX generates concise, meaningful insights.

βœ… Vector Search for High-Speed, Context-Aware Responses β†’ Instead of scanning thousands of tweets manually, ChatCX uses pgvector for instant lookups.

βœ… Scalable, Secure & Fault-Tolerant Deployment on AltLayer Autonome β†’ ChatCX runs entirely on AltLayer Autonome, ensuring no downtime, secure execution using TEE, fast processing, and smooth performance.