Skip to content

Update dataset & adjust default search parameters #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/KernelMemory.Ecommerce.Sample.Api/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ProductSearch": {
"SearchResultsLimit": 5,
"MinSearchResultsRelevance": 0.8
"MinSearchResultsRelevance": 0.7
},
"KernelMemory": {
"Services": {
Expand Down
42 changes: 21 additions & 21 deletions src/KernelMemory.Ecommerce.Sample.Api/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,27 +241,6 @@ <h2 class="subtitle">Vector Search</h2>
<div id="vectorSearchResult" class="mt-4"></div>
</section>

<!-- RAG Search Section -->
<section class="box" id="ragSearchSection">
<h2 class="subtitle">RAG Search</h2>
<div class="field">
<div class="control">
<input class="input" type="text" id="ragSearchQuery" placeholder="Enter search query">
</div>
</div>
<button id="ragSearchButton" class="button is-unified" onclick="ragSearch()">Search</button>

<!-- RAG Search Category Buttons -->
<div class="category-buttons">
<button class="button is-info" onclick="ragSearch('Gaming Console')">Gaming Console</button>
<button class="button is-info" onclick="ragSearch('Smartphone')">Smartphone</button>
<button class="button is-info" onclick="ragSearch('Laptop')">Laptop</button>
<button class="button is-info" onclick="ragSearch('Headphones')">Headphones</button>
</div>

<div id="ragSearchResult" class="mt-4"></div>
</section>

<!-- RAG Streaming Search Section -->
<section class="box" id="ragStreamingSearchSection">
<h2 class="subtitle">RAG Streaming Search</h2>
Expand All @@ -285,6 +264,27 @@ <h2 class="subtitle">RAG Streaming Search</h2>

</section>

<!-- RAG Search Section -->
<section class="box" id="ragSearchSection">
<h2 class="subtitle">RAG Search</h2>
<div class="field">
<div class="control">
<input class="input" type="text" id="ragSearchQuery" placeholder="Enter search query">
</div>
</div>
<button id="ragSearchButton" class="button is-unified" onclick="ragSearch()">Search</button>

<!-- RAG Search Category Buttons -->
<div class="category-buttons">
<button class="button is-info" onclick="ragSearch('Gaming Console')">Gaming Console</button>
<button class="button is-info" onclick="ragSearch('Smartphone')">Smartphone</button>
<button class="button is-info" onclick="ragSearch('Laptop')">Laptop</button>
<button class="button is-info" onclick="ragSearch('Headphones')">Headphones</button>
</div>

<div id="ragSearchResult" class="mt-4"></div>
</section>

<script>
function displayFileName() {
const fileInput = document.getElementById('csvFile');
Expand Down
Loading