File size: 7,864 Bytes
805fa80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
869d071
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
# 🤝 Nova AI'ya Katkıda Bulunma Rehberi

**Teknova Nova AI** projesine katkıda bulunmak istediğiniz için teşekkürler! Bu rehber, katkı sürecini kolaylaştırmak için hazırlanmıştır.

## 🎯 Katkı Türleri

### 🐛 **Bug Reports (Hata Bildirimi)**
- Detaylı hata açıklaması
- Tekrar edilebilir adımlar
- Sistem bilgileri (OS, Python version)
- Error logs ve screenshots

### ✨ **Feature Requests (Özellik İstekleri)**  
- Özelliğin amacını açıklayın
- Kullanım senaryolarını belirtin
- Mevcut alternatiflerle karşılaştırın

### 🔧 **Code Contributions (Kod Katkıları)**
- Bug fixes
- Performance improvements
- New features
- Documentation updates

### 📚 **Documentation**
- README improvements
- Code comments
- Tutorial yazıları
- API documentation

## 🚀 Başlangıç Adımları

### 1️⃣ **Repository'yi Fork Edin**
```bash

# GitHub'da Fork butonuna tıklayın

# Sonra local'e clone edin:

git clone https://github.com/YOUR-USERNAME/novaai.git

cd novaai

```

### 2️⃣ **Development Environment Kurun**
```bash

# Virtual environment oluşturun

python -m venv venv

source venv/bin/activate  # Linux/Mac

# venv\Scripts\activate    # Windows



# Dependencies yükleyin

pip install -r requirements.txt

pip install -r requirements-dev.txt  # Dev dependencies

```

### 3️⃣ **Model Dosyalarını Hazırlayın**
```bash

# MODEL_SETUP.md rehberini takip edin

mkdir nova-ai-model

# Model dosyalarınızı bu klasöre yerleştirin

```

## 📋 Development Workflow

### 🌿 **Branch Oluşturma**
```bash

# Main branch'ten yeni branch oluşturun

git checkout main

git pull origin main

git checkout -b feature/amazing-feature



# Veya bug fix için:

git checkout -b fix/bug-description

```

### 💻 **Code Style**
```python

# Python kod standartları:

# - PEP 8 compliance

# - Type hints kullanın

# - Docstrings ekleyin



def nova_chat(message: str, history: List[Dict]) -> str:

    """

    Nova AI ile sohbet fonksiyonu.

    

    Args:

        message: Kullanıcı mesajı

        history: Sohbet geçmişi

        

    Returns:

        Nova AI yanıtı

    """

    # Implementation here

    pass

```

### 🧪 **Testing**
```bash

# Testleri çalıştırın

python -m pytest tests/



# Linting kontrolleri

flake8 .

black --check .

mypy .



# Security check

bandit -r .

```

### 📝 **Commit Messages**
```bash

# Anlamlı commit messages yazın:

git commit -m "✨ Add: Nova AI temperature control feature



- Add temperature parameter to chat function

- Update Gradio interface with slider

- Add tests for temperature validation

- Update documentation



Fixes #123"

```

## 🔍 Code Review Süreci

### 📋 **Pull Request Checklist**
- [ ] Code changes test edildi
- [ ] Yeni features için testler eklendi
- [ ] Documentation güncellendi
- [ ] Commit messages açıklayıcı
- [ ] Code style check'leri geçiyor
- [ ] No breaking changes (veya belirtildi)

### 🎯 **Pull Request Template**
```markdown

## 📝 Description

Brief description of changes



## 🔧 Type of Change

- [ ] Bug fix

- [ ] New feature  

- [ ] Breaking change

- [ ] Documentation update



## 🧪 Testing

- [ ] Tests pass locally

- [ ] Added tests for new features

- [ ] Manual testing completed



## 📋 Checklist

- [ ] Code follows style guidelines

- [ ] Self-review completed

- [ ] Documentation updated

- [ ] No conflicts with main branch

```

## 🛠️ Development Guidelines

### 🎯 **Nova AI Specific Guidelines**

