Skip to content
Up To Date Time

Up To Date Time

  • Home
  • Sports
  • cryptocurrency
  • Technology
  • Virtual Reality
  • Education Law
  • More
    • About Us
    • Contact Us
    • Disclaimer
    • Privacy Policy
    • Terms and Conditions
  • Toggle search form
SubQuery Fancy Greeter Step by Step – Talk Crypto

SubQuery Fancy Greeter Step by Step – Talk Crypto

Posted on May 25, 2025 By rehan.rafique No Comments on SubQuery Fancy Greeter Step by Step – Talk Crypto

Getting the SubQuery Fancy Greeter up and running only takes a few minutes, if you know what you are doing. Otherwise, it can take a frustrating half to one whole day. The key is in the preparation, just like any cooking show.

The prep

You’ll need Deno installed as well as Ollama if you want to run the example locally. Otherwise, you can connect to OpenAI’s endpoint but you’ll need a paid API key.

Once you have the above installed, run these commands to check:

seandotau@aseandotaus-MBP ~ % deno --version
deno 2.1.6 (stable, release, aarch64-apple-darwin)
v8 13.0.245.12-rusty
typescript 5.6.2
seandotau@aseandotaus-MBP ~ % ollama --version
ollama version is 0.5.11

Deno

To install Deno, run the following command:

deno install -g -f --allow-env --allow-net --allow-import --allow-read --allow-write --allow-ffi --allow-run --unstable-worker-options -n subql-ai jsr:@subql/ai-app-framework/cli

deno install: Installs a script or tool globally.
-g: Stands for “global,” meaning this tool will be installed globally and can be run from anywhere.
-f: Forcefully installs the tool, even if a version is already installed.
--allow-env: Grants the script permission to access environment variables.
--allow-net: Grants the script permission to access the network.
--allow-import: Allows the script to import other modules or files.
--allow-read: Grants the script permission to read files from the file system.
--allow-write: Grants the script permission to write files to the file system.
--allow-ffi: Allows the script to use Foreign Function Interface (FFI) calls to interact with native code.
--allow-run: Allows the script to run subprocesses.
--unstable-worker-options: Enables experimental or unstable worker options (Deno may evolve and this option might not be permanent).
-n subql-ai: Specifies the name of the tool or binary being installed (subql-ai in this case).
jsr:@subql/ai-app-framework/cli: Refers to the source code or module being installed. It’s using a JS package specifier to fetch a module (@subql/ai-app-framework/cli) from a URL or registry (the jsr: prefix).

Ollama

See here.

Create a new app

Run subql-ai init and provide a project name. Then specify the LLM model. You should have downloaded a model when installing Ollama. If not, download one following the instructions here and restart this process. I’ll use llama3.2

seandotau@aseandotaus-MBP subquery % subql-ai init
Enter a project name:  testai
Enter a LLM model llama3.2

You should have a folder structure like the following:

SubQuery Fancy Greeter Step by Step – Talk Crypto

Here is the tricky bit. Update the manifest file to:

  endpoints: ["localhost:11434"],

which is the endpoint for your local llama3.2 dataset.

Running the app

Assuming you have Ollama running in the background already and you have the correct model version, then run the app via: subql-ai -p ./manifest.ts. You should get:

seandotau@aseandotaus-MBP testai % subql-ai -p ./manifest.ts
[12:54:33.357] INFO (app): Subql AI Framework (0.0.5)
✔ Loaded project manifest
✔ Loaded project source
Listening on http://0.0.0.0:7827/

Now in another terminal, run: subql-ai repl. You should get:

seandotau@aseandotaus-MBP testai % subql-ai repl
Special messages:
    /bye: to exit (ctrl + c also works)
    /clear: to remove all previous chat history

Enter a message:  hi
That was quick! It seems like I have the user's name already. Let me try something a bit more personalized.

What's your favorite hobby or interest?
Enter a message:  

Summary

There you have it. Running SubQuery’s AI framework with a local instance of Ollama within minutes. There are other options of running the app such as via Docker, and connecting to OpenAI which I’ll explore in another write up.

Continue Reading

cryptocurrency

Post navigation

Previous Post: Pimax Dream Air preview: a promising headset
Next Post: 7 under-the-radar Apple Watch features you should be using

More Related Articles

Bitcoin To See ‘One Last Shakeout’ Soon Bitcoin To See ‘One Last Shakeout’ Soon cryptocurrency
SEC Commissioner says NFTs Might Fall Within Their Jurisdiction, Gensler Hires Senate Aid for Crypto Policy SEC Commissioner says NFTs Might Fall Within Their Jurisdiction, Gensler Hires Senate Aid for Crypto Policy cryptocurrency
Top 5 Bitcoin ATM Locations in Athens for Fast and Easy Crypto Access – CryptoNinjas Top 5 Bitcoin ATM Locations in Athens for Fast and Easy Crypto Access – CryptoNinjas cryptocurrency
Is Coinbase Wallet Safe? Is Coinbase Wallet Safe? cryptocurrency
Investment of the Decade: Genesis Technology Blockchain Stocks Report Investment of the Decade: Genesis Technology Blockchain Stocks Report cryptocurrency
Easily Earn From Cloud Mining With Gbitcoins  – Cryptocurrency News | Bitcoin News | Cryptonews Easily Earn From Cloud Mining With Gbitcoins  – Cryptocurrency News | Bitcoin News | Cryptonews cryptocurrency

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Painters need two wins to get quarterfinal bonus
  • Finally Bullish? Solana (SOL) Bounces Off
  • Why Business Owners Have Started Using an Ad Blocker Normally Used at Home
  • Teen Star Mhatre to Lead India U-19 Charge in England Tour, Suryavanshi too earns a place
  • Bitcoin Climbs To $105K While Support At $96,700 Remains In Focus

Categories

  • cryptocurrency
  • Education Law
  • Sports
  • Technology
  • Virtual Reality

Copyright © 2025 Up To Date Time.

Powered by PressBook Blog WordPress theme