yogic-mind-ai
v1.0.1
Published
AI system modeled after yogic mind structure
Readme
Yogic Mind AI
A natural language processing system modeled after the yogic understanding of mind (antahkarana). It processes inputs through four aspects of mind:
- Manas: Sensory processing and immediate reactions
- Buddhi: Discriminative understanding
- Chitta: Memory and patterns
- Ahamkara: Sense of self and identity
Installation
npm install yogic-mind-aiUsage
Basic usage:
import { yogiChatCompletion, createInitialState } from "yogic-mind-ai";
// Initialize with state
const state = createInitialState();
// Process input
const { finalResponse, updatedState } = await yogiChatCompletion(
"Your input message here",
state
);
console.log(finalResponse);With message history and model selection:
import { ChatCompletionMessageParam } from "openai/resources/chat";
const messageHistory: ChatCompletionMessageParam[] = [
{ role: "user", content: "What is yoga?" },
{ role: "assistant", content: "Yoga is union of body and mind..." },
{ role: "user", content: "Tell me more about meditation" },
];
const { finalResponse, updatedState } = await yogiChatCompletion(
"How does this relate to samadhi?",
state,
{
messages: messageHistory, // Optional: provide conversation history
model: "gpt-4", // Optional: override default model
}
);Configuration
Requires OpenAI API key in .env:
OPENAI_API_KEY=your-key-hereState Management
The system maintains state across interactions, tracking:
- Sensory impressions and reactions
- Clarity and discrimination levels
- Memory patterns and impressions
- Identity and attachments
License
MIT
