|
1 | 1 | @extends('layouts.simple') |
2 | 2 |
|
3 | 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> |
| 4 | + <div component="query-manager" class="container small pt-xxl"> |
| 5 | + |
| 6 | + <div class="card content-wrap auto-height"> |
| 7 | + <h1 class="list-heading">Start a Query</h1> |
| 8 | + <form action="{{ url('/query') }}" |
| 9 | + refs="query-manager@form" |
| 10 | + title="Run Query" |
| 11 | + method="post" |
| 12 | + class="query-form"> |
| 13 | + <textarea name="query" |
| 14 | + refs="query-manager@input" |
| 15 | + class="input-fill-width" |
| 16 | + rows="5" |
| 17 | + placeholder="Enter a query" |
| 18 | + autocomplete="off">{{ $query }}</textarea> |
| 19 | + <button class="button icon">@icon('search')</button> |
| 20 | + </form> |
| 21 | + </div> |
| 22 | + |
| 23 | + <div class="card content-wrap auto-height pb-xl"> |
| 24 | + <h2 class="list-heading">Generated Response</h2> |
| 25 | + <div refs="query-manager@generated-loading"> |
| 26 | + @include('common.loading-icon') |
| 27 | + </div> |
| 28 | + <p refs="query-manager@generated-display">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ad adipisci aliquid architecto cupiditate dolor doloribus eligendi et expedita facilis fugiat fugit illo, ipsa laboriosam maiores, molestias mollitia non obcaecati porro quasi quis quos reprehenderit rerum sunt tenetur ullam unde voluptate voluptates! Distinctio et eum id molestiae nisi quisquam sed ut.</p> |
| 29 | + </div> |
| 30 | + |
| 31 | + |
| 32 | + <div class="card content-wrap auto-height pb-xl"> |
| 33 | + <h2 class="list-heading">Relevant Content</h2> |
| 34 | + <div refs="query-manager@content-loading"> |
| 35 | + @include('common.loading-icon') |
| 36 | + </div> |
| 37 | + <div class="book-contents"> |
| 38 | + <div refs="query-manager@content-display" class="entity-list"> |
| 39 | + @include('entities.list', ['entities' => $entities, 'showPath' => true, 'showTags' => true]) |
25 | 40 | </div> |
26 | | - @endforeach |
27 | | - @endif |
| 41 | + </div> |
| 42 | + </div> |
| 43 | + |
| 44 | +{{-- @if($results)--}} |
| 45 | +{{-- <h2>Results</h2>--}} |
| 46 | + |
| 47 | +{{-- <h3>LLM Output</h3>--}} |
| 48 | +{{-- <p>{{ $results['llm_result'] }}</p>--}} |
| 49 | + |
| 50 | +{{-- <h3>Entity Matches</h3>--}} |
| 51 | +{{-- @foreach($results['entity_matches'] as $match)--}} |
| 52 | +{{-- <div>--}} |
| 53 | +{{-- <div><strong>{{ $match['entity_type'] }}:{{ $match['entity_id'] }}; Distance: {{ $match['distance'] }}</strong></div>--}} |
| 54 | +{{-- <details>--}} |
| 55 | +{{-- <summary>match text</summary>--}} |
| 56 | +{{-- <div>{{ $match['text'] }}</div>--}} |
| 57 | +{{-- </details>--}} |
| 58 | +{{-- </div>--}} |
| 59 | +{{-- @endforeach--}} |
| 60 | +{{-- @endif--}} |
28 | 61 | </div> |
29 | 62 | @stop |
0 commit comments