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
Copy file name to clipboardExpand all lines: README.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ We use the [HTTP protocol for AI chat apps](https://github.com/Azure-Samples/ai-
54
54
55
55
There are multiple ways to get started with this project.
56
56
57
-
The quickest way to use [GitHub Codespaces](#use-github-codespaces) that provides a preconfigured environment for you. Alternatively, you can [set up your local environment](#use-your-local-environment) following the instructions below.
57
+
The quickest way is to use [GitHub Codespaces](#use-github-codespaces) that provides a preconfigured environment for you. Alternatively, you can [set up your local environment](#use-your-local-environment) following the instructions below.
58
58
59
59
> [!IMPORTANT]
60
60
> If you want to run this sample entirely locally using Ollama, you have to follow the instructions in the [local environment](#use-your-local-environment) section.
@@ -75,10 +75,11 @@ Then you can get the project code:
75
75
76
76
1.[**Fork**](https://github.com/Azure-Samples/serverless-chat-langchainjs/fork) the project to create your own copy of this repository.
77
77
2. On your forked repository, select the **Code** button, then the **Local** tab, and copy the URL of your forked repository.
78
+
78
79
<divalign="center">
79
80
<imgsrc="./docs/images/clone-url.png"alt="Screenshot showing how to copy the repository URL"width="400px" />
80
81
</div>
81
-
3. Open a terminal and run this command to clone the repo: `git clone <your-repo-url>`
82
+
3. Open a terminal and run this command to clone the repo: <code> git clone <your-repo-url> </code>
82
83
83
84
### Use GitHub Codespaces
84
85
@@ -116,13 +117,13 @@ After that you have to install the NPM dependencies:
116
117
npm install
117
118
```
118
119
119
-
Then you can start the application by running the commands:
120
+
Then you can start the application by running the following command which will start the web app and the API locally:
120
121
121
122
```bash
122
123
npm start
123
124
```
124
125
125
-
This will start the web app and the API locally. Then we need to upload the PDF documents from the `/data` folder to the API with the command:
126
+
Then, open a new terminal running concurrently and run the following command to upload the PDF documents from the `/data` folder to the API:
126
127
127
128
```bash
128
129
npm run upload:docs
@@ -141,13 +142,13 @@ First you need to provision the Azure resources needed to run the sample. Follow
141
142
142
143
Once your deployment is complete, you should see a `.env` file in the `packages/api` folder. This file contains the environment variables needed to run the application using Azure resources.
143
144
144
-
To run the sample, you can then use the same commands as for the Ollama setup:
145
+
To run the sample, you can then use the same commands as for the Ollama setup. This will start the web app and the API locally:
145
146
146
147
```bash
147
148
npm start
148
149
```
149
150
150
-
This will start the web app and the API locally. Open the URL `http://localhost:8000` in your browser to start chatting with the bot.
151
+
Open the URL `http://localhost:8000` in your browser to start chatting with the bot.
151
152
152
153
Note that the documents are uploaded automatically when deploying the sample to Azure with `azd up`.
153
154
@@ -159,7 +160,6 @@ Note that the documents are uploaded automatically when deploying the sample to
159
160
#### Azure prerequisites
160
161
161
162
-**Azure account**. If you're new to Azure, [get an Azure account for free](https://azure.microsoft.com/free) to get free Azure credits to get started. If you're a student, you can also get free credits with [Azure for Students](https://aka.ms/azureforstudents).
162
-
163
163
-**Azure subscription with access enabled for the Azure OpenAI service**. You can request access with [this form](https://aka.ms/oaiapply).
0 commit comments