]> BookStack Code Mirror - bookstack/blob - resources/views/search/query.blade.php
Vectors: Got basic LLM querying working using vector search context
[bookstack] / resources / views / search / query.blade.php
1 @extends('layouts.simple')
2
3 @section('body')
4     <div class="container mt-xl" id="search-system">
5
6         <form action="{{ url('/search/query') }}" method="get">
7             <input name="query" type="text">
8             <button class="button">Query</button>
9         </form>
10
11         @if($results)
12             <h2>Results</h2>
13
14             <h3>LLM Output</h3>
15             <p>{{ $results['llm_result'] }}</p>
16
17             <h3>Entity Matches</h3>
18             @foreach($results['entity_matches'] as $match)
19                 <div>
20                     <div><strong>{{ $match['entity_type'] }}:{{ $match['entity_id'] }}; Distance: {{ $match['distance'] }}</strong></div>
21                     <details>
22                         <summary>match text</summary>
23                          <div>{{ $match['text'] }}</div>
24                     </details>
25                 </div>
26             @endforeach
27         @endif
28     </div>
29 @stop