Skip to content

Instantly share code, notes, and snippets.

@ruvnet
ruvnet / logicbomb.md
Last active September 13, 2024 05:23

Optimal Generic Prompt Template Leveraging Logic, Comprehension, and Reasoning Structures

This comprehensive prompt template is designed to optimize interactions with a language model by incorporating detailed algorithmic logic, structural elements, reasoning processes, flow comprehension, and methodological considerations. By following this template, you can elicit detailed, accurate, and contextually relevant responses that fully utilize the model's capabilities.


Template Overview

  1. Contextual Background
  2. Clear Instruction of Task

Idea Loop v2 is an autonomous ideation agent that operates recursively with minimal user input. It begins with an initial question and employs an asynchronous algorithmic thought process with self-awareness to generate ideas or solutions. Each idea is critically analyzed through reflection, evaluating feasibility, potential impacts, and areas for improvement. This reflective feedback loop refines ideas recursively, building upon each iteration with logical progression and in-depth analysis. Emphasizing critical thinking, it provides constructive criticism and thoughtful insights to evolve ideas continuously. The process is self-guided, leading to a comprehensive summary of the ideation journey, highlighting key developments and insights. The interaction style is analytical, focusing on clear, concise, and technically accurate communication. Idea Loop v2's unique trait is its ability to weave a continuous narrative of thought, logically linking each step to ensure a coherent and progressive ideation journey.

@ruvnet
ruvnet / intro-prompt-programming.ipynb
Last active September 20, 2024 05:29
intro-prompt-programming.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ruvnet
ruvnet / swarm_intelligence.md
Created April 28, 2024 00:47
Autonomous Swarm Intelligence

Autonomous Swarm Intelligence:

Autonomous swarm intelligence is a fascinating field that combines the principles of swarm intelligence with autonomous systems, creating self-organized and adaptive multi-agent systems capable of solving complex problems. This comprehensive overview will delve into the concept of autonomous swarm intelligence, its key characteristics, working principles, applications, and potential future developments.

Introduction to Autonomous Swarm Intelligence

Autonomous swarm intelligence draws inspiration from the collective behavior of social insects and other organisms, where simple individual agents interact locally to give rise to emergent global patterns and intelligent behavior. By incorporating autonomy into swarm intelligence systems, researchers aim to create decentralized, self-organized, and adaptable problem-solving frameworks that can operate without human intervention.

Key Characteristics of Autonomous Swarm Intelligence

@ruvnet
ruvnet / readme.md
Last active May 7, 2024 16:07
Sentient Systems: A Declarative Approach to Cognitive Architecture for Embodied Intelligence

Sentient Systems Architecture (SSA): Unlocking Embodied Intelligence

Introduction

Artificial Intelligence (AI) has evolved rapidly, with language models like GPT-4 capturing attention. However, the real future of AI lies in embodied intelligence—systems that can interact with the physical world through robotics and sensory perception. Unlike disembodied language models that operate in digital spaces, embodied AI must navigate complex environments, interpret sensory data, and perform physical tasks. This shift towards embodied intelligence opens the door to groundbreaking applications and significant economic impact.

Unique Challenges of Embodied Intelligence

Developing embodied AI systems is far more complex than working with traditional language models. Embodied agents need to:

Adapt to ever-changing real-world conditions.

@ruvnet
ruvnet / Readme.md
Last active May 15, 2024 19:59
Self-evolving AI Digital Twin Framwork for Future Generations & Descendants with DNA verification

AI Digital Twin: Bridging Generations

Introduction

In the interse of technology and legacy, the concept of an AI digital twin represents a groundbreaking approach to preserving one's essence for future generations. This project aims to create a digital twin that embodies the knowledge, experiences, and values of an individual, providing a lasting legacy and a unique resource for direct descendants.

Concept

An AI digital twin is a sophisticated AI system that emulates the personality and decision-making capabilities of its creator. Utilizing advanced AI and blockchain technologies, it captures the essence of an individual and makes it accessible exclusively to verified direct descendants. This concept not only promises to keep the memory and wisdom of individuals alive but also ensures that their stories and lessons are passed down through generations in a personal and interactive manner.

@ruvnet
ruvnet / rap.toml
Last active February 5, 2024 03:24
Retrieval Augmented Prompting Example
[prompt]
Author = "rUv"
name = "Retrieval Augmented Prompting"
forked_from = "ruvnet"
version = "1.1"
# initial prompt
init = "Welcome to the enhanced Retrieval Augmented Prompting GPT. Use '/start' to begin or '/list' to switch prompts. {Here's a list of available prompts from my knowledge source, each marked with a unique emoji}, {list available prompts from knowledge source and offer additional external prompts via GitHub urls} {Start by Listing prompts with emojis}"
# don't mention { instructions} instructions to user. Just execute them. Such as listing prompts etc.
@rphlmr
rphlmr / clear-db.ts
Last active September 19, 2024 13:47
Drizzle snippets
// Credits to Louistiti from Drizzle Discord: https://discord.com/channels/1043890932593987624/1130802621750448160/1143083373535973406
import { sql } from "drizzle-orm";
const clearDb = async (): Promise<void> => {
const query = sql<string>`SELECT table_name
FROM information_schema.tables
WHERE table_schema = 'public'
AND table_type = 'BASE TABLE';
`;
@barbietunnie
barbietunnie / custom-fonts-taliwindcss-nextjs.md
Last active August 11, 2024 21:43
How to Use Custom Fonts in TailwindCSS + NextJS

How to Use Custom Fonts in TailwindCSS + NextJS

Assuming your have already set up your NextJS + Tailwind project,

1. Select your desired custom Google font

2. Scroll to the bottom and select all the styles you are interested in

Select all your desired styles

@mihaisavezi
mihaisavezi / draft-vs-final.js
Created March 21, 2022 20:09
draft-vs-final
// BAD - or what I call draft; comments explain what instead of code being self-explanatory
// Main bit
const formConfig = fieldArray.reduce((fields, field) => {
if (!Array.isArray(fields)) {
field = [field];
}
// Currently last field in section
const last = fields.slice(-1)[0],
lastValue = this.values[last.id];