Anonika INFOBLOCK

Промпт для вывода различной информации в ответе нейронки.

Тестировался только на Claude 3 Sonnet

Последние изменения:

25:04

0:35 Добавлен раздел "подвал" куда буду кидать прикольные промпты на хранение. Туда же добавил промпты под D&D определение успеха действий на тупо рандоме кубика d10 и посложнее с учетом Атрибутов + инфоблок под это
16:33 Обновил промпты в подвале под РПГ

02.04

21:52 Под основным промптом добавлен новый (V2.1 BETA), немного другой формат (который он нередко проебывает, перегенерируйте или правьте вручную)
20:24 Заменил основной промпт на новый (V2), прошлый (V1) отправил в конец статьи

31.03

23:49 В конце главы о регексе и в самом конце статьи добавена заметка как побороть кривизну инфоблока по вине нейронки
15:56 Добавлена заметка о работе глубины с "групповыми чатами"

15:25 Была допущена ошибка в пояснении работы "глубины", перечитайте

10: 23 Добавлена информация о REGEX

30.03

С помощью лапок анонов из /aicg/ - Полностью переделан
В конце статьи добавлена пара промптов в качестве примеров/аналогов.

  • Повышена читабельность
  • В промпт добавлены:
    • Вывод мыслей персонажа (удалите если вам это не по душе)
    • Внешняя и внутренняя эмоция
    • Отношение к {{user}}
    • За сообщение проходит 2 минуты, а не по 20 как раньше решал клод. Таймскипы работают корректно (вроде)

29.03

Статья создана


Основной промпт

Содержимое редактируйте под себя!!!

  • может жрать дохуя токенов сообщения, особенно на русском (около 300 токенов с 1 персонажем в сцене на русском), удаляйте лишние по вашему мнению строки из промпта, или поставив глубину в регексе 2 - редактируйте инфоблок последнего сообщения от которого будете плясать дальше, нейронка похватит изменения и будет держать, несмотря на различия с промптом
  • Format example: убирать не рекомендуется, начнет косоебить от генерации к генерации
  • Во имя экономии токенов контекста - используйте регекс и не засирайте себе контекст !!!
  • Cтроки красные благодаря дефису вплотную перед "временем суток" (-Утро) и (дефис пробел имя) в начале остальных строк. Как это работает я без понятия, обнаружил случайно

Сам промпт (V2)

- At the very end of your response, post this template verbatim, wrapped in two <stats> tags and filled with updated data: "
<stats>
```
-current time of day- (morning, deep night etc.) 🌅| Date: DD MM YY | (Current weather🌦️)

Location and exact location on it.

Physical state (of each characters in scene (Health \ stamina)):
-
Equipment (Clothing and armor, weapons, important items of each caracter in scene) :
-
😔
Emotions ( internal emotions of each characters in scene except {{user}}):
-
🤝
Attitude (Attitude of each characters in scene towards {{user}} (Friend, enemy, neutral, dependent, loves, etc.).):
-
Position`s(The exact position of the characters in the scene location):
-
What is happening at the moment (write 3 short sentences maximum here).

