File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
advocacy_docs/playground/1/01_examples Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -33,3 +33,13 @@ asdasd
33
33
asdasd
34
34
asdasdafasfa
35
35
</pre >
36
+
37
+ ``` sql
38
+ SELECT * FROM aidb .retrieve_text (' test_knowledge_base' , ' jacket' , 2 );
39
+ __OUTPUT__
40
+ key | value | distance
41
+ -- -----+----------------------------------------------------+--------------------
42
+ 19337 | United Colors of Benetton Men Stripes Black Jacket | 0 .2994317672742334
43
+ 55018 | Lakme 3 in 1 Orchid Aqua Shine Lip Color | 0 .3804609668507203
44
+ (2 rows)
45
+ ```
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ const splitChildrenIntoCodeAndOutput = (rawChildren) => {
27
27
return [ [ ] , [ ] ] ;
28
28
}
29
29
30
- const splitRegex = / (?: \s + | ^ ) _ _ O U T P U T _ _ \s * (?: \n + | $ ) / ;
30
+ // Simplified regex to split on the __OUTPUT__ marker
31
+ const splitRegex = / \n _ _ O U T P U T _ _ \n / ;
31
32
const code = [ ] ;
32
33
const output = [ ] ;
33
34
You can’t perform that action at this time.
0 commit comments