Skip to content

Commit 6fee8a3

Browse files
Zach LasiukZach Lasiuk
authored andcommitted
updated RAG changes
1 parent 379ed09 commit 6fee8a3

File tree

7 files changed

+4
-5
lines changed

7 files changed

+4
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ example_user_prompts:
2121
- Do Hyperscan and Snort3 work on Graviton4?
2222
- How can I easily build multi-architecture Docker images?
2323

24-
rag_data_cutoff_date: 2025/01/13
24+
rag_data_cutoff_date: 2025/01/17
2525

2626
title_chatbot_area: Arm RAG Demo
2727

themes/arm-design-system-hugo-theme/layouts/partials/demo-components/config-rag.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<div class="c-row u-gap-1/2 u-flex-nowrap u-padding-top-0">
2323
<div class="c-col">
2424
<h2>RAG Vector Store Details</h2>
25-
<p>This app uses all data on this site, <a href="https://www.learn.arm.com">learn.arm.com</a>, as the RAG data set. The Markdown formatted content across Learning Paths and Install Guides was segmented into labeled chunks, vector embeddings were generated using FAISS, which the LLM demo below references for your query.</p>
25+
<p>This app uses all data on this site, <a href="https://www.learn.arm.com">learn.arm.com</a>, as the RAG data set. The Markdown formatted content across Learning Paths and Install Guides was segmented into labeled chunks, and vector embeddings were generated. FAISS is used for the embedded similarity search. The LLM demo below references this vector store for your query.</p>
2626
<p><b>Note:</b> Data was sourced on {{.Params.rag_data_cutoff_date}}.</p>
2727
</div>
2828
</div>

themes/arm-design-system-hugo-theme/layouts/partials/demo-components/llm-chatbot/javascript--llm-chatbot.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -578,16 +578,15 @@
578578
{{ $server_location := "" }};
579579

580580
{{ if eq .Params.demo_template_name "llm_chatbot_rag_demo" }}
581-
{{ $server_location = getenv "HUGO_LLM_API" | base64Encode }}
581+
{{ $server_location = getenv "HUGO_RAG_API" | base64Encode }}
582582
console.log('Using RAG API.');
583583
{{ else if eq .Params.demo_template_name "llm_chatbot_first_demo" }}
584-
{{ $server_location = getenv "HUGO_RAG_API" | base64Encode }}
584+
{{ $server_location = getenv "HUGO_LLM_API" | base64Encode }}
585585
console.log('Using LLM API.');
586586
{{ else }}
587587
console.log('No server location provided.');
588588
{{ end }}
589589

590-
591590
const server_location_encoded = '{{ $server_location }}';
592591

593592

0 commit comments

Comments
 (0)