Add deployment instructions for Azure OpenAI setup in README
Browse files- api/README_AZURE_OPENAI.md +14 -0
api/README_AZURE_OPENAI.md
CHANGED
@@ -172,6 +172,20 @@ When the server is running, visit:
|
|
172 |
- Swagger UI: http://localhost:9621/docs
|
173 |
- ReDoc: http://localhost:9621/redoc
|
174 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
## License
|
176 |
|
177 |
This project is licensed under the MIT License - see the LICENSE file for details.
|
|
|
172 |
- Swagger UI: http://localhost:9621/docs
|
173 |
- ReDoc: http://localhost:9621/redoc
|
174 |
|
175 |
+
## Deployment
|
176 |
+
Azure OpenAI API can be created using the following commands:
|
177 |
+
```bash
|
178 |
+
az login
|
179 |
+
az group create --name LightRAG --location swedencentral
|
180 |
+
az cognitiveservices account create --name LightRAG-OpenAI --resource-group LightRAG --kind OpenAI --sku S0 --location swedencentral
|
181 |
+
az cognitiveservices account deployment create --resource-group LightRAG --model-format OpenAI --name LightRAG-OpenAI --deployment-name gpt-4o --model-name gpt-4o --model-version "2024-08-06" --sku-capacity 100 --sku-name "Standard"
|
182 |
+
az cognitiveservices account deployment create --resource-group LightRAG --model-format OpenAI --name LightRAG-OpenAI --deployment-name text-embedding-3-large --model-name text-embedding-3-large --model-version "1" --sku-capacity 80 --sku-name "Standard"
|
183 |
+
az cognitiveservices account show --name LightRAG-OpenAI --resource-group LightRAG --query "properties.endpoint"
|
184 |
+
az cognitiveservices account keys list --name LightRAG-OpenAI -g LightRAG
|
185 |
+
|
186 |
+
```
|
187 |
+
|
188 |
+
|
189 |
## License
|
190 |
|
191 |
This project is licensed under the MIT License - see the LICENSE file for details.
|