# Gaianet

## Скрипт

```bash
source <(curl -s https://raw.githubusercontent.com/cryptoportalua/scripts/refs/heads/main/gaianet)
```

[Перевірка роботи ноди](#perekhodimo-u-brauzer-za-posilannyam-z-terminalu)

## Оновлення

```bash
echo '2' | source <(curl -s https://raw.githubusercontent.com/cryptoportalua/scripts/refs/heads/main/gaianet)
```

## Ручне встановлення

```bash
# Install node
curl -sSfL 'https://github.com/GaiaNet-AI/gaianet-node/releases/latest/download/install.sh' | bash
```

Зберігаємо собі `device-id` та `node-id`

<figure><img src="/files/HrtKpBq23iXiu7lviwpy" alt=""><figcaption></figcaption></figure>

<details>

<summary>Міняємо стандартну модель на Qwen2 0.5B щоб фармити більше поінтів</summary>

```bash
ADDRESS=$(gaianet info | grep "Node ID" | awk -F': ' '{print $2}')
```

```bash
sudo tee ~/gaianet/config.json > /dev/null <<EOF
{
  "address": "$ADDRESS",
  "chat": "https://huggingface.co/gaianet/Qwen2-0.5B-Instruct-GGUF/resolve/main/Qwen2-0.5B-Instruct-Q5_K_M.gguf",
  "chat_batch_size": "32",
  "chat_ctx_size": "131072",
  "description": "This GaiaNet node config with a Qwen2 0.5B model.",
  "domain": "gaia.domains",
  "embedding": "https://huggingface.co/gaianet/Nomic-embed-text-v1.5-Embedding-GGUF/resolve/main/nomic-embed-text-v1.5.f16.gguf",
  "embedding_batch_size": "8192",
  "embedding_collection_name": "default",
  "embedding_ctx_size": "8192",
  "llamaedge_port": "8082",
  "prompt_template": "chatml",
  "qdrant_limit": "1",
  "qdrant_score_threshold": "0.5",
  "rag_policy": "system-message",
  "rag_prompt": "Use the following pieces of context to answer the user's question.\nIf you don't know the answer, just say that you don't know, don't try to make up an answer.\n----------------\n",
  "reverse_prompt": "",
  "snapshot": "",
  "system_prompt": "You are a helpful, respectful, and honest assistant. Always answer accurately, while being safe."
}
EOF
```

</details>

```bash
source ~/.bashrc && gaianet init
```

```bash
gaianet start
```

#### Переходимо у браузер за посиланням з терміналу

<figure><img src="/files/txH8ogjCDhtyT51Fh8ae" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/odFBNFLaj68BLew0jP2p" alt=""><figcaption></figcaption></figure>

Тиснемо старт і спілкуємось із чатом, за кожен запит нараховуються поінти. Але спершу добавимо ноду в дашбоард сайту Gaianet.

{% hint style="success" %}
[https://www.gaianet.ai/gaia-domain-name](<https://www.gaianet.ai/gaia-domain-name&#xA;>)
{% endhint %}

<figure><img src="/files/SqQIymtU6Bc59TYOp94L" alt=""><figcaption></figcaption></figure>

Заходимо на сайт і конектимо ваш будь-який тестовий гаманець.&#x20;

<figure><img src="/files/1ouXMfET4XQ7xQAfEJZH" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/n4KOVfKsJ419wqktlS5d" alt=""><figcaption></figcaption></figure>

Натискаємо "Connect new node" Тепер добавляємо `node-id` та `device-id`

<figure><img src="/files/UMN5vXvCmU3cCDvyd1cB" alt=""><figcaption></figcaption></figure>

Після того у вас з'являється ваша нода в дашбоард, можна прослідкувати що ваша нода онлайн по зеленому статусу. Тепер добавляємо домейн для качання поінтів. Тиснемо три крапки справа і натискаємо "Join Domain"&#x20;

<figure><img src="/files/qtdHdDSQ0JgJSkQW5OsQ" alt=""><figcaption></figcaption></figure>

<div><figure><img src="/files/W1HrnV3LgzP1Ztsre6S6" alt=""><figcaption></figcaption></figure> <figure><img src="/files/T5tvWEU2V3Kli8ghU3S2" alt=""><figcaption></figcaption></figure></div>

Тиснемо "Next Step", одразу нам дається вибір чий саме домейн можна вибрати. Вам треба вибрати той домейн на якому стоїть правильна версія Qwen2-0.5B,  по іншому вас непропустить система. Вибираєте де не дуже багато людей, орієнтовно до 100, там більше поінтів капає.&#x20;

<figure><img src="/files/fD1xEBmS159tPwAijHPs" alt=""><figcaption></figcaption></figure>

Нода у вас вже стоїть з домейном, тепер ідем в GaiaXp.

<figure><img src="/files/TpWbGIoKzVGyC8dalft5" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/nnvz6cyS68jB6OeG9pVy" alt=""><figcaption></figcaption></figure>

У вкладці Tasks конектимо всі соціалки. Ви отримуєте за це gaiaPoints, також за спілкування з чатом у вас будуть капати Node Points. Для того щоб ці поінти капали вам ще треба буде закинути пару центів в ефірі на гаманець в мережі Base. Це для того що б обмінювати поінти на gaiaCredits для отримування поінтів. Це можна робити не часто,  а коли у вас накопиться максимальна можливий свап 1000/500.

<figure><img src="/files/Bo22msNhZwuq9OADrN6E" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/vRZA3zm40o32IKUVy4YD" alt=""><figcaption></figcaption></figure>

Ось так виглядає всі запити в чаті які перетворюються в поінти. Ця інформація присутня в вкладці  gaiaPoints.\
\
Також собі на сервер можна поставити бота фармилку, який буде робити запити за вас. Як тільки ми його оновим одразу додамо в гайд.

{% embed url="<https://t.me/cryptoportalua_chat>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cryptoportal.gitbook.io/cryptoportal-docs/nodes/gaianet.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
