You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dieser Kurs bietet eine Reihe von Jupyter Notebooks, die du ausführen kannst, um praktische Erfahrungen im Aufbau von KI-Agenten zu sammeln.
17
+
18
+
Die Code-Beispiele verwenden entweder:
19
+
20
+
**Benötigt GitHub-Konto – Kostenlos**:
21
+
22
+
1) Semantic Kernel Agent Framework + GitHub Models Marketplace. Bezeichnet als (semantic-kernel.ipynb)
23
+
2) AutoGen Framework + GitHub Models Marketplace. Bezeichnet als (autogen.ipynb)
24
+
25
+
**Benötigt Azure-Abonnement**:
26
+
3) Azure AI Foundry + Azure AI Agent Service. Bezeichnet als (azureaiagent.ipynb)
27
+
28
+
Wir empfehlen dir, alle drei Beispieltypen auszuprobieren, um herauszufinden, welcher für dich am besten funktioniert.
29
+
30
+
Welche Option du auch wählst, sie bestimmt, welche Einrichtungsschritte du unten befolgen musst:
31
+
32
+
## Voraussetzungen
33
+
34
+
- Python 3.12+
35
+
- Ein GitHub-Konto – Für den Zugriff auf den GitHub Models Marketplace
36
+
- Azure-Abonnement – Für den Zugriff auf Azure AI Foundry
37
+
- Azure AI Foundry-Konto – Für den Zugriff auf den Azure AI Agent Service
38
+
39
+
Wir haben eine `requirements.txt` Datei im Hauptverzeichnis dieses Repositories eingefügt, die alle erforderlichen Python-Pakete für die Ausführung der Code-Beispiele enthält.
40
+
41
+
Du kannst sie installieren, indem du folgenden Befehl im Terminal im Hauptverzeichnis des Repositories ausführst:
42
+
43
+
```bash
44
+
pip install -r requirements.txt
45
+
```
46
+
Wir empfehlen, eine Python-virtuelle Umgebung zu erstellen, um Konflikte und Probleme zu vermeiden.
47
+
48
+
## Einrichtung für Beispiele mit GitHub Models
49
+
50
+
### Schritt 1: Deinen GitHub Personal Access Token (PAT) abrufen
51
+
52
+
Aktuell verwendet dieser Kurs den GitHub Models Marketplace, um kostenlosen Zugang zu Large Language Models (LLMs) zu bieten, die zur Erstellung von KI-Agenten genutzt werden.
53
+
54
+
Um diesen Dienst zu nutzen, musst du einen GitHub Personal Access Token erstellen.
55
+
56
+
Das kannst du tun, indem du dich in deinem GitHub-Konto anmeldest.
57
+
58
+
Wähle `Fine-grained tokens` option on the left side of your screen.
You will be prompted to enter a name for your token, select the expiration date (Recommended: 30 Days), and select the scopes for your token (Public Repositories).
19
65
66
+
It's also necessary to edit the permissions of this token: Permissions -> Models -> Allows access to GitHub Models
67
+
20
68
Copy your new token that you have just created. You will now add this to your `.env` file included in this course.
21
69
22
70
23
71
### Step 2: Create Your `.env` File
24
72
25
-
To create your `.env` Datei und führe den folgenden Befehl in deinem Terminal aus.
73
+
To create your `.env` Datei und führe folgenden Befehl im Terminal aus:
26
74
27
75
```bash
28
76
cp .env.example .env
@@ -38,17 +86,17 @@ You should now be able to run the code samples of this course.
38
86
39
87
### Step 1: Retrieve Your Azure Project Connection String
40
88
41
-
Follow the steps to creating a project and agent in Azure AI Foundry found here: [Create a project in Azure AI Foundry](https://learn.microsoft.com/en-us/azure/ai-services/agents/quickstart?pivots=ai-foundry-portal?WT.mc_id=academic-105485-koreyst)
89
+
Follow the steps to create a project and agent in Azure AI Foundry found here: [Create a project in Azure AI Foundry](https://learn.microsoft.com/en-us/azure/ai-services/agents/quickstart?pivots=ai-foundry-portal?WT.mc_id=academic-105485-koreyst)
42
90
43
91
Once you have created your project, you will need to retrieve the connection string for your project.
44
92
45
93
This can be done by going to the **Overview** page of your project in the Azure AI Foundry portal.
To create your `.env` Datei. Führe den folgenden Befehl in deinem Terminal aus.
99
+
To create your `.env` Datei. Führe folgenden Befehl im Terminal aus:
52
100
53
101
```bash
54
102
cp .env.example .env
@@ -67,7 +115,7 @@ Next, open a terminal and run `az login --use-device-code` to sign in to your Az
67
115
Once you've logged in, select your subscription in the terminal.
68
116
69
117
70
-
## Additional Envionment Variables - Azure Search and Azure OpenAI
118
+
## Additional Environment Variables - Azure Search and Azure OpenAI
71
119
72
120
For the Agentic RAG Lesson - Lesson 5 - there are samples that use Azure Search and Azure OpenAI.
73
121
@@ -109,25 +157,25 @@ If you want to run these samples, you will need to add the following environment
109
157
110
158
### Setup keyless authentication
111
159
112
-
Rather than hardcode your credentials, we'll use a keyless connection with Azure OpenAI. To do so, we'll import `DefaultAzureCredential` and later call the `DefaultAzureCredential` Funktion, um die Anmeldeinformationen zu erhalten.
160
+
Rather than hardcode your credentials, we'll use a keyless connection with Azure OpenAI. To do so, we'll import `DefaultAzureCredential` and later call the `DefaultAzureCredential` Funktion, um die Anmeldedaten zu erhalten.
113
161
114
162
```python
115
163
from azure.identity import DefaultAzureCredential, InteractiveBrowserCredential
116
164
```
117
165
118
-
## Steckst du irgendwo fest?
166
+
## Hängst du irgendwo fest?
119
167
120
-
Wenn du Probleme bei der Einrichtung hast, tritt unserem
168
+
Wenn du Probleme bei der Einrichtung hast, komm gerne in unseren
121
169
122
170
oder
123
171
124
-
bei.
172
+
.
125
173
126
174
## Nächste Lektion
127
175
128
-
Du bist jetzt bereit, den Code dieses Kurses auszuführen. Viel Erfolg und viel Spaß beim weiteren Lernen über die Welt der KI-Agenten!
176
+
Du bist jetzt bereit, den Code für diesen Kurs auszuführen. Viel Spaß dabei, mehr über die Welt der KI-Agenten zu lernen!
129
177
130
-
[Einführung in KI-Agenten und Anwendungsfälle für Agenten](../01-intro-to-ai-agents/README.md)
178
+
[Introduction to AI Agents and Agent Use Cases](../01-intro-to-ai-agents/README.md)
131
179
132
180
**Haftungsausschluss**:
133
-
Dieses Dokument wurde mit dem KI-Übersetzungsdienst[Co-op Translator](https://github.com/Azure/co-op-translator) übersetzt. Obwohl wir uns um Genauigkeit bemühen, beachten Sie bitte, dass automatisierte Übersetzungen Fehler oder Ungenauigkeiten enthalten können. Das Originaldokument in seiner ursprünglichen Sprache gilt als maßgebliche Quelle. Für wichtige Informationen wird eine professionelle menschliche Übersetzung empfohlen. Wir übernehmen keine Haftung für Missverständnisse oder Fehlinterpretationen, die aus der Verwendung dieser Übersetzung entstehen.
181
+
Dieses Dokument wurde mithilfe des KI-Übersetzungsdienstes[Co-op Translator](https://github.com/Azure/co-op-translator) übersetzt. Obwohl wir uns um Genauigkeit bemühen, beachten Sie bitte, dass automatisierte Übersetzungen Fehler oder Ungenauigkeiten enthalten können. Das Originaldokument in seiner Ursprungssprache gilt als maßgebliche Quelle. Für wichtige Informationen wird eine professionelle menschliche Übersetzung empfohlen. Wir übernehmen keine Haftung für Missverständnisse oder Fehlinterpretationen, die aus der Nutzung dieser Übersetzung entstehen.
0 commit comments