Skip to content

Commit

Permalink
feat(nova): Implement three-layer cognitive architecture with Ollama LLM
Browse files Browse the repository at this point in the history
Implement a three-layer cognitive architecture (NOVA) using Ollama LLM integration:

- Add Reactive Layer (≤10 words responses)
  * Fast, instinctive responses with temperature 0.3
  * Strict word limit and imperative form
  * Limited response length (num_predict: 50)

- Add Responsive Layer (context-aware)
  * Maintains context history of last 5 messages
  * Balanced temperature (0.7)
  * Medium-length responses (num_predict: 100)

- Add Reflective Layer (pattern analysis)
  * Deep thinking with pattern recognition
  * Higher temperature (0.7) for creative insights
  * Maintains history of learned patterns

Features:
- Parallel processing using asyncio
- Clear terminal output with emojis and formatting
- Configurable model selection via MODEL_NAME constant
- Error handling and resource cleanup
- Kafka integration for message distribution

Example demonstrates anxiety management scenario through
different cognitive processing depths.
  • Loading branch information
leonvanbokhorst committed Dec 15, 2024
1 parent b917806 commit d5e0ef5
Showing 1 changed file with 480 additions and 0 deletions.
Loading

0 comments on commit d5e0ef5

Please sign in to comment.