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
To sort by `MEM%` and obtain the top 10 processes:
603
604
604
605
```azurecli-interactive
@@ -634,13 +635,4 @@ echo "$extracted"
634
635
635
636
To run, you can create a file with the above contents, add execute permissions by running `chmod +x gather.sh`, and run with `sudo ./gather.sh`.
636
637
637
-
This script saves the output of the commands in a file located in the same directory where the script was invoked.
638
-
639
-
Additionally, all the commands in the bash block codes covered in this document, can be run through `az-cli` using the run-command extension, and parsing the output through `jq` to obtain a similar output to running the commands locally: `
Create a `templates` directory inside `scenarios/PostgresRagLlmDemo` and add an `index.html` file with the following content:
187
-
188
-
```html
189
-
<!doctype html>
190
-
<html lang="en">
191
-
<head>
192
-
<title>Chatbot Interface</title>
193
-
</head>
194
-
<body>
195
-
<h1>Ask about Zytonium</h1>
196
-
<form action="/ask" method="post">
197
-
<input type="text" name="question" required>
198
-
<button type="submit">Ask</button>
199
-
</form>
200
-
<pre>{{ response }}</pre>
201
-
</body>
202
-
</html>
203
-
```
204
-
205
-
4. **Run the Web Server**
206
-
207
-
Ensure that all environment variables are exported and then run the Flask application:
208
-
209
-
```bash
210
-
export API_KEY="$API_KEY"
211
-
export ENDPOINT="$ENDPOINT"
212
-
export PGUSER="$PGUSER"
213
-
export PGHOST="$PGHOST"
214
-
export PGPASSWORD="$PGPASSWORD"
215
-
export PGDATABASE="$PGDATABASE"
216
-
217
-
python app.py
218
-
```
219
-
220
-
The web interface will be accessible at `http://localhost:5000`. You can ask questions about Zytonium through the browser.
221
-
222
-
## Next Steps
223
-
224
-
- Explore more features of [Azure Cognitive Search](https://learn.microsoft.com/azure/search/search-what-is-azure-search).
225
-
- Learn how to [use Azure OpenAI with your data](https://learn.microsoft.com/azure/cognitive-services/openai/use-your-data).
226
-
<!-- ## Run Chat bot
227
-
228
-
This final step initializes the chatbot in your terminal. You can ask it questions about Zytonium and it will use the embeddings in the postgres database to augment your query with relevant context before sending it to the LLM model.
229
-
230
-
```bash
231
-
echo"Ask the chatbot a question about Zytonium!"
232
-
```
141
+
To run the chatbot, paste this following command to the terminal: `cd ~/scenarios/PostgresRagLlmDemo && python chat.py --api-key $API_KEY --endpoint $ENDPOINT --pguser $PGUSER --phhost $PGHOST --pgpassword $PGPASSWORD --pgdatabase $PGDATABASE`
0 commit comments