Skip to content

Mobius3-3/chatQuery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chatQuery: MessariAPI-Powered AI Insight Engine

In the ever-evolving landscape of crypto, staying ahead of industry trends requires more than intuition; it demands a systematic approach to data-driven insights. chatQuery harnesses the power of advanced AI technology, combining an intent engine, Mesaari API calls, and cutting-edge language models (LLMs) from OpenAI and Messari.

It is designed to transform your queries into actionable insights, enabling you to decode the complexities of industry dynamics with ease.

Insight Generation Process

chatQuery is your partner in navigating the complexities of the cryptocurrency ecosystem. Here's how it works:

  • Prompt Building: The intuitive interface allows you to input user queries, which are transformed into structured prompts for the LLMs, ensuring you receive contextually relevant insights.

  • Intent Analysis: The intent engine intelligently parses your queries, extracting essential insights that cater to your specific needs. Whether you're interested in news, market trends, or asset performance, chatQuery has you covered.

  • Data Aggregation: By programmatically accessing Messari’s APIs, chatQuery gathers real-time data on market-moving events, providing a comprehensive view of the factors influencing asset prices.

  • Insight Generation via LLMs: Leveraging the reasoning capabilities of LLMs, chatQuery generates in-depth insights based on the gathered data, empowering you with knowledge and foresight.

Case: How to recognize scams in Solana?

1. chatQuery💡 = AI + MessariAPI

🚀 From questions to crypto clarity — all in seconds.

  • Uses LLM’s reasoning power to turn plain user questions into real-time Messari API requests.

  • Combines the data with LLM to generate sharp, pro-grade insights.

demo

2.1 prompt from question Plant user's question into a target-based prompt that guides the LLM to extract underlying intent which can be mapped to usable Messari APIs for deep crypto intelligence.

2.2 Intent from llm: After asking the LLM, it returns structured JSON can be acted on as an intent whose format is defined as wanted.

  • intent case
<output> { "intent": "Retrieve the latest news articles mentioning scams on Solana.", "type": "News" } </output>

2.3 Api request from Intent:

To build precise API requests from intent:

  1. A predefined API parameter dict is used to map keywords from user intent.

  2. Named Entity Recognition powers the keyword extraction—tokenizing intent and matching keywords in the API parameter dict.

2.4 Cleaning data requested from api

Match real-time news to user intent using:

  1. Asset keyword extracted before filtering only "Solana" related new.

  2. Fuzzy keyword matching limited news topics to scam related.

Reserve sorted dataframe of just what matters.

2.5 Deepthinking result from insight

  1. Call LLM to reason insight data as natural language.

  2. Wrap it all up with "deepthink()" — a final LLM call that blends user query, structured insights, and contextual prompts into a crisp, data-driven answer.

  • final response case
## How to Recognize Scams in Solana

Recognizing scams in the Solana ecosystem—or any cryptocurrency platform—requires vigilance and knowledge of common red flags. Here are some key strategies to identify potential scams:

1. **Research the Project**: Always look for detailed information about the project. Legitimate projects will have clear documentation, a well-defined roadmap, and active community engagement. Check their official website and social media channels.

2. **Assess the Team**: Investigate the team behind the project. Verify their identities and track records in the crypto space. Scams often involve anonymous teams or individuals with no prior experience.

3. **Watch for Unrealistic Promises**: Be wary of projects that promise guaranteed returns or exceptionally high profits with little risk. If it sounds too good to be true, it likely is.

4. **Check for Regulatory Compliance**: Legitimate projects often comply with local regulations and have necessary registrations. Be cautious of projects that operate in a legal gray area.

5. **Community Feedback**: Monitor community discussions on platforms like Reddit, Twitter, or Telegram. If many users express concerns or report issues, it’s a warning sign.

6. **Red Flags in Tokenomics**: Analyze the token distribution and utility. A disproportionate amount of tokens allocated to a small number of wallets can indicate a potential exit scam.

### Recent Insights on Scams in Solana

Recent news highlights several scams and security issues within the Solana ecosystem, providing critical insights into the risks involved:

- **Alleged Meme Coin Scam**: The news article detailing the lawsuit against Solana’s Meteora for an alleged meme coin scam underscores the importance of due diligence when investing in new projects. Investors must be cautious of projects that lack transparency and have ambiguous business models.  
  - **Reference**: *Solana’s Meteora Hit With Lawsuit Over Alleged Meme Coin Scam*, CryptoPotato, 2025-04-23. [Read More](https://cryptopotato.com/solanas-meteora-hit-with-lawsuit-over-alleged-meme-coin-scam/)

- **Security Flaw in Phantom Wallet**: Another significant concern is the lawsuit against Phantom Wallet ovear a $500,000 meme coin theft linked to an alleged security flaw. This incident highlights the necessity of using secure and reputable wallets, emphasizing that even established platforms can have vulnerabilities.  
  - **Reference**: *Phantom Wallet Sued Over $500K Meme Coin Theft Linked to Alleged Security Flaw*, Decrypt, 2025-04-15. [Read More](https://decrypt.co/314783/phantom-wallet-sued-500k-meme-coin-theft-alleged-security-flaw)

- **Loopscale Exploit**: The recent exploit of $5.8 million in the Loopscale DeFi protocol serves as a reminder of the security risks associated with new projects. Potential investors should be cautious of projects with insufficient security audits and those that rush to launch without proper testing.  
  - **Reference**: *Solana DeFi protocol Loopscale hit with $5.8 million exploit two weeks after launch*, The Block, 2025-04-26. [Read More](https://www.theblock.co/post/352083/solana-defi-protocol-loopscale-hit-with-5-8-million-exploit-two-weeks-after-launch?utm_source=rss&utm_medium=rss)

By following these guidelines and staying informed about ongoing issues in the Solana ecosystem, investors can better protect themselves against scams and make more informed decisions.

Run local test

  • backend
pip install -r requirements.txt
python -m uvicorn main:app --reload --port 8000
  • frontend
cd frontend
npm install
npm run dev

Future Improvements

  • modularize backend for scalability
  • implement all api paramemter dictionaries for usable Messari APIs
  • high level nlp model for NER and keyword mapping

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published