Skip to content

Commit 9ae6d04

Browse files
committed
Fine-tune AI generated definitions.
1 parent ee0baa4 commit 9ae6d04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frameworks/termentry/xsl/generateDefinitionWithAI.xsl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313

1414
<xsl:template match="definition">
1515

16-
<xsl:variable name="concept-term" select="//title[1]/text()" as="xs:string"/>
16+
<!--<xsl:variable name="concept-term" select="//title[1]/text()" as="xs:string"/>-->
17+
<xsl:variable name="concept-term" select="
18+
//*[contains(@class, ' termentry/termNotation ')][1]/*[contains(@class, ' termentry/termVariant ')][1]/text()" as="xs:string"/>
1719

1820
<xsl:value-of _disable-output-escaping="yes" select="ai:transform-content(
1921
'Please write a definition for ''' || $concept-term || ''' and tell me the source of definition. '

0 commit comments

Comments
 (0)