Skip to content

Commit 04c62a7

Browse files
authored
Merge pull request #5 from flare-research/update-readme
feat: make the readme based on structure
2 parents bdd07c9 + 0618325 commit 04c62a7

File tree

2 files changed

+33
-65
lines changed

2 files changed

+33
-65
lines changed

README.md

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Flare AI SDK for Consensus Learning.
1919
- **Modular & Configurable**
2020
Easily customize models, conversation prompts, and aggregation parameters through a simple JSON configuration.
2121

22-
## 📌 Prerequisites
22+
## 🎯 Getting Started
2323

2424
Before getting started, ensure you have:
2525

@@ -28,7 +28,7 @@ Before getting started, ensure you have:
2828
- [Docker](https://www.docker.com/)
2929
- An [OpenRouter API Key](https://openrouter.ai/settings/keys).
3030

31-
## ⚙️ Environment Setup
31+
### Environment Setup
3232

3333
### Step 1: Install Dependencies
3434

@@ -49,7 +49,7 @@ uv run python -m tests.credits
4949
uv run python -m tests.models
5050
```
5151

52-
## 🚀 Running Consensus Learning
52+
### Running Consensus Learning
5353

5454
Configure your consensus learning instance in `src/input.json`, including:
5555

@@ -71,7 +71,7 @@ Once configured, start the process with:
7171
uv run start-consensus
7272
```
7373

74-
## 🔧 Testing Endpoints
74+
### Testing Endpoints
7575

7676
For granular testing, use the following endpoints:
7777

@@ -89,6 +89,33 @@ For granular testing, use the following endpoints:
8989

9090
_Tip:_ In interactive mode, type `exit` to quit.
9191

92+
## 📁 Repo Structure
93+
94+
```
95+
src/flare_ai_consensus/
96+
├── attestation/ # TEE attestation implementation
97+
│ ├── __init__.py
98+
│ ├── simulated_token.txt
99+
│ ├── vtpm_attestation.py
100+
│ └── vtpm_validation.py
101+
├── consensus/ # Core consensus learning
102+
│ ├── __init__.py
103+
│ ├── aggregator.py # Response aggregation
104+
│ └── consensus.py # Main CL implementation
105+
├── router/ # API routing and model access
106+
│ ├── __init__.py
107+
│ ├── base_router.py # Base routing interface
108+
│ └── openrouter.py # OpenRouter implementation
109+
├── utils/ # Utility functions
110+
│ ├── __init__.py
111+
│ ├── file_utils.py # File operations
112+
│ └── parser_utils.py # Input parsing
113+
├── __init__.py
114+
├── input.json # Configuration file
115+
├── main.py # Application entry
116+
└── settings.py # Environment settings
117+
```
118+
92119
## 🚀 Deploy on TEE
93120

94121
Deploy on a [Confidential Space](https://cloud.google.com/confidential-computing/confidential-space/docs/confidential-space-overview) using AMD SEV.
@@ -196,7 +223,7 @@ If you encounter issues, follow these steps:
196223
3. **Check Firewall Settings:**
197224
Confirm that your instance is publicly accessible on port `80`.
198225

199-
## 🔜 Next Steps & Future Directions
226+
## 💡 Next Steps
200227

201228
- **Security & TEE Integration:**
202229
- Ensure execution within a Trusted Execution Environment (TEE) to maintain confidentiality and integrity.

uv.lock

Lines changed: 1 addition & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)