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
-[Running application at no cost](#running-application-at-no-cost)
50
51
-[Using the app](#using-the-app)
51
52
-[Clean up](#clean-up)
52
53
-[Guidance](#guidance)
@@ -81,6 +82,8 @@ However, you can try the [Azure pricing calculator](https://azure.com/e/a87a169b
81
82
82
83
To reduce costs, you can switch to free SKUs for various services, but those SKUs have limitations.
83
84
85
+
To try out the example at no cost refer [Running application at no cost](#running-application-at-no-cost).
86
+
84
87
To avoid unnecessary costs, remember to take down your app if it's no longer in use,
85
88
either by deleting the resource group in the Portal or running `azd down`.
86
89
@@ -227,6 +230,37 @@ npm run dev
227
230
228
231
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
229
232
233
+
234
+
## Running application at no cost
235
+
This approach uses free GitHub Models endpoint to access GPT models and embedding, and free Azure AI Search endpoint for data indexing and retrieval.
236
+
237
+
First, install the project dependencies:
238
+
239
+
```
240
+
npm install
241
+
```
242
+
243
+
Create a GitHub personal access token (refer [Managing your personal access tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) for creating tokens). In the root of the project, create a `.env` file and provide values for below environment variables(refer `.env.example`):
244
+
245
+
```
246
+
GITHUB_TOKEN=
247
+
LLAMAINDEX_STORAGE_CACHE_DIR=
248
+
```
249
+
250
+
Next, generate the embeddings of the documents in the [./data](./data) directory:
251
+
252
+
```
253
+
npm run generate
254
+
```
255
+
256
+
Finally, run the development server:
257
+
258
+
```
259
+
npm run dev
260
+
```
261
+
262
+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
263
+
230
264
## Using the app
231
265
232
266
- In Azure: navigate to the Azure app deployed by `azd`. The URL is printed out when `azd` completes (as "Endpoint"), or you can find it in the Azure portal.
0 commit comments