You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOG.warn("Empty response from chat model (likely a filtered or empty candidate)", x);
366
+
returnnewMessageResponse("text/plain", "The model returned an empty response. Please try resubmitting and the problem continues, rephrase your question/prompt.", HtmlString.of("The model returned an empty response. Please try rephrasing your question."));
LOG.warn("Empty response from chat model (likely a filtered or empty candidate)", x);
399
+
returnList.of(newMessageResponse("text/plain", "The model returned an empty response. Please try rephrasing your question.", HtmlString.of("The model returned an empty response. Please try rephrasing your question.")));
400
+
}
401
+
catch (ConcurrentModificationExceptionx)
402
+
{
403
+
// This can happen when the vector store is still loading, typically a problem shortly after startup
404
+
// Should do better synchronization or state checking
405
+
LOG.warn("Vector store not ready", x);
406
+
returnList.of(newMessageResponse("text/plain", "Vector store likely not ready yet. Try again.", HtmlString.of("Vector store likely not ready yet. Try again.")));
Copy file name to clipboardExpand all lines: query/src/org/labkey/query/controllers/LabKeySql.md
+30-11Lines changed: 30 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,16 +57,16 @@ A `PIVOT` query helps you summarize and re-visualize data by transforming rows i
57
57
PIVOT new_column_name BY pivoting_column IN ('value1', 'value2')
58
58
```
59
59
Note that pivot column names are case-sensitive. You may need to use `LOWER()`or`UPPER()`in your query to work around this issue.
60
-
***Pivoting by Two Columns:**
61
-
Two levels of `PIVOT` are not directly supported. However, you can achieve a similar result by concatenating the two values together and pivoting on that "calculated" column.
62
-
```sql
63
-
SELECT
64
-
Run.SampleCondition || ' ' || PeakLabel AS ConditionPeak,
65
-
AVG(Data.PercTimeCorrArea) AS AvgPercTimeCorrArea
66
-
FROM Data
67
-
GROUP BY Run.SampleCondition || ' ' || PeakLabel
68
-
PIVOT AvgPercTimeCorrArea BY ConditionPeak
69
-
```
60
+
***Pivoting by Two Columns:**
61
+
Two levels of `PIVOT` are not directly supported. However, you can achieve a similar result by concatenating the two values together and pivoting on that "calculated" column.
62
+
```sql
63
+
SELECT
64
+
Run.SampleCondition || ' ' || PeakLabel AS ConditionPeak,
65
+
AVG(Data.PercTimeCorrArea) AS AvgPercTimeCorrArea
66
+
FROM Data
67
+
GROUP BY Run.SampleCondition || ' ' || PeakLabel
68
+
PIVOT AvgPercTimeCorrArea BY ConditionPeak
69
+
```
70
70
71
71
-----
72
72
@@ -130,7 +130,26 @@ LabKey SQL allows you to directly annotate your SQL statements to override how c
130
130
131
131
-----
132
132
133
-
### **7. Available Methods**
133
+
### **7. Container Filters**
134
+
135
+
In addition to targeting a container by its path, LabKey SQL supports container filters to alter the scope
136
+
of a query. Annotate tables in the FROM clause with an optional container filter. Syntax:
137
+
138
+
SELECT*FROM Issues [ContainerFilter='CurrentAndSubfolders'] alias
139
+
140
+
Possible values include:
141
+
- AllFolders
142
+
- AllInProject
143
+
- AllInProjectPlusShared
144
+
- Current
145
+
- CurrentAndFirstChildren
146
+
- CurrentAndParents
147
+
- CurrentAndSubfolders
148
+
- CurrentAndSubfoldersPlusShared
149
+
- CurrentPlusProject
150
+
- CurrentPlusProjectAndShared.
151
+
152
+
### **8. Available Methods**
134
153
135
154
Here is a summary of the available functions and methods in LabKey SQL.
0 commit comments