Skip to content
Open
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
59 changes: 59 additions & 0 deletions gen-ai-evaluation-record.graphqls
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

type GenAIEvaluationRecords {
genAIEvaluationRecordList: [GenAIEvaluationRecord!]!
errorReason: String
debuggingTrace: DebuggingTrace
}

type GenAIEvaluationRecord {
traceId: String
serviceId: String
serviceInstanceId: String
Comment on lines +26 to +28

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need names for them to visualize. How did you show that in the page? decoding on UI side seems to be not correct.

segmentId: String
spanId: String
spanType: String
taskName: String
valueType: String
value: String
evaluationLevel: String
reason: String
judgeModel: String
evaluationTime: Long
}

input GenAIEvaluationRecordTag {
key: String!
value: String
}

input GenAIEvaluationRecordQueryCondition {
serviceId: ID
serviceInstanceId: ID
relatedTrace: TraceScopeCondition
queryDuration: Duration
paging: Pagination!
tags: [GenAIEvaluationRecordTag!]
queryOrder: Order
}

extend type Query {
supportGenAIEvaluationRecordQueryByKeywords: Boolean!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this for whole-text-searching powered by Elasticsearch only?

@peachisai peachisai Jul 29, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this for whole-text-searching powered by Elasticsearch only?

Yes. This is intended for full-text search and will be supported only by Elasticsearch. It hasn't been implemented yet due to time constraints, so this field currently always returns false. I kept it for planned future support.

queryGenAIEvaluationRecord(condition: GenAIEvaluationRecordQueryCondition, debug: Boolean): GenAIEvaluationRecords
}