#### 🧠 **Model Integration**
```python

# Model loading best practices:

def load_nova_model(model_path: str) -> Tuple[Any, Any]:

    """Load Nova AI model with error handling."""

    try:

        tokenizer = AutoTokenizer.from_pretrained(model_path)

        model = AutoModelForCausalLM.from_pretrained(

            model_path,

            torch_dtype=torch.float16,

            device_map="auto"

        )

        return model, tokenizer

    except Exception as e:

        logger.error(f"Model loading failed: {e}")

        raise

```

#### 🌐 **API Design**
```python

# FastAPI endpoint conventions:

@app.post("/chat", response_model=ChatResponse)

async def chat_endpoint(request: ChatRequest) -> ChatResponse:

    """Nova AI chat endpoint with proper error handling."""

    try:

        # Validate input

        if not request.message.strip():

            raise HTTPException(400, "Message cannot be empty")

        

        # Process with Nova AI

        response = await nova_chat(request.message, request.history)

        

        return ChatResponse(

            response=response,

            model="Teknova Nova AI",

            timestamp=datetime.utcnow()

        )

    except Exception as e:

        logger.error(f"Chat error: {e}")

        raise HTTPException(500, "Internal server error")

```

#### 🎨 **UI/UX Standards**
```python

# Gradio interface guidelines:

with gr.Blocks(theme=gr.themes.Soft()) as demo:

    gr.HTML("""

    <div style="text-align: center; padding: 20px;">

        <h1>🚀 Teknova Nova AI</h1>

        <p>Özgün yapay zeka teknolojisi</p>

    </div>

    """)

    

    # Always include:

    # - Clear labeling

    # - Error handling

    # - Loading states

    # - Responsive design

```

## 🏗️ Project Structure

```

novaai/

├── 📁 .github/

│   ├── workflows/          # GitHub Actions

│   ├── ISSUE_TEMPLATE/     # Issue templates

│   └── PULL_REQUEST_TEMPLATE.md

├── 📁 src/

│   ├── nova_ai/           # Main package

│   ├── api/               # API endpoints

│   ├── ui/                # User interfaces

│   └── utils/             # Utilities

├── 📁 tests/              # Test files

├── 📁 docs/               # Documentation

├── 📁 scripts/            # Build/deploy scripts

├── 🔧 requirements.txt

├── 🔧 requirements-dev.txt

├── 📋 pyproject.toml

└── 📖 README.md

```

## 🎯 Öncelikli Katkı Alanları

### 🔥 **High Priority**
- [ ] **Performance optimization** - Model inference speed
- [ ] **Memory management** - RAM kullanımı iyileştirmeleri
- [ ] **Error handling** - Robust error recovery
- [ ] **Testing coverage** - Unit ve integration testler

### 🌟 **Medium Priority**  
- [ ] **New UI features** - Advanced chat options
- [ ] **API extensions** - Batch processing
- [ ] **Documentation** - Tutorial videos
- [ ] **Localization** - Multi-language support

### 💡 **Nice to Have**
- [ ] **Mobile optimization** - Responsive design
- [ ] **Plugin system** - Extensible architecture
- [ ] **Analytics** - Usage metrics
- [ ] **Deployment tools** - Docker, K8s support

## 🤔 Sorularınız mı Var?

### 💬 **İletişim Kanalları**
- **GitHub Discussions**: Genel sorular için
- **GitHub Issues**: Bug reports ve feature requests
- **Email**: teknova@example.com (teknik destek)
- **Discord**: Nova AI Community Server

### 📚 **Yararlı Kaynaklar**
- [Python Style Guide](https://pep8.org/)
- [Transformers Documentation](https://huggingface.co/docs/transformers)
- [FastAPI Best Practices](https://fastapi.tiangolo.com/tutorial/)
- [Gradio Documentation](https://gradio.app/docs/)

## 🙏 Teşekkürler

Nova AI projesine katkıda bulunan herkese teşekkür ederiz! Sizin katkılarınız Nova AI'yi daha da güçlü kılıyor.

### 🏆 **Katkıda Bulunanlar**
- **Teknova Team** - Proje kurucu ekibi
- **Community Contributors** - Açık kaynak katkıları

---

🚀 **Teknova Nova AI** - Birlikte daha güçlüyüz!

*Bu rehber sürekli güncellenmektedir. Önerilerinizi GitHub Discussions'ta paylaşabilirsiniz.*