<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic AI custom model does not appear in digital workspace in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/ai-custom-model-does-not-appear-in-digital-workspace/m-p/86143#M26079</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello guys,&lt;BR /&gt;&lt;BR /&gt;I'm trying to create my own AI model by&lt;BR /&gt;&lt;A href="https://docs.alfresco.com/intelligence/concepts/custom-config-textract.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/intelligence/concepts/custom-config-textract.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I followed the documentation and checked it several times,&amp;nbsp;created a custom AI ​​content model, model context, property mapping, updated the share-config-custom.xml and digital worspace json file. No error in logs.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, the digital workspace does not display custom metadata. I must have missed something. Could you give me some advice?&lt;BR /&gt;&lt;BR /&gt;I want to extract text from pdf invoices&amp;nbsp;using AWS textract.&amp;nbsp;I've started default recognition (e.g AI Text Lines, AI Dates aspects working) and try to add a custom model.&lt;BR /&gt;&lt;BR /&gt;1) My custom model&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;model name="my:contentModel" xmlns="http://www.alfresco.org/model/dictionary/1.0"&amp;gt;
    &amp;lt;description&amp;gt;Custom Content Model for Artificial Intelligence extension&amp;lt;/description&amp;gt;
    &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;

    &amp;lt;imports&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" /&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" /&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/site/1.0" prefix="st" /&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/system/1.0" prefix="sys" /&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/ai/1.0" prefix="ai"/&amp;gt;
    &amp;lt;/imports&amp;gt;

    &amp;lt;namespaces&amp;gt;
        &amp;lt;namespace uri="http://mymodel.org" prefix="my" /&amp;gt;
    &amp;lt;/namespaces&amp;gt;

    &amp;lt;aspects&amp;gt;
        &amp;lt;aspect name="my:invoice"&amp;gt;
           &amp;lt;title&amp;gt;Invoice Info&amp;lt;/title&amp;gt;
           &amp;lt;parent&amp;gt;ai:textract&amp;lt;/parent&amp;gt;
           &amp;lt;properties&amp;gt;
               &amp;lt;property name="my:varsymbol"&amp;gt;
                   &amp;lt;title&amp;gt;Variabilni symbol&amp;lt;/title&amp;gt;
                   &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
		   &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
                   &amp;lt;index enabled="true" /&amp;gt;
               &amp;lt;/property&amp;gt;
               &amp;lt;property name="my:splatnost"&amp;gt;
                   &amp;lt;title&amp;gt;Datum splatnosti&amp;lt;/title&amp;gt;
                   &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
                   &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
                   &amp;lt;index enabled="true" /&amp;gt;
               &amp;lt;/property&amp;gt;
	       &amp;lt;property name="my:ico"&amp;gt;
                   &amp;lt;title&amp;gt;ICO&amp;lt;/title&amp;gt;
                   &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
                   &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
                   &amp;lt;index enabled="true" /&amp;gt;
               &amp;lt;/property&amp;gt;
               &amp;lt;property name="my:dic"&amp;gt;
                   &amp;lt;title&amp;gt;DIC&amp;lt;/title&amp;gt;
                   &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
                   &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
                   &amp;lt;index enabled="true" /&amp;gt;
               &amp;lt;/property&amp;gt;
           &amp;lt;/properties&amp;gt;
        &amp;lt;/aspect&amp;gt;
    &amp;lt;/aspects&amp;gt;
&amp;lt;/model&amp;gt;&lt;/PRE&gt;&lt;P&gt;2) AI property mapping&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
   "keyValueMapping":[
      {
         "aiTextract":[
            {
               "key":"Variabilni symbol:",
               "aspect":"my:invoice",
               "property":"my:varsymbol"
            },
            {
               "key":"Datum splatnosti:",
               "aspect":"my:invoice",
               "property":"my:splatnost"
            },
  	    {
               "key":"ICO:",
               "aspect":"my:invoice",
               "property":"my:ico"
            },
            {
               "key":"DIC:",
               "aspect":"my:invoice",
               "property":"my:dic"
            }
         ]
      }
   ]
}&lt;/PRE&gt;&lt;P&gt;3) Update app.extension.json for digital workspace&lt;/P&gt;&lt;PRE&gt;"content-metadata-presets": [
      {
        "id": "app.content.metadata.custom",
        "custom": [
          {
            "id": "ai.metadata.features",
            "title": "AI Data",
            "items": [
              {
                "id": "ai:products",
                "aspect": "ai:products",
                "properties": "*"
              },
              {
                "id": "ai:dates",
                "aspect": "ai:dates",
                "properties": "*"
              },
...
	      {
                "id": "my:invoice",
                "aspect": "my:invoice",
                "properties": "*"
              }
...
            ]
          },&lt;/PRE&gt;&lt;P&gt;3) Update share-config-custom.xml&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;alfresco-config&amp;gt;
    &amp;lt;config evaluator="string-compare" condition="DocumentLibrary"&amp;gt;
        &amp;lt;!-- Aspects that a user can see --&amp;gt;
        &amp;lt;aspects&amp;gt;
            &amp;lt;visible&amp;gt;
                &amp;lt;aspect name="my:invoice"/&amp;gt;
            &amp;lt;/visible&amp;gt;
        &amp;lt;/aspects&amp;gt;
    &amp;lt;/config&amp;gt;
&amp;lt;/alfresco-config&amp;gt;&lt;/PRE&gt;&lt;P&gt;4) add rule and aspect to folder&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper lia-message-image-actions-narrow lia-message-image-actions-below"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/577i44EB485A88B17528/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;And this is the result:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper lia-message-image-actions-narrow lia-message-image-actions-below"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/580i56CCBCCBD5221F63/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper lia-message-image-actions-narrow lia-message-image-actions-below"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/579i44046F30ED1504E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Apr 2020 14:25:40 GMT</pubDate>
    <dc:creator>miroslav</dc:creator>
    <dc:date>2020-04-20T14:25:40Z</dc:date>
    <item>
      <title>AI custom model does not appear in digital workspace</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/ai-custom-model-does-not-appear-in-digital-workspace/m-p/86143#M26079</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello guys,&lt;BR /&gt;&lt;BR /&gt;I'm trying to create my own AI model by&lt;BR /&gt;&lt;A href="https://docs.alfresco.com/intelligence/concepts/custom-config-textract.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/intelligence/concepts/custom-config-textract.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I followed the documentation and checked it several times,&amp;nbsp;created a custom AI ​​content model, model context, property mapping, updated the share-config-custom.xml and digital worspace json file. No error in logs.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, the digital workspace does not display custom metadata. I must have missed something. Could you give me some advice?&lt;BR /&gt;&lt;BR /&gt;I want to extract text from pdf invoices&amp;nbsp;using AWS textract.&amp;nbsp;I've started default recognition (e.g AI Text Lines, AI Dates aspects working) and try to add a custom model.&lt;BR /&gt;&lt;BR /&gt;1) My custom model&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;model name="my:contentModel" xmlns="http://www.alfresco.org/model/dictionary/1.0"&amp;gt;
    &amp;lt;description&amp;gt;Custom Content Model for Artificial Intelligence extension&amp;lt;/description&amp;gt;
    &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;

    &amp;lt;imports&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" /&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" /&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/site/1.0" prefix="st" /&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/system/1.0" prefix="sys" /&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/ai/1.0" prefix="ai"/&amp;gt;
    &amp;lt;/imports&amp;gt;

    &amp;lt;namespaces&amp;gt;
        &amp;lt;namespace uri="http://mymodel.org" prefix="my" /&amp;gt;
    &amp;lt;/namespaces&amp;gt;

    &amp;lt;aspects&amp;gt;
        &amp;lt;aspect name="my:invoice"&amp;gt;
           &amp;lt;title&amp;gt;Invoice Info&amp;lt;/title&amp;gt;
           &amp;lt;parent&amp;gt;ai:textract&amp;lt;/parent&amp;gt;
           &amp;lt;properties&amp;gt;
               &amp;lt;property name="my:varsymbol"&amp;gt;
                   &amp;lt;title&amp;gt;Variabilni symbol&amp;lt;/title&amp;gt;
                   &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
		   &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
                   &amp;lt;index enabled="true" /&amp;gt;
               &amp;lt;/property&amp;gt;
               &amp;lt;property name="my:splatnost"&amp;gt;
                   &amp;lt;title&amp;gt;Datum splatnosti&amp;lt;/title&amp;gt;
                   &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
                   &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
                   &amp;lt;index enabled="true" /&amp;gt;
               &amp;lt;/property&amp;gt;
	       &amp;lt;property name="my:ico"&amp;gt;
                   &amp;lt;title&amp;gt;ICO&amp;lt;/title&amp;gt;
                   &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
                   &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
                   &amp;lt;index enabled="true" /&amp;gt;
               &amp;lt;/property&amp;gt;
               &amp;lt;property name="my:dic"&amp;gt;
                   &amp;lt;title&amp;gt;DIC&amp;lt;/title&amp;gt;
                   &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
                   &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
                   &amp;lt;index enabled="true" /&amp;gt;
               &amp;lt;/property&amp;gt;
           &amp;lt;/properties&amp;gt;
        &amp;lt;/aspect&amp;gt;
    &amp;lt;/aspects&amp;gt;
&amp;lt;/model&amp;gt;&lt;/PRE&gt;&lt;P&gt;2) AI property mapping&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
   "keyValueMapping":[
      {
         "aiTextract":[
            {
               "key":"Variabilni symbol:",
               "aspect":"my:invoice",
               "property":"my:varsymbol"
            },
            {
               "key":"Datum splatnosti:",
               "aspect":"my:invoice",
               "property":"my:splatnost"
            },
  	    {
               "key":"ICO:",
               "aspect":"my:invoice",
               "property":"my:ico"
            },
            {
               "key":"DIC:",
               "aspect":"my:invoice",
               "property":"my:dic"
            }
         ]
      }
   ]
}&lt;/PRE&gt;&lt;P&gt;3) Update app.extension.json for digital workspace&lt;/P&gt;&lt;PRE&gt;"content-metadata-presets": [
      {
        "id": "app.content.metadata.custom",
        "custom": [
          {
            "id": "ai.metadata.features",
            "title": "AI Data",
            "items": [
              {
                "id": "ai:products",
                "aspect": "ai:products",
                "properties": "*"
              },
              {
                "id": "ai:dates",
                "aspect": "ai:dates",
                "properties": "*"
              },
...
	      {
                "id": "my:invoice",
                "aspect": "my:invoice",
                "properties": "*"
              }
...
            ]
          },&lt;/PRE&gt;&lt;P&gt;3) Update share-config-custom.xml&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;alfresco-config&amp;gt;
    &amp;lt;config evaluator="string-compare" condition="DocumentLibrary"&amp;gt;
        &amp;lt;!-- Aspects that a user can see --&amp;gt;
        &amp;lt;aspects&amp;gt;
            &amp;lt;visible&amp;gt;
                &amp;lt;aspect name="my:invoice"/&amp;gt;
            &amp;lt;/visible&amp;gt;
        &amp;lt;/aspects&amp;gt;
    &amp;lt;/config&amp;gt;
&amp;lt;/alfresco-config&amp;gt;&lt;/PRE&gt;&lt;P&gt;4) add rule and aspect to folder&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper lia-message-image-actions-narrow lia-message-image-actions-below"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/577i44EB485A88B17528/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;And this is the result:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper lia-message-image-actions-narrow lia-message-image-actions-below"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/580i56CCBCCBD5221F63/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper lia-message-image-actions-narrow lia-message-image-actions-below"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/579i44046F30ED1504E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 14:25:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/ai-custom-model-does-not-appear-in-digital-workspace/m-p/86143#M26079</guid>
      <dc:creator>miroslav</dc:creator>
      <dc:date>2020-04-20T14:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: AI custom model does not appear in digital workspace</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/ai-custom-model-does-not-appear-in-digital-workspace/m-p/86144#M26080</link>
      <description>&lt;P&gt;I’ve run into similar issues with getting new models to show up in digital workspaces. I once had trouble integrating a custom model for a project where I was using &lt;A href="https://aicenter.ai/stevieai/landing" target="_self" rel="nofollow noopener noreferrer"&gt;AI tools for business&lt;/A&gt; to automate document processing. I found that re-checking all the file paths and ensuring the model was correctly referenced in every config file helped. Also, sometimes clearing the cache or restarting the service can push through the changes.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 09:58:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/ai-custom-model-does-not-appear-in-digital-workspace/m-p/86144#M26080</guid>
      <dc:creator>RogMagog</dc:creator>
      <dc:date>2024-09-02T09:58:10Z</dc:date>
    </item>
  </channel>
</rss>