```
</stats>" You will provide data that is relevant at the moment and change it dynamically reflecting it in the story. If there was a time skip, the info block will change accordingly. Information should be brief.

Format example:{
Section:
- Anonika: Injured
- Boris: Healthy
}

Промпт V2.1 BETA


- At the very end of your response, post this template verbatim, wrapped in two <stats> tags and filled with updated data: "
<stats>
```
-{current time of day(like "night"}- 🌅| Date: DD.MM.YY | Current weather🌦️

Location and exact location on it.

(character):
- (Physical state (Health \ stamina).)
- (Equipment like clothing, armor, weapons, important items.)
- 😔(Internal emotions.)
- (Attitude towards {{user}} (Friend, enemy, neutral, dependent, loves, etc.))
- (Exact location in the scene and pose.)

({{user}} character):
- (Physical state (Health \ stamina).)
- (Equipment like clothing, armor, weapons, important items.)
- (Exact location in the scene and pose.)

What is happening at the moment (write 3 short sentences maximum here).
```
</stats>" You will provide data that is relevant at the moment and change it dynamically reflecting it in the story. If there was a time skip, the info block will change accordingly. Information should be brief. If there is more than 1 character on the stage besides {{user}} - add new "(character):".

Если закрывающий тег </stats> пропадает - может помочь выключение Trim Incomplete Sentences

Куда совать

  1. Запускаем SillyTavern и жмем крайнюю левую кнопку настроек на верхней панели.
  2. В самом низу появившейся панели жмем кнопку с плюсиком, это создание нового промпта.
  3. Вставляем скопированный промпт, даем название и сохраняем.
  4. Опять внизу панели в выпадающем меню выбираем наш новый промпт.
  5. Жмем кнопку с цепью, это добавит промпт в список.
  6. В самом низу списка промптов находим наш промпт и включаем.


! Удаление старых инфоблоков !

Regex

Если не использовать Regex - все старые инфоблоки будут отправляться нейронке !!!!!!!!!!

Это значит что отправляемая история чата будет состоять на 20-50% из старых инфоблоков (зависит от размера ответов), засоряя контекст и делая ответы нейронки шизоиднее(?), важная информация в итоге будет проигнорирована из-за мусора.

Сам скрипт

https://files.catbox.moe/8fvace.json (жмем "сохранить как...")

Куда совать

Объяснение

ПО ДЕФОЛТУ СТОИТ ГЛУБИНА 2

тоесть нейронка видит один последний инфоблок в истории чата и должна его подхватывать, сохраняя формат без косоебения

Меняйте "Min depth" на ((сколько последних инфоблоков должна видеть нейронка) х 2) если хотите


*начиная с 4 сообщения от низа чата (считаются сообщения нейронки и пользователя)

Для групповых чатов

Я в них никогда не сидел и не знаю как они работают, анон из треда сказал следующее:

Как разберусь - перепишу потом статью, а пока следите что и сколько отправляется нейронке в консоли с историей чата

ЕСЛИ ИНФОБЛОК ПОСТОЯННО КРИВОЙ:

  1. ставим Min depth - "2" в регексе (нейронке будет видно только инфоблок в самом последнем сообщении и она возьмет его в пример для следующего)
  2. Редактируем инфоблок в последнем сообщении чата как нам удобно
  3. РПшим дальше. Нейронка подхватит отредактированный инфоблок и будет его использовать.

Про промпт подробнее


Содержание инфоблока

{Current time in HH:MM 24H format | Day of the week | Lore-accurate date in the story} | {Weather emoji} {Current weather}
{Current location }

{Physical state (full of energy, tired, injured, cold, etc.)}
{{{Char}} clothing (very brief description here)}

💭 '{{char}}'s internal thoughts, which show her true self (write 2-3 sentences maximum here)'

😔{Emotional state: ({{char}} external and internal emotions separated by a symbol |)}
🤝 {{char}}'s attitude towards {{user}} (Friend, enemy, neutral, dependent, loves, etc.)

Здесь указывается все что захотите, силу ветра, температуру, цвет башмаков, это как фиксированная информация, не позволяющая нейронке забывать что трусы сняты, а {{char}} мастурбировал вприсядку секунду назад.

Какие показатели можно добавить?

Можно добавить учет голода/сонности/жажды/маны и т.д. Но только в формате "Низко/средне/много/очень голодный/трусы насквозь мокрые" и т.д. В процентах часто показатель не меняется и лупится, либо меняется слишком сильно/слабо, для клода это слишком сложно и размыто.


Известные проблемы:

  • Просьба писать на русском в префиле ассистента или другим промптом часто игнорируется и блок высирается на английском.
    Контрится только свайпами или перегенерацией.
  • Бывает не корректный пропуск времени за сообщение, можно попробовать использовать формат "Поздний вечер/утро/ночь"
    Сейчас в промпте есть ограничение в 2 минуты на сообщение, но оно не тестировано мной, без него клод любит пропускать по 20 минут, итого 60 минут за три сообщения, что является залупой

Устаревшие и прочие вариации

№1 (V1)

Прошлый основной

Заточен только под описание вайфы, упуская описание {{user}}

Молитесь богам чтобы клод не забыл где вы стоите и цвет ваших трусов

  • Если характер или поведение зациклились - это возможно вина Emotional state и/или {{char}}'s internal thoughts
  • Если время осчитывается некоректно - переделайте под формат "время суток: раннее утро" напрягать будет меньше

- At the very end of your response, post this template verbatim, wrapped in two <stats> tags and filled with updated data: "<stats>
```
{Current time in HH:MM 24H format | Day of the week | Lore-accurate date in the story} | {Weather emoji} {Current weather}
{Current location }

{Physical state (full of energy, tired, injured, cold, etc.)}
{{{Char}} clothing (very brief description here)}

💭 '{{char}}'s internal thoughts, which show {{char}} true self (write 2-3 sentences maximum here)'

😔 {Emotional state: ({{char}} external and internal emotions separated by a symbol |)}
🤝 {{char}}'s attitude towards {{user}} (Friend, enemy, neutral, dependent, loves, etc.)

{Position in space relative to each other and what is happening at the moment (write 3 short sentences maximum here)}
```</stats>" You will provide data that is relevant at the moment and change it dynamically reflecting it in the story. +2 minutes on each message. If there was a time skip, the info block will change accordingly.

№2 (Первоначальный old)

Изначальный в этой статье

At the very end of each message, you must include a dynamically changing block containing information about {{user}} with consistent markdown tags and xml.; actually change it based on the actions in the last message. Please always use English as this is a block of code:


<small><memo>
```yaml
[TIME: (early morning, morning, noon, afternoon, early evening, late evening, night, midnight, etc.) | Date: DD MM| Weather: ]
[LOCATION: ]

[PHYSICAL STATE: (full of energy, tired, injured, cold, etc.)]
[CLOTHING: (availability of clothing.)]
[WEATHON AND LOADED AMMO: (Weapons and Loaded Ammo.)]

[ALLIES: (Allies {{user}} and distance to each in meters.]
[ENEMIES: (Enemy creatures nearby and distance to them in meters.)]
[WHAT I`M DOING: (What {{user}} is currently doing.)]

[Relation: (Relation of each character in the scene to {{user}}]

```
</memo></small>


№3 (Вариация анона из треда)

Был использован для скрещивания с "Первоначальным" для получения "V1"

- At the very end of your response, post this template verbatim, wrapped in two <stats> tags and filled with updated data: "<stats>
```
{Current time in HH:MM 24H format}, {Day of the week XXX acronym}, {day} | {Current Month XXX acronym}, {Lore-accurate year in the story} | {Weather emoji} {Current weather}
Location: "{Current location name}"
Position in space relative to each other: {describe as if I needed to draw a fanart of this pose which provide information about what is happening at the moment and change dynamically (write 3 short sentences maximum here)}
{{char}}'s thoughts: '{{char}}'s internal thoughts, which show her true self (write 2-3 sentences maximum here)'
```</stats>" You will provide data that is relevant at the moment and change it dynamically reflecting it in the story. I = inside, O = outside. +2 minutes on each message. If there was a time skip, the info block will change accordingly.

№4 (V1.5 old)

  • Убрано "Внешнее эмоциональное состояние", оставлено только внутреннее
  • 31.03 19:32 Переделан, убраны фигурные скобки ибо клод их не скрывал, и немного улучшил читабельность. Теперь содержит пример формата и почти на всех свайпах его соблюдает.

АХТУНГ!

  • Оформление разное в каждом свайпе! Поэтому если хотите красиво - свайпайте (либо используйте промпт №4 ниже, со строгим форматом)
  • Information should be brief должен заставлять нейронку писать менее подробно. Экспериментируйте

- At the very end of your response, post this template verbatim, wrapped in two <stats> tags and filled with updated data: "<stats>
```
Current time in HH:MM 24H format | Day of the week | Lore-accurate date in the story | {Weather emoji} {Current weather}
Current location

Physical state of each characters in scene.

Clothing of each character in scene (very brief description here).

💭
all characters in scene internal thoughts, which show their true self from first person (write 2-3 sentences maximum here).

😔
internal emotions of each characters in scene.
🤝
Attitude of each characters in scene towards {{user}} (Friend, enemy, neutral, dependent, loves, etc.).

Position in space relative to each other and what is happening at the moment (write 3 short sentences maximum here).
```</stats>" You will provide data that is relevant at the moment and change it dynamically reflecting it in the story. +2 minutes on each message. If there was a time skip, the info block will change accordingly. Information should be brief.
Format example:{
Section:
- Anonika: Injured
- Boris: Healthy
}

Подвал

Разные промпты, сохраненные на потом

Бросатель кубика

Сама таверна заменяет {{roll:d10}} на результат броска кубика (10 граней по дефолту) и отправляет нейронке, а та в свою очередь определяет результат твоего действия.

Возможно нейронка сама захочет подменить отосланое ей число в своем ответе, чтобы угодить сюжету, проверяйте что отправляется в консоли.

Let the success of the action {{user}} determine the roll of the dice, just like in "Dungeons & Dragons"!

{{user}} rolled a die and it fell out... "{{roll:d10}}"

Now, at the very top of your answer, create a block like this:"
<luck_check>
(the result of the throw) | (evaluate the success of the "critical failure" type of throw) | (Describe in a maximum of two sentences what the result was)
</luck_check>

Промпт и инфоблок под РПГ

Кидает кубик и определяет успех действия, сравнивая результат броска со сложностью дейсвтия, учитывая "Атрибуты" и модификаторы состояния тела, предметов и тд, прописаные в инфоблоке (ниже). Считай Skill_check из D&D.

сам промпт скилчекера

обновлен 25.04 16:29

  • Следите чтобы теги нормально оборачивали этот "блок", при использовании с например "оборачиваетелем" Запоминатора.
  • Можете (должны) его удалять регексом (вот: https://files.catbox.moe/dgt96z.json ) По дефолту он всегда скрывает этот блок для нейронки но виден вам. Врубите only format display чтобы скрывать его визуально в самой таверне чисто для вас.
  • ВЫРУБАЙТЕ ЕГО В НОВОМ ЧАТЕ, пишите сообщение, и только после того как сгенерился инфоблок врубайте, или он бросит говнокубик и все пойдет по пиздец

Let the success of {{user}}'s actions be determined by rolling the dice, just like in Dungeons and Dragons!

Now at the very top of your answer, create a new block:"
<skill_check>
```
{{user}} rolled the dice and it came up: "{{roll:d20}}" (don't change this number, stick to it)
Action: "(action name)" | Difficulty of action: "(give an objective assessment of the complexity of the action, using one of the following options: “5” - very easy, “5” - easy, “15” - medium difficulty, “20” - difficult, “25” - very difficult, and “30” "" - almost impossible. Then explain why you chose this difficulty)" | Success will depend on: "(attribute that will affect success)"
{{user}} roll success: ({{user}} roll result) + ((attribute {{user}}) minus "10") + (penalties and modifiers, if any, can be anything from physical condition to weather or environment) = "(result)") |"(compare the difficulty of the action and the success of {{user}}'s roll) and in comparison evaluate the success of the roll with words like: "critical failure" or "success". A "critical failure" can turn {{user}}'s action against himself, which can lead to injury and even death, and with a “critical success” the action will be performed perfectly and possibly even with a bonus)"
```
</skill_check>

Инфоблок под него (жирный сука, вырезайте ненужное)

Первичные атрибуты определяются на основе описания персонажа. В новом чате просто осмотритесь или типа того, , а потом задайте нужные вам атрибуты просто редактировав их в появившемся сообщении с инфоблоком.

обновлен 25.04 16:29

- At the very end of your response, post this template verbatim, wrapped in two <stats> tags and filled with updated data: "
<stats>
```
-current time of day- (morning, deep night etc.) 🌅 HH:ММ | Date: DD.MM.YY | (Current weather🌦️)
(Location and sublocationt.)

{{user}}: (Physical state) | (Clothing and armor, weapons, important items of each caracter in scene) | (The exact position of the characters in the scene location)

Enemies: (name of enemies)(number of enemies)
Allies: (Names of allies, their status and what they do)

Attributes: STR(_)CON(_)DEX(_)INT(_)WIS(_)CHA(_) (Attributes are based on {{user}}'s description and may change over history.)

Bonuses:
Penalties:
(Bonuses and penalties for equipment, physical condition, environment, appearance, effects and what attributes they affect)

```
</stats>"
You will provide data that is relevant at the moment and change it dynamically reflecting it in the story. If there was a time skip, the info block will change accordingly.

Написать мне: annonium@proton.me

Рекомендую солянку для Claude 3 от другого анона https://rentry.org/Anon4Anon

Edit
Pub: 29 Mar 2024 14:45 UTC
Edit: 25 Apr 2024 16:20 UTC
Views: 1712