Skip to content

Commit

Permalink
Merge pull request #5 from flare-research/update-readme
Browse files Browse the repository at this point in the history
feat: make the readme based on structure
  • Loading branch information
magurh authored Feb 21, 2025
2 parents bdd07c9 + 0618325 commit 04c62a7
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 65 deletions.
37 changes: 32 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Flare AI SDK for Consensus Learning.
- **Modular & Configurable**
Easily customize models, conversation prompts, and aggregation parameters through a simple JSON configuration.

## 📌 Prerequisites
## 🎯 Getting Started

Before getting started, ensure you have:

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

## ⚙️ Environment Setup
### Environment Setup

### Step 1: Install Dependencies

Expand All @@ -49,7 +49,7 @@ uv run python -m tests.credits
uv run python -m tests.models
```

## 🚀 Running Consensus Learning
### Running Consensus Learning

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

Expand All @@ -71,7 +71,7 @@ Once configured, start the process with:
uv run start-consensus
```

## 🔧 Testing Endpoints
### Testing Endpoints

For granular testing, use the following endpoints:

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

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

## 📁 Repo Structure

```
src/flare_ai_consensus/
├── attestation/ # TEE attestation implementation
│ ├── __init__.py
│ ├── simulated_token.txt
│ ├── vtpm_attestation.py
│ └── vtpm_validation.py
├── consensus/ # Core consensus learning
│ ├── __init__.py
│ ├── aggregator.py # Response aggregation
│ └── consensus.py # Main CL implementation
├── router/ # API routing and model access
│ ├── __init__.py
│ ├── base_router.py # Base routing interface
│ └── openrouter.py # OpenRouter implementation
├── utils/ # Utility functions
│ ├── __init__.py
│ ├── file_utils.py # File operations
│ └── parser_utils.py # Input parsing
├── __init__.py
├── input.json # Configuration file
├── main.py # Application entry
└── settings.py # Environment settings
```

## 🚀 Deploy on TEE

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

## 🔜 Next Steps & Future Directions
## 💡 Next Steps

- **Security & TEE Integration:**
- Ensure execution within a Trusted Execution Environment (TEE) to maintain confidentiality and integrity.
Expand Down
61 changes: 1 addition & 60 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 04c62a7

Please sign in to comment.