Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -2,85 +2,9 @@
|
|
| 2 |
title: PROJECT-CHIMERA
|
| 3 |
app_file: app.py
|
| 4 |
sdk: gradio
|
| 5 |
-
sdk_version:
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
Project Chimera has evolved from a conceptual framework into a functional, multi-persona AI agent. It uses a modular architecture to delegate tasks to specialized "personas" that are powered by the Google Gemini Pro API. This creates a system capable of providing expert-level analysis across different domains by adopting the correct context for each query.
|
| 12 |
-
|
| 13 |
-
---
|
| 14 |
-
|
| 15 |
-
## 2. Core Architecture: The Functional AI Framework
|
| 16 |
-
|
| 17 |
-
### A. The Causal Reasoning Core (CRC)
|
| 18 |
-
The heart of Chimera. The CRC analyzes user prompts and uses a **Capability-Based Routing** system to delegate the task to the most appropriate AI persona.
|
| 19 |
-
|
| 20 |
-
### B. Specialized Cognitive Modules (SCMs)
|
| 21 |
-
These are no longer placeholders. Each SCM is now a functional "AI Persona" that crafts a highly specialized, role-playing prompt to send to the Gemini API. This ensures the response is not generic, but tailored to the specific domain. Current functional modules include:
|
| 22 |
-
- **Abstract Symbology Module (ASM):** Acts as an expert code analyst and mathematician.
|
| 23 |
-
- **Sensory Fusion Engine (SFE):** Acts as a data scientist, analyzing and finding patterns in data descriptions.
|
| 24 |
-
- **Creative Synthesis Module (CSM):** Acts as a creative director and author, generating novel ideas and stories.
|
| 25 |
-
|
| 26 |
-
### C. The Metacognitive Layer
|
| 27 |
-
The "overseer" layer monitors the system's operations, logging the delegation process and system status.
|
| 28 |
-
|
| 29 |
-
---
|
| 30 |
-
|
| 31 |
-
## 3. Setup and Configuration
|
| 32 |
-
|
| 33 |
-
### 1. Prerequisites
|
| 34 |
-
- Python 3.x
|
| 35 |
-
- A Google Gemini API key. Get one from [Google AI Studio](https://aistudio.google.com/app/apikey).
|
| 36 |
-
|
| 37 |
-
### 2. Install Dependencies
|
| 38 |
-
Open your terminal and run:
|
| 39 |
-
```bash
|
| 40 |
-
pip install google-generativeai
|
| 41 |
-
3. Configure Your API Key
|
| 42 |
-
Open the config.py file.
|
| 43 |
-
Find the line API_KEY = "YOUR_API_KEY_HERE".
|
| 44 |
-
Replace YOUR_API_KEY_HERE with your actual, secret API key.
|
| 45 |
-
IMPORTANT: Do NOT commit your real API key to a public GitHub repository.
|
| 46 |
-
4. How to Run
|
| 47 |
-
Run the main entry point from your terminal:
|
| 48 |
-
|
| 49 |
-
Bash
|
| 50 |
-
|
| 51 |
-
python main.py
|
| 52 |
-
The script will initialize the system and run a series of demonstration tasks, printing the live, AI-generated responses to your console.
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
***
|
| 56 |
-
|
| 57 |
-
### `config.py`
|
| 58 |
-
|
| 59 |
-
```python
|
| 60 |
-
# config.py
|
| 61 |
-
# System-wide configuration settings for Project Chimera.
|
| 62 |
-
|
| 63 |
-
# --- Gemini API Configuration ---
|
| 64 |
-
# IMPORTANT: Replace "YOUR_API_KEY_HERE" with your actual Google Gemini API key.
|
| 65 |
-
# This key should be kept secret and should not be committed to public version control.
|
| 66 |
-
API_KEY = "YOUR_API_KEY_HERE"
|
| 67 |
-
|
| 68 |
-
# --- System Configuration ---
|
| 69 |
-
|
| 70 |
-
# Set the operational mode for the AI
|
| 71 |
-
# 'development' - Enables verbose logging and debug information.
|
| 72 |
-
# 'production' - Optimized for performance with minimal console output.
|
| 73 |
-
OPERATION_MODE = 'development'
|
| 74 |
-
|
| 75 |
-
# Configuration for the Metacognitive Layer
|
| 76 |
-
METACOGNITIVE_CONFIG = {
|
| 77 |
-
"monitoring_interval_seconds": 10,
|
| 78 |
-
}
|
| 79 |
-
|
| 80 |
-
# Configuration for the Gemini Model
|
| 81 |
-
GEMINI_MODEL_CONFIG = {
|
| 82 |
-
"temperature": 0.4,
|
| 83 |
-
"top_p": 1,
|
| 84 |
-
"top_k": 32,
|
| 85 |
-
"max_output_tokens": 4096,
|
| 86 |
-
}
|
|
|
|
| 2 |
title: PROJECT-CHIMERA
|
| 3 |
app_file: app.py
|
| 4 |
sdk: gradio
|
| 5 |
+
sdk_version: 6.3.0
|
| 6 |
+
license: mit
|
| 7 |
+
emoji: 🌖
|
| 8 |
+
colorFrom: indigo
|
| 9 |
+
colorTo: purple
|
| 10 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|