Skip to content

royxlead/cognos-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: MIT Python LangChain


Overview

COGNOS is a cognitive AI assistant designed for long-horizon task completion. Unlike stateless chatbots that forget context between turns, COGNOS maintains persistent memory across sessions and applies multi-step reasoning chains to decompose and solve complex tasks.

The core research question driving this build: how do we design LLM-based assistants that reason like a person - remembering context, planning ahead, and recovering from partial failures?


Architecture

User Input
    │
    ▼
┌──────────────────┐
│  Memory Module   │  Episodic + semantic memory
│                  │  Persistent across sessions
└────────┬─────────┘
         │
         ▼
┌──────────────────┐
│  Reasoning Chain │  Multi-step task decomposition
│                  │  Goal-subgoal planning
└────────┬─────────┘
         │
         ▼
┌──────────────────┐
│  LLM Core        │  Context-aware generation
│                  │  Memory-augmented prompting
└────────┬─────────┘
         │
         ▼
   Response + Updated Memory State

Key Features

Feature Description
Persistent Memory Episodic and semantic memory across conversation sessions
Multi-Step Reasoning Decomposes complex tasks into traceable reasoning steps
Context Awareness Retrieves relevant past context before each generation
Memory Management Automatic pruning and consolidation of long-term memory

Tech Stack

Layer Technology
LLM Orchestration LangChain
Memory Custom episodic store + vector retrieval
Backend Python
Language Python 3.10+

Getting Started

git clone https://github.com/royxlead/cognos-python.git
cd cognos-python
pip install -r requirements.txt
python main.py

Research Context

COGNOS explores the boundary between stateless LLM inference and stateful cognitive architectures. The memory design draws from cognitive science models of episodic and semantic memory, applied to practical LLM system design. Key challenge: maintaining coherent long-term context without exceeding context window limits.


About

COGNOS: Cognitive AI Assistant with Memory & Reasoning

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors