Skip to content

Commit 6636bdc

Browse files
committed
fix all links for images and assets
1 parent 7a08f8c commit 6636bdc

File tree

7 files changed

+46
-46
lines changed

7 files changed

+46
-46
lines changed

.github/steps/2-to-azure.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ In this step, you will learn how to deploy your AI model to Azure AI Foundry aft
2626

2727
1. On the separate tab on the GitHub models playground, click on **Use this model** and select **Language: JavaScript** and **SDK: Azure AI Inference SDK**.
2828

29-
![Use model](https://github.com/juliamuiruri4/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/use-this-model-button.png?raw=true)
29+
![Use model](https://github.com/Azure-Samples/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/use-this-model-button.png?raw=true)
3030

3131
2. Under **Create a personal access token**, select **Get production key** and this will take you to ai.azure.com and prompt you to:-
3232
- Sign in to your Azure account
3333
- Select your Azure subscription
3434
- Deploy model
3535

36-
![Select subscription](https://github.com/juliamuiruri4/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/ai-foundry-select-subscription.png?raw=true)
36+
![Select subscription](https://github.com/Azure-Samples/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/ai-foundry-select-subscription.png?raw=true)
3737

3838
3. The model you selected will be pre-populated in the **Deployment name** field. You can optionally click on **Customize** to change the default configuration on deployment type, model version, tokens per minute (TPM) rate limit etc.
3939

40-
![Customize model for deployment](https://github.com/juliamuiruri4/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/deploy-model.png?raw=true)
40+
![Customize model for deployment](https://github.com/Azure-Samples/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/deploy-model.png?raw=true)
4141

4242
## 🧰 AI Foundry VS Code Extension
4343

@@ -47,15 +47,15 @@ To continue working with your deployed model in VS Code, you will need to instal
4747

4848
2. Once installed, click on the **AI Foundry** icon in the left sidebar and click on **Set Default Project**. Select your project and expand the **Models** section. You should see your deployed model(s) listed there.
4949

50-
![Set default project](https://github.com/juliamuiruri4/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/set-default-project.png?raw=true)
50+
![Set default project](https://github.com/Azure-Samples/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/set-default-project.png?raw=true)
5151

5252
3. Click on the model name to open the model details view, where you can see the model's metadata, including the model version, deployment status, and TPM rate limit.
5353

54-
![List of models](https://github.com/juliamuiruri4/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/model-list.png?raw=true)
54+
![List of models](https://github.com/Azure-Samples/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/model-list.png?raw=true)
5555

5656
4. Right click on your model and select **Open in Playground**. This will open a tab in VS Code with a chat Playground, where you can test your deployed model.
5757

58-
![AI Foundry playground](https://github.com/juliamuiruri4/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/ai-foundry-playground.png?raw=true)
58+
![AI Foundry playground](https://github.com/Azure-Samples/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/ai-foundry-playground.png?raw=true)
5959

6060
5. You can also use the **Compare** feature to compare the performance of your deployed model with other models for manual evaluation. Once you are happy with the performance of your deployed model, right click on the model and select **Open Code File**, then:
6161
- Select **SDK**: Azure AI Inference SDK/ Azure OpenAI SDK
@@ -89,7 +89,7 @@ To continue working with your deployed model in VS Code, you will need to instal
8989

9090
8. Finally, run `node ai-foundry.js` and observe the output in the terminal. You should see the response from your deployed model.
9191

92-
![AI Foundry sample code](https://github.com/juliamuiruri4/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/run-ai-foundry-sample.png?raw=true)
92+
![AI Foundry sample code](https://github.com/Azure-Samples/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/run-ai-foundry-sample.png?raw=true)
9393

9494

9595
## ✅ Activity: Push `ai-foundry.js` code to your repository

.github/steps/3-add-chat-ui.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ npm run dev
7575

7676
Navigate to `http://localhost:5173` in your browser to see the chat interface.
7777

78-
![AI Chat Interface](https://github.com/juliamuiruri4/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/vite-lit-ai-chat-interface.png?raw=true)
78+
![AI Chat Interface](https://github.com/Azure-Samples/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/vite-lit-ai-chat-interface.png?raw=true)
7979

8080
## Step 2️⃣: Add your AI model to the chat interface
8181

@@ -215,7 +215,7 @@ Rename the `_mockAiCall` function to `_apiCall` and update the `sendMessage` met
215215

216216
With the server running, navigate to `http://localhost:5173` in your browser. You should be able to send messages to the AI model and receive responses.
217217

218-
![AI Chat Interface AI Foundry](https://github.com/juliamuiruri4/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/ai-chat-interface-ai-foundry.png?raw=true)
218+
![AI Chat Interface AI Foundry](https://github.com/Azure-Samples/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/ai-chat-interface-ai-foundry.png?raw=true)
219219

220220
## Step 4️⃣: Deploy to Azure
221221

@@ -302,7 +302,7 @@ To deploy the application,
302302
- Select your Azure subscription,
303303
- Select a location for the resources.
304304

305-
![azd up](https://github.com/juliamuiruri4/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/azd-up.png?raw=true)
305+
![azd up](https://github.com/Azure-Samples/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/azd-up.png?raw=true)
306306

307307

308308
## ✅ Activity: Push deployment infra code to your repository

.github/steps/4-add-rag.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ In this step, you will learn how to add RAG (**R**etrieval-**A**ugmented **G**en
2323

2424
To complete this step, you will need to get a sample dataset in any format (e.g., PDF, CSV, JSON) to work with.
2525

26-
An an example, will use a [sample Contoso Electronics Employee Handbook PDF](https://github.com/juliamuiruri4/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/employee_handbook.pdf) file. **You can bring any file of your choice**, but make sure it contains relevant information that you want your AI app to use for RAG. The code provided here will work with any text-based file.
26+
An an example, will use a [sample Contoso Electronics Employee Handbook PDF](https://github.com/Azure-Samples/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/employee_handbook.pdf) file. **You can bring any file of your choice**, but make sure it contains relevant information that you want your AI app to use for RAG. The code provided here will work with any text-based file.
2727

2828
- Create a new folder `data` in the root of your project and move the file in it. To search and read your PDF, you will need to extract the text from it. You can use any PDF parser library of your choice, but for this example, we will use the `pdf-parse` library.
2929

@@ -364,24 +364,24 @@ Open your browser to use the app, usually at `http://localhost:5123`.
364364
2. Ask a question related to the employee handbook, such as _"What is our company's mission statement?"_
365365
- The expected outcome is that the AI will respond with an answer based on the content of the employee handbook PDF, and the relevant excerpts will be displayed below the response.
366366

367-
![AI Foundry RAG with context](https://github.com/juliamuiruri4/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/ai-app-with-rag.png?raw=true)
367+
![AI Foundry RAG with context](https://github.com/Azure-Samples/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/ai-app-with-rag.png?raw=true)
368368

369369
3. Now ask a question not covered in the employee handbook, such as _"What's the company's stock price?"_
370370
- The expected outcome is that the AI will respond saying it doesn't have the information, and no excerpts will be displayed.
371371
372-
![AI Foundry RAG out of scope](https://github.com/juliamuiruri4/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/ai-app-with-rag-outofscope.png?raw=true)
372+
![AI Foundry RAG out of scope](https://github.com/Azure-Samples/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/ai-app-with-rag-outofscope.png?raw=true)
373373
374374
### Test with RAG OFF 🔴
375375
1. **Clear chat and uncheck the "Use Employee Handbook" checkbox**.
376376
2. Ask a question related to the employee handbook, such as _"What is our company's mission statement?"_
377377
- The expected outcome is that the AI will respond with a generic answer, and likely ask for more context, and no excerpts will be displayed.
378378
379-
![AI Foundry no RAG no context](https://github.com/juliamuiruri4/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/no-rag-company.png?raw=true)
379+
![AI Foundry no RAG no context](https://github.com/Azure-Samples/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/no-rag-company.png?raw=true)
380380
381381
3. Now ask any general question, such as _"What is the capital of Morocco?"_
382382
- The expected outcome is that the AI will respond with the correct answer, and no excerpts will be displayed.
383383
384-
![AI Foundry no RAG general question](https://github.com/juliamuiruri4/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/no-rag-general.png?raw=true)
384+
![AI Foundry no RAG general question](https://github.com/Azure-Samples/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/no-rag-general.png?raw=true)
385385
386386
Notice how, with RAG enabled, the AI is strictly limited to the handbook and refuses to answer unrelated questions. With RAG disabled, the AI is more flexible and answers any question to the best of its ability.
387387

.github/steps/5-frameworks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Currently, the chat model does not remember previous messages. For example, if y
9696

9797
Then ask the model _"Quiz time. What's my name?"_. The model will not remember your name because your name is not passed to the model in the prompt.
9898

99-
![Memory test](https://github.com/juliamuiruri4/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/memory-test.png?raw=true)
99+
![Memory test](https://github.com/Azure-Samples/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/memory-test.png?raw=true)
100100

101101
To add memory, you will use LangChain's built-in memory modules - `ChatMessageHistory` and `ConversationSummaryMemory`. Conversation memory allows the AI to reference previous exchanges in a session, enabling more context-aware and coherent responses and LangChain.js provides built-in memory modules that make this easy to implement. With LangChain, you can implement stateful AI app experiences without manually managing chat logs, and you can easily switch between in-memory, Redis, or other storage options.
102102

@@ -201,7 +201,7 @@ app.post("/chat", async (req, res) => {
201201

202202
To test this, open the chat UI in your browser and send a message like _"Hey, you can call me Terry. What should I call you?"_ and then ask _"Quiz time. What's my name?"_. The model should remember your name.
203203

204-
![Memory test passed](https://github.com/juliamuiruri4/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/memory-test-passed.png?raw=true)
204+
![Memory test passed](https://github.com/Azure-Samples/JS-Journey-to-AI-Foundry/blob/assets/jsai-buildathon-assets/memory-test-passed.png?raw=true)
205205

206206
## ✅ Activity: Push your updated code to the repository
207207

0 commit comments

Comments
 (0)