@futdevpro/nts-dynamo 1.12.15 → 1.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/_modules/ai/_models/ai-input-interfaces.d.ts +61 -0
- package/build/_modules/ai/_models/ai-input-interfaces.d.ts.map +1 -0
- package/build/_modules/{open-ai/_models/interfaces/oai-document-page.interface.js → ai/_models/ai-input-interfaces.js} +1 -1
- package/build/_modules/ai/_models/ai-input-interfaces.js.map +1 -0
- package/build/_modules/{open-ai/_collections/oai-chunking.util.d.ts → ai/_modules/document-ai/_collections/dai-chunking.util.d.ts} +10 -10
- package/build/_modules/ai/_modules/document-ai/_collections/dai-chunking.util.d.ts.map +1 -0
- package/build/_modules/{open-ai/_collections/oai-chunking.util.js → ai/_modules/document-ai/_collections/dai-chunking.util.js} +58 -41
- package/build/_modules/ai/_modules/document-ai/_collections/dai-chunking.util.js.map +1 -0
- package/build/_modules/ai/_modules/document-ai/_collections/dai-document.util.d.ts +29 -0
- package/build/_modules/ai/_modules/document-ai/_collections/dai-document.util.d.ts.map +1 -0
- package/build/_modules/ai/_modules/document-ai/_collections/dai-document.util.js +74 -0
- package/build/_modules/ai/_modules/document-ai/_collections/dai-document.util.js.map +1 -0
- package/build/_modules/ai/_modules/document-ai/_enums/dai-compare-result-type.enum.d.ts +7 -0
- package/build/_modules/ai/_modules/document-ai/_enums/dai-compare-result-type.enum.d.ts.map +1 -0
- package/build/_modules/ai/_modules/document-ai/_enums/dai-compare-result-type.enum.js +11 -0
- package/build/_modules/ai/_modules/document-ai/_enums/dai-compare-result-type.enum.js.map +1 -0
- package/build/_modules/{open-ai/_models/oai-doc-chunk.data-model.d.ts → ai/_modules/document-ai/_models/data-models/dai-doc-chunk.data-model.d.ts} +25 -13
- package/build/_modules/ai/_modules/document-ai/_models/data-models/dai-doc-chunk.data-model.d.ts.map +1 -0
- package/build/_modules/ai/_modules/document-ai/_models/data-models/dai-doc-chunk.data-model.js +132 -0
- package/build/_modules/ai/_modules/document-ai/_models/data-models/dai-doc-chunk.data-model.js.map +1 -0
- package/build/_modules/ai/_modules/document-ai/_models/data-models/dai-doc-page.data-model.d.ts +29 -0
- package/build/_modules/ai/_modules/document-ai/_models/data-models/dai-doc-page.data-model.d.ts.map +1 -0
- package/build/_modules/ai/_modules/document-ai/_models/data-models/dai-doc-page.data-model.js +112 -0
- package/build/_modules/ai/_modules/document-ai/_models/data-models/dai-doc-page.data-model.js.map +1 -0
- package/build/_modules/ai/_modules/document-ai/_models/data-models/dai-document.data-model.d.ts +18 -0
- package/build/_modules/ai/_modules/document-ai/_models/data-models/dai-document.data-model.d.ts.map +1 -0
- package/build/_modules/ai/_modules/document-ai/_models/data-models/dai-document.data-model.js +71 -0
- package/build/_modules/ai/_modules/document-ai/_models/data-models/dai-document.data-model.js.map +1 -0
- package/build/_modules/ai/_modules/document-ai/_models/interfaces/dai-doc-chunk-compare-result.interface.d.ts +9 -0
- package/build/_modules/ai/_modules/document-ai/_models/interfaces/dai-doc-chunk-compare-result.interface.d.ts.map +1 -0
- package/build/_modules/ai/_modules/document-ai/_models/interfaces/dai-doc-chunk-compare-result.interface.js +3 -0
- package/build/_modules/ai/_modules/document-ai/_models/interfaces/dai-doc-chunk-compare-result.interface.js.map +1 -0
- package/build/_modules/ai/_modules/document-ai/_models/interfaces/dai-doc-page-compare-result.interface.d.ts +12 -0
- package/build/_modules/ai/_modules/document-ai/_models/interfaces/dai-doc-page-compare-result.interface.d.ts.map +1 -0
- package/build/_modules/{open-ai/_models/interfaces/oai-chunk-compare-result.interface.js → ai/_modules/document-ai/_models/interfaces/dai-doc-page-compare-result.interface.js} +1 -1
- package/build/_modules/ai/_modules/document-ai/_models/interfaces/dai-doc-page-compare-result.interface.js.map +1 -0
- package/build/_modules/ai/_modules/document-ai/_models/interfaces/dai-document-compare-result.interface.d.ts +13 -0
- package/build/_modules/ai/_modules/document-ai/_models/interfaces/dai-document-compare-result.interface.d.ts.map +1 -0
- package/build/_modules/ai/_modules/document-ai/_models/interfaces/dai-document-compare-result.interface.js +3 -0
- package/build/_modules/ai/_modules/document-ai/_models/interfaces/dai-document-compare-result.interface.js.map +1 -0
- package/build/_modules/ai/_modules/document-ai/index.d.ts +11 -0
- package/build/_modules/ai/_modules/document-ai/index.d.ts.map +1 -0
- package/build/_modules/ai/_modules/document-ai/index.js +26 -0
- package/build/_modules/ai/_modules/document-ai/index.js.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_collections/oai-global-settings.const.d.ts.map +1 -0
- package/build/_modules/{open-ai → ai/_modules/open-ai}/_collections/oai-global-settings.const.js +2 -2
- package/build/_modules/ai/_modules/open-ai/_collections/oai-global-settings.const.js.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_collections/oai-llm-predefined-requests-hu.conts.d.ts.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_collections/oai-llm-predefined-requests-hu.conts.js.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_collections/oai-llm-predefined-requests.conts.d.ts.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_collections/oai-llm-predefined-requests.conts.js.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_enums/oai-gpt-message-role.enum.d.ts.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_enums/oai-gpt-message-role.enum.js.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_models/interfaces/oai-global-settings.interface.d.ts +6 -0
- package/build/_modules/ai/_modules/open-ai/_models/interfaces/oai-global-settings.interface.d.ts.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_models/interfaces/oai-global-settings.interface.js.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_models/interfaces/oai-gpt-message.interface.d.ts.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_models/interfaces/oai-gpt-message.interface.js.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_models/interfaces/oai-llm-predefined-requests.interface.d.ts.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_models/interfaces/oai-llm-predefined-requests.interface.js.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.d.ts +22 -0
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.d.ts.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.js +223 -0
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.js.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.d.ts +26 -0
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.d.ts.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.js +232 -0
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.js.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.d.ts +23 -0
- package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.d.ts.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.js +284 -0
- package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.js.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_services/oai-embedding.control-service.d.ts +7 -0
- package/build/_modules/ai/_modules/open-ai/_services/oai-embedding.control-service.d.ts.map +1 -0
- package/build/_modules/{open-ai → ai/_modules/open-ai}/_services/oai-embedding.control-service.js +5 -5
- package/build/_modules/ai/_modules/open-ai/_services/oai-embedding.control-service.js.map +1 -0
- package/build/_modules/{open-ai → ai/_modules/open-ai}/_services/oai-llm-chat.service-base.d.ts +16 -16
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.d.ts.map +1 -0
- package/build/_modules/{open-ai → ai/_modules/open-ai}/_services/oai-llm-chat.service-base.js +3 -3
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.js.map +1 -0
- package/build/_modules/{open-ai → ai/_modules/open-ai}/_services/oai-llm.service-base.d.ts +19 -19
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.d.ts.map +1 -0
- package/build/_modules/{open-ai → ai/_modules/open-ai}/_services/oai-llm.service-base.js +6 -6
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.js.map +1 -0
- package/build/_modules/{open-ai → ai/_modules/open-ai}/_services/oai-vector-data.service.d.ts +6 -6
- package/build/_modules/ai/_modules/open-ai/_services/oai-vector-data.service.d.ts.map +1 -0
- package/build/_modules/{open-ai → ai/_modules/open-ai}/_services/oai-vector-data.service.js +138 -6
- package/build/_modules/ai/_modules/open-ai/_services/oai-vector-data.service.js.map +1 -0
- package/build/_modules/{open-ai → ai/_modules/open-ai}/index.d.ts +4 -10
- package/build/_modules/ai/_modules/open-ai/index.d.ts.map +1 -0
- package/build/_modules/{open-ai → ai/_modules/open-ai}/index.js +22 -11
- package/build/_modules/ai/_modules/open-ai/index.js.map +1 -0
- package/build/_modules/ai/_services/ai-embedding.service-base.d.ts +31 -0
- package/build/_modules/ai/_services/ai-embedding.service-base.d.ts.map +1 -0
- package/build/_modules/ai/_services/ai-embedding.service-base.js +12 -0
- package/build/_modules/ai/_services/ai-embedding.service-base.js.map +1 -0
- package/build/_modules/ai/_services/ai-llm-chat.service-base.d.ts +36 -0
- package/build/_modules/ai/_services/ai-llm-chat.service-base.d.ts.map +1 -0
- package/build/_modules/ai/_services/ai-llm-chat.service-base.js +12 -0
- package/build/_modules/ai/_services/ai-llm-chat.service-base.js.map +1 -0
- package/build/_modules/ai/_services/ai-llm.service-base.d.ts +45 -0
- package/build/_modules/ai/_services/ai-llm.service-base.d.ts.map +1 -0
- package/build/_modules/ai/_services/ai-llm.service-base.js +12 -0
- package/build/_modules/ai/_services/ai-llm.service-base.js.map +1 -0
- package/build/_modules/ai/_services/ai-provider.service-base.d.ts +25 -0
- package/build/_modules/ai/_services/ai-provider.service-base.d.ts.map +1 -0
- package/build/_modules/ai/_services/ai-provider.service-base.js +11 -0
- package/build/_modules/ai/_services/ai-provider.service-base.js.map +1 -0
- package/build/_modules/ai/index.d.ts +7 -0
- package/build/_modules/ai/index.d.ts.map +1 -0
- package/build/_modules/ai/index.js +13 -0
- package/build/_modules/ai/index.js.map +1 -0
- package/build/_modules/discord-assistant/_collections/dias-global-settings.const.js +2 -2
- package/build/_modules/discord-assistant/_collections/dias-global-settings.const.js.map +1 -1
- package/build/_modules/discord-assistant/_collections/dias.util.d.ts +1 -1
- package/build/_modules/discord-assistant/_collections/dias.util.d.ts.map +1 -1
- package/build/_modules/discord-assistant/_collections/dias.util.js +5 -5
- package/build/_modules/discord-assistant/_collections/dias.util.js.map +1 -1
- package/build/_modules/discord-assistant/_services/dias-chunk.data-service.d.ts +9 -9
- package/build/_modules/discord-assistant/_services/dias-chunk.data-service.d.ts.map +1 -1
- package/build/_modules/discord-assistant/_services/dias-chunk.data-service.js +11 -10
- package/build/_modules/discord-assistant/_services/dias-chunk.data-service.js.map +1 -1
- package/build/_modules/discord-assistant/_services/dias-io.control-service.d.ts +2 -2
- package/build/_modules/discord-assistant/_services/dias-io.control-service.d.ts.map +1 -1
- package/build/_modules/discord-assistant/_services/dias-io.control-service.js +2 -2
- package/build/_modules/discord-assistant/_services/dias-io.control-service.js.map +1 -1
- package/build/_modules/discord-assistant/_services/dias.service-base.d.ts +2 -2
- package/build/_modules/discord-assistant/_services/dias.service-base.d.ts.map +1 -1
- package/build/_modules/discord-assistant/_services/dias.service-base.js +1 -1
- package/build/_modules/discord-assistant/_services/dias.service-base.js.map +1 -1
- package/build/_modules/discord-assistant/index.d.ts +2 -1
- package/build/_modules/discord-assistant/index.d.ts.map +1 -1
- package/build/_modules/discord-assistant/index.js +2 -1
- package/build/_modules/discord-assistant/index.js.map +1 -1
- package/package.json +32 -12
- package/src/_modules/ai/_models/ai-input-interfaces.ts +79 -0
- package/src/_modules/{open-ai/_collections/oai-chunking.util.ts → ai/_modules/document-ai/_collections/dai-chunking.util.ts} +139 -90
- package/src/_modules/ai/_modules/document-ai/_collections/dai-document.util.ts +85 -0
- package/src/_modules/ai/_modules/document-ai/_enums/dai-compare-result-type.enum.ts +8 -0
- package/src/_modules/ai/_modules/document-ai/_models/data-models/dai-doc-chunk.data-model.ts +144 -0
- package/src/_modules/ai/_modules/document-ai/_models/data-models/dai-doc-page.data-model.ts +136 -0
- package/src/_modules/ai/_modules/document-ai/_models/data-models/dai-document.data-model.ts +93 -0
- package/src/_modules/ai/_modules/document-ai/_models/interfaces/dai-doc-chunk-compare-result.interface.ts +18 -0
- package/src/_modules/ai/_modules/document-ai/_models/interfaces/dai-doc-page-compare-result.interface.ts +19 -0
- package/src/_modules/ai/_modules/document-ai/_models/interfaces/dai-document-compare-result.interface.ts +25 -0
- package/src/_modules/ai/_modules/document-ai/index.ts +28 -0
- package/src/_modules/{open-ai → ai/_modules/open-ai}/_collections/oai-global-settings.const.ts +2 -2
- package/src/_modules/ai/_modules/open-ai/_models/interfaces/oai-global-settings.interface.ts +8 -0
- package/src/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.ts +284 -0
- package/src/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.ts +508 -0
- package/src/_modules/ai/_modules/open-ai/_services/oai-document.data-service.ts +377 -0
- package/src/_modules/{open-ai → ai/_modules/open-ai}/_services/oai-embedding.control-service.ts +6 -6
- package/src/_modules/{open-ai → ai/_modules/open-ai}/_services/oai-llm-chat.service-base.ts +20 -19
- package/src/_modules/{open-ai → ai/_modules/open-ai}/_services/oai-llm.service-base.ts +24 -24
- package/src/_modules/{open-ai → ai/_modules/open-ai}/_services/oai-vector-data.service.ts +145 -9
- package/src/_modules/ai/_modules/open-ai/index.ts +72 -0
- package/src/_modules/ai/_services/ai-embedding.service-base.ts +41 -0
- package/src/_modules/ai/_services/ai-llm-chat.service-base.ts +48 -0
- package/src/_modules/ai/_services/ai-llm.service-base.ts +81 -0
- package/src/_modules/ai/_services/ai-provider.service-base.ts +28 -0
- package/src/_modules/ai/index.ts +11 -0
- package/src/_modules/discord-assistant/_collections/dias-global-settings.const.ts +2 -2
- package/src/_modules/discord-assistant/_collections/dias.util.ts +5 -3
- package/src/_modules/discord-assistant/_services/dias-chunk.data-service.ts +25 -18
- package/src/_modules/discord-assistant/_services/dias-io.control-service.ts +5 -3
- package/src/_modules/discord-assistant/_services/dias.service-base.ts +3 -3
- package/src/_modules/discord-assistant/index.ts +2 -1
- package/src/index.ts +0 -4
- package/build/_modules/open-ai/_collections/oai-chunking.util.d.ts.map +0 -1
- package/build/_modules/open-ai/_collections/oai-chunking.util.js.map +0 -1
- package/build/_modules/open-ai/_collections/oai-document.util.d.ts +0 -4
- package/build/_modules/open-ai/_collections/oai-document.util.d.ts.map +0 -1
- package/build/_modules/open-ai/_collections/oai-document.util.js +0 -12
- package/build/_modules/open-ai/_collections/oai-document.util.js.map +0 -1
- package/build/_modules/open-ai/_collections/oai-global-settings.const.d.ts.map +0 -1
- package/build/_modules/open-ai/_collections/oai-global-settings.const.js.map +0 -1
- package/build/_modules/open-ai/_collections/oai-llm-predefined-requests-hu.conts.d.ts.map +0 -1
- package/build/_modules/open-ai/_collections/oai-llm-predefined-requests-hu.conts.js.map +0 -1
- package/build/_modules/open-ai/_collections/oai-llm-predefined-requests.conts.d.ts.map +0 -1
- package/build/_modules/open-ai/_collections/oai-llm-predefined-requests.conts.js.map +0 -1
- package/build/_modules/open-ai/_enums/oai-compare-result-type.enum.d.ts +0 -6
- package/build/_modules/open-ai/_enums/oai-compare-result-type.enum.d.ts.map +0 -1
- package/build/_modules/open-ai/_enums/oai-compare-result-type.enum.js +0 -10
- package/build/_modules/open-ai/_enums/oai-compare-result-type.enum.js.map +0 -1
- package/build/_modules/open-ai/_enums/oai-gpt-message-role.enum.d.ts.map +0 -1
- package/build/_modules/open-ai/_enums/oai-gpt-message-role.enum.js.map +0 -1
- package/build/_modules/open-ai/_models/interfaces/oai-chunk-compare-result.interface.d.ts +0 -7
- package/build/_modules/open-ai/_models/interfaces/oai-chunk-compare-result.interface.d.ts.map +0 -1
- package/build/_modules/open-ai/_models/interfaces/oai-chunk-compare-result.interface.js.map +0 -1
- package/build/_modules/open-ai/_models/interfaces/oai-document-page.interface.d.ts +0 -15
- package/build/_modules/open-ai/_models/interfaces/oai-document-page.interface.d.ts.map +0 -1
- package/build/_modules/open-ai/_models/interfaces/oai-document-page.interface.js.map +0 -1
- package/build/_modules/open-ai/_models/interfaces/oai-global-settings.interface.d.ts +0 -6
- package/build/_modules/open-ai/_models/interfaces/oai-global-settings.interface.d.ts.map +0 -1
- package/build/_modules/open-ai/_models/interfaces/oai-global-settings.interface.js.map +0 -1
- package/build/_modules/open-ai/_models/interfaces/oai-gpt-message.interface.d.ts.map +0 -1
- package/build/_modules/open-ai/_models/interfaces/oai-gpt-message.interface.js.map +0 -1
- package/build/_modules/open-ai/_models/interfaces/oai-llm-predefined-requests.interface.d.ts.map +0 -1
- package/build/_modules/open-ai/_models/interfaces/oai-llm-predefined-requests.interface.js.map +0 -1
- package/build/_modules/open-ai/_models/interfaces/oai-page-compare-result.interface.d.ts +0 -13
- package/build/_modules/open-ai/_models/interfaces/oai-page-compare-result.interface.d.ts.map +0 -1
- package/build/_modules/open-ai/_models/interfaces/oai-page-compare-result.interface.js +0 -3
- package/build/_modules/open-ai/_models/interfaces/oai-page-compare-result.interface.js.map +0 -1
- package/build/_modules/open-ai/_models/oai-doc-chunk.data-model.d.ts.map +0 -1
- package/build/_modules/open-ai/_models/oai-doc-chunk.data-model.js +0 -101
- package/build/_modules/open-ai/_models/oai-doc-chunk.data-model.js.map +0 -1
- package/build/_modules/open-ai/_services/oai-chunk.service-base.d.ts +0 -16
- package/build/_modules/open-ai/_services/oai-chunk.service-base.d.ts.map +0 -1
- package/build/_modules/open-ai/_services/oai-chunk.service-base.js +0 -200
- package/build/_modules/open-ai/_services/oai-chunk.service-base.js.map +0 -1
- package/build/_modules/open-ai/_services/oai-embedding.control-service.d.ts +0 -7
- package/build/_modules/open-ai/_services/oai-embedding.control-service.d.ts.map +0 -1
- package/build/_modules/open-ai/_services/oai-embedding.control-service.js.map +0 -1
- package/build/_modules/open-ai/_services/oai-llm-chat.service-base.d.ts.map +0 -1
- package/build/_modules/open-ai/_services/oai-llm-chat.service-base.js.map +0 -1
- package/build/_modules/open-ai/_services/oai-llm.service-base.d.ts.map +0 -1
- package/build/_modules/open-ai/_services/oai-llm.service-base.js.map +0 -1
- package/build/_modules/open-ai/_services/oai-vector-data.service.d.ts.map +0 -1
- package/build/_modules/open-ai/_services/oai-vector-data.service.js.map +0 -1
- package/build/_modules/open-ai/index.d.ts.map +0 -1
- package/build/_modules/open-ai/index.js.map +0 -1
- package/src/_modules/open-ai/_collections/oai-document.util.ts +0 -10
- package/src/_modules/open-ai/_enums/oai-compare-result-type.enum.ts +0 -7
- package/src/_modules/open-ai/_models/interfaces/oai-chunk-compare-result.interface.ts +0 -15
- package/src/_modules/open-ai/_models/interfaces/oai-document-page.interface.ts +0 -28
- package/src/_modules/open-ai/_models/interfaces/oai-global-settings.interface.ts +0 -8
- package/src/_modules/open-ai/_models/interfaces/oai-page-compare-result.interface.ts +0 -17
- package/src/_modules/open-ai/_models/oai-doc-chunk.data-model.ts +0 -115
- package/src/_modules/open-ai/_services/oai-chunk.service-base.ts +0 -280
- package/src/_modules/open-ai/index.ts +0 -55
- /package/build/_modules/{open-ai → ai/_modules/open-ai}/_collections/oai-global-settings.const.d.ts +0 -0
- /package/build/_modules/{open-ai → ai/_modules/open-ai}/_collections/oai-llm-predefined-requests-hu.conts.d.ts +0 -0
- /package/build/_modules/{open-ai → ai/_modules/open-ai}/_collections/oai-llm-predefined-requests-hu.conts.js +0 -0
- /package/build/_modules/{open-ai → ai/_modules/open-ai}/_collections/oai-llm-predefined-requests.conts.d.ts +0 -0
- /package/build/_modules/{open-ai → ai/_modules/open-ai}/_collections/oai-llm-predefined-requests.conts.js +0 -0
- /package/build/_modules/{open-ai → ai/_modules/open-ai}/_enums/oai-gpt-message-role.enum.d.ts +0 -0
- /package/build/_modules/{open-ai → ai/_modules/open-ai}/_enums/oai-gpt-message-role.enum.js +0 -0
- /package/build/_modules/{open-ai → ai/_modules/open-ai}/_models/interfaces/oai-global-settings.interface.js +0 -0
- /package/build/_modules/{open-ai → ai/_modules/open-ai}/_models/interfaces/oai-gpt-message.interface.d.ts +0 -0
- /package/build/_modules/{open-ai → ai/_modules/open-ai}/_models/interfaces/oai-gpt-message.interface.js +0 -0
- /package/build/_modules/{open-ai → ai/_modules/open-ai}/_models/interfaces/oai-llm-predefined-requests.interface.d.ts +0 -0
- /package/build/_modules/{open-ai → ai/_modules/open-ai}/_models/interfaces/oai-llm-predefined-requests.interface.js +0 -0
- /package/src/_modules/{open-ai → ai/_modules/open-ai}/_collections/oai-llm-predefined-requests-hu.conts.ts +0 -0
- /package/src/_modules/{open-ai → ai/_modules/open-ai}/_collections/oai-llm-predefined-requests.conts.ts +0 -0
- /package/src/_modules/{open-ai → ai/_modules/open-ai}/_enums/oai-gpt-message-role.enum.ts +0 -0
- /package/src/_modules/{open-ai → ai/_modules/open-ai}/_models/interfaces/oai-gpt-message.interface.ts +0 -0
- /package/src/_modules/{open-ai → ai/_modules/open-ai}/_models/interfaces/oai-llm-predefined-requests.interface.ts +0 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { DyFM_Log } from '@futdevpro/fsm-dynamo';
|
|
2
|
+
import { DyNTS_DAI_DocPage } from '../_models/data-models/dai-doc-page.data-model';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Generic document utility functions
|
|
6
|
+
* Provider-agnostic document operations
|
|
7
|
+
*/
|
|
8
|
+
export class DyNTS_DAI_Document_Util {
|
|
9
|
+
|
|
10
|
+
static getClickupPageLink(pageName: string, workspaceId: string, documentId: string, pageId: string): string {
|
|
11
|
+
// https://app.clickup.com/9012753333/v/dc/8ck7cxn-692/8ck7cxn-1052
|
|
12
|
+
const link: string = `https://app.clickup.com/${workspaceId}/v/dc/${documentId}/${pageId}`;
|
|
13
|
+
return `[${pageName}](${link})`;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Validate document page structure
|
|
18
|
+
*/
|
|
19
|
+
static validateDocumentPage(page: DyNTS_DAI_DocPage): boolean {
|
|
20
|
+
if (!page.name) {
|
|
21
|
+
DyFM_Log.error('Document page validation failed: missing name');
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (!page.content) {
|
|
26
|
+
DyFM_Log.error('Document page validation failed: missing content');
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Normalize document page content
|
|
35
|
+
*/
|
|
36
|
+
static normalizeContent(content: string): string {
|
|
37
|
+
return content
|
|
38
|
+
.replace(/\r\n/g, '\n') // Normalize line endings
|
|
39
|
+
.replace(/\r/g, '\n') // Handle old Mac line endings
|
|
40
|
+
.trim(); // Remove leading/trailing whitespace
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Extract metadata from document content
|
|
45
|
+
*/
|
|
46
|
+
static extractMetadata(content: string): Record<string, any> {
|
|
47
|
+
const metadata: Record<string, any> = {};
|
|
48
|
+
|
|
49
|
+
// Extract title from first header
|
|
50
|
+
const titleMatch: RegExpMatchArray | null = content.match(/^#\s+(.+)$/m);
|
|
51
|
+
if (titleMatch) {
|
|
52
|
+
metadata.title = titleMatch[1].trim();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Extract word count
|
|
56
|
+
metadata.wordCount = content.split(/\s+/).length;
|
|
57
|
+
|
|
58
|
+
// Extract character count
|
|
59
|
+
metadata.characterCount = content.length;
|
|
60
|
+
|
|
61
|
+
// Extract header count
|
|
62
|
+
const headerMatches = content.match(/^#{1,6}\s+.+$/gm);
|
|
63
|
+
metadata.headerCount = headerMatches ? headerMatches.length : 0;
|
|
64
|
+
|
|
65
|
+
return metadata;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Check if content is empty or whitespace only
|
|
70
|
+
*/
|
|
71
|
+
static isEmpty(content: string): boolean {
|
|
72
|
+
return !content || content.trim().length === 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Get content preview (first N characters)
|
|
77
|
+
*/
|
|
78
|
+
static getPreview(content: string, maxLength: number = 200): string {
|
|
79
|
+
if (content.length <= maxLength) {
|
|
80
|
+
return content;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return content.substring(0, maxLength) + '...';
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { DyFM_OAI_Model } from '@futdevpro/fsm-dynamo/ai/open-ai';
|
|
2
|
+
import { DyFM_DataModel_Params, DyFM_DataProperties, DyFM_Metadata } from '@futdevpro/fsm-dynamo';
|
|
3
|
+
import { DyNTS_DAI_document_dataParams } from './dai-document.data-model';
|
|
4
|
+
import { DyNTS_DAI_docPage_dataParams } from './dai-doc-page.data-model';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Generic chunk model for document processing
|
|
8
|
+
* Provider-agnostic version of document chunks
|
|
9
|
+
*/
|
|
10
|
+
export class DyNTS_DAI_DocChunk extends DyFM_Metadata {
|
|
11
|
+
documentId: string;
|
|
12
|
+
/**
|
|
13
|
+
* this is the document id in the outside source
|
|
14
|
+
* eg.: the id in Clickup, Confluence, etc.
|
|
15
|
+
* */
|
|
16
|
+
externalDocumentId?: string;
|
|
17
|
+
pageId: string;
|
|
18
|
+
/**
|
|
19
|
+
* this is the page id in the outside source
|
|
20
|
+
* eg.: the id in Clickup, Confluence, etc.
|
|
21
|
+
* */
|
|
22
|
+
externalPageId?: string;
|
|
23
|
+
|
|
24
|
+
/** Path to the page where the chunk is located ending with the page name */
|
|
25
|
+
filePathParents: string[] = [];
|
|
26
|
+
/** Headers that are parents of the chunk (all headers, all parent pages, and document name) */
|
|
27
|
+
chunkHeadParents: string[] = [];
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* All parents of the chunk, flagged, from the highest level to the lowest local level
|
|
31
|
+
* like: System:FDP, Project:Organizer, Side:Backend, Module:Chat, etc.
|
|
32
|
+
*/
|
|
33
|
+
allFlaggedParents: string[] = [];
|
|
34
|
+
/**
|
|
35
|
+
* allFlaggedParentsMerged
|
|
36
|
+
* All parents of the chunk, flagged, merged into a with '/' as separator
|
|
37
|
+
* like: System:FDP/Project:Organizer/Side:Backend/Module:Notes/Document:Note Data Model
|
|
38
|
+
*/
|
|
39
|
+
path: string;
|
|
40
|
+
/**
|
|
41
|
+
* The page name with the full path
|
|
42
|
+
* System/Project/Side/Module/Document/Page
|
|
43
|
+
* */
|
|
44
|
+
/* pageNameWithFullPath: string; */
|
|
45
|
+
|
|
46
|
+
/** The document name */
|
|
47
|
+
documentName: string;
|
|
48
|
+
pageName: string;
|
|
49
|
+
pageLink: string;
|
|
50
|
+
/** Index of the chunk in the page */
|
|
51
|
+
chunkIndex: number;
|
|
52
|
+
|
|
53
|
+
/* chunkOriginalContent: string; */
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* chunk Parented Content
|
|
57
|
+
*/
|
|
58
|
+
chunkContent: string;
|
|
59
|
+
chunkParentedContentVectorized?: number[];
|
|
60
|
+
|
|
61
|
+
constructor(
|
|
62
|
+
set?: DyNTS_DAI_DocChunk
|
|
63
|
+
) {
|
|
64
|
+
super(set);
|
|
65
|
+
|
|
66
|
+
if (set) {
|
|
67
|
+
Object.assign(this, set);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export const DyNTS_DAI_docChunk_dataParams: DyFM_DataModel_Params<DyNTS_DAI_DocChunk> =
|
|
73
|
+
new DyFM_DataModel_Params<DyNTS_DAI_DocChunk>({
|
|
74
|
+
dataName: 'doc_chunk',
|
|
75
|
+
properties: {
|
|
76
|
+
externalDocumentId: {
|
|
77
|
+
type: 'string',
|
|
78
|
+
},
|
|
79
|
+
documentId: {
|
|
80
|
+
type: 'string',
|
|
81
|
+
required: true, index: true,
|
|
82
|
+
dependencyDataName: DyNTS_DAI_document_dataParams.dataName,
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
externalPageId: {
|
|
86
|
+
type: 'string',
|
|
87
|
+
},
|
|
88
|
+
pageId: {
|
|
89
|
+
type: 'string',
|
|
90
|
+
required: true, index: true,
|
|
91
|
+
dependencyDataName: DyNTS_DAI_docPage_dataParams.dataName,
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
filePathParents: {
|
|
95
|
+
type: 'string[]',
|
|
96
|
+
required: true,
|
|
97
|
+
},
|
|
98
|
+
chunkHeadParents: {
|
|
99
|
+
type: 'string[]',
|
|
100
|
+
},
|
|
101
|
+
|
|
102
|
+
allFlaggedParents: {
|
|
103
|
+
type: 'string[]',
|
|
104
|
+
},
|
|
105
|
+
path: {
|
|
106
|
+
type: 'string',
|
|
107
|
+
index: true,
|
|
108
|
+
required: true,
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
documentName: {
|
|
112
|
+
type: 'string',
|
|
113
|
+
index: true,
|
|
114
|
+
required: true,
|
|
115
|
+
},
|
|
116
|
+
pageName: {
|
|
117
|
+
type: 'string',
|
|
118
|
+
index: true,
|
|
119
|
+
required: true,
|
|
120
|
+
},
|
|
121
|
+
pageLink: {
|
|
122
|
+
type: 'string',
|
|
123
|
+
},
|
|
124
|
+
chunkIndex: {
|
|
125
|
+
type: 'number',
|
|
126
|
+
index: true,
|
|
127
|
+
required: true,
|
|
128
|
+
},
|
|
129
|
+
|
|
130
|
+
chunkContent: {
|
|
131
|
+
type: 'string',
|
|
132
|
+
required: true,
|
|
133
|
+
},
|
|
134
|
+
chunkParentedContentVectorized: {
|
|
135
|
+
type: 'number[]',
|
|
136
|
+
required: true,
|
|
137
|
+
embeddingModel: DyFM_OAI_Model.textEmbedding_3Large,
|
|
138
|
+
// Generic embedding configuration - will be set by provider
|
|
139
|
+
vectorizedFrom: [ 'path', 'chunkContent' ],
|
|
140
|
+
vectorizeUseIndex: 'chunkParentedContentVectorized',
|
|
141
|
+
vectorizeAlways: true,
|
|
142
|
+
},
|
|
143
|
+
}
|
|
144
|
+
});
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { DyFM_DataModel_Params, DyFM_Metadata } from '@futdevpro/fsm-dynamo';
|
|
2
|
+
import { DyNTS_DAI_DocChunk } from './dai-doc-chunk.data-model';
|
|
3
|
+
import { DyNTS_DAI_document_dataParams } from './dai-document.data-model';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class DyNTS_DAI_DocPage<
|
|
8
|
+
T_Chunk extends DyNTS_DAI_DocChunk = DyNTS_DAI_DocChunk,
|
|
9
|
+
T_ExternalMetadata = any,
|
|
10
|
+
> extends DyFM_Metadata {
|
|
11
|
+
documentId: string;
|
|
12
|
+
/**
|
|
13
|
+
* this is the document id in the outside source
|
|
14
|
+
* eg.: the id in Clickup, Confluence, etc.
|
|
15
|
+
* */
|
|
16
|
+
externalDocumentId?: string;
|
|
17
|
+
/** this is the page id in the outside source
|
|
18
|
+
* eg.: the id in Clickup, Confluence, etc.
|
|
19
|
+
* */
|
|
20
|
+
externalPageId?: string;
|
|
21
|
+
|
|
22
|
+
name: string;
|
|
23
|
+
|
|
24
|
+
allFlaggedParents: string[];
|
|
25
|
+
allFlaggedParentsMerged: string;
|
|
26
|
+
|
|
27
|
+
filePath: string;
|
|
28
|
+
/** Path to the page in the document, starting with the document name */
|
|
29
|
+
parentedPath: string[];
|
|
30
|
+
|
|
31
|
+
/** runtime only */
|
|
32
|
+
chunks?: T_Chunk[] = [];
|
|
33
|
+
content: string;
|
|
34
|
+
|
|
35
|
+
/** runtime only */
|
|
36
|
+
pages?: DyNTS_DAI_DocPage<T_Chunk>[] = [];
|
|
37
|
+
|
|
38
|
+
externalMetadata?: T_ExternalMetadata;
|
|
39
|
+
|
|
40
|
+
constructor(
|
|
41
|
+
set?: DyNTS_DAI_DocPage<T_Chunk, T_ExternalMetadata>
|
|
42
|
+
) {
|
|
43
|
+
super(set);
|
|
44
|
+
|
|
45
|
+
if (set) {
|
|
46
|
+
Object.assign(this, set);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export const DyNTS_DAI_docPage_dataParams: DyFM_DataModel_Params<DyNTS_DAI_DocPage> = {
|
|
52
|
+
dataName: 'doc_page',
|
|
53
|
+
properties: {
|
|
54
|
+
externalDocumentId: {
|
|
55
|
+
type: 'string',
|
|
56
|
+
},
|
|
57
|
+
documentId: {
|
|
58
|
+
type: 'string',
|
|
59
|
+
required: true, index: true,
|
|
60
|
+
dependencyDataName: DyNTS_DAI_document_dataParams.dataName,
|
|
61
|
+
},
|
|
62
|
+
externalPageId: {
|
|
63
|
+
type: 'string',
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
name: {
|
|
67
|
+
type: 'string',
|
|
68
|
+
required: true,
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
allFlaggedParents: {
|
|
72
|
+
type: 'string[]',
|
|
73
|
+
required: true,
|
|
74
|
+
},
|
|
75
|
+
allFlaggedParentsMerged: {
|
|
76
|
+
type: 'string',
|
|
77
|
+
required: true,
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
filePath: {
|
|
81
|
+
type: 'string',
|
|
82
|
+
required: true,
|
|
83
|
+
},
|
|
84
|
+
parentedPath: {
|
|
85
|
+
type: 'string[]',
|
|
86
|
+
required: true,
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
content: {
|
|
90
|
+
type: 'string',
|
|
91
|
+
required: true,
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
externalMetadata: {
|
|
95
|
+
type: 'T_ExternalMetadata',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
///**
|
|
106
|
+
// * Generic document page interface
|
|
107
|
+
// * Provider-agnostic document page structure
|
|
108
|
+
// */
|
|
109
|
+
//export interface DyNTS_DAI_DocPage<T_Chunk = any> {
|
|
110
|
+
// /** Unique identifier for the page */
|
|
111
|
+
// id?: string;
|
|
112
|
+
// /** Name of the page */
|
|
113
|
+
// name: string;
|
|
114
|
+
// /** Content of the page */
|
|
115
|
+
// content: string;
|
|
116
|
+
// /** Link to the page */
|
|
117
|
+
// link?: string;
|
|
118
|
+
// /** Path to the page */
|
|
119
|
+
// path?: string;
|
|
120
|
+
// /** Parent path elements */
|
|
121
|
+
// parentedPath?: string[];
|
|
122
|
+
// /** All flagged parents merged */
|
|
123
|
+
// allFlaggedParentsMerged?: string;
|
|
124
|
+
// /** All flagged parents as array */
|
|
125
|
+
// allFlaggedParents?: string[];
|
|
126
|
+
// /** Chunks contained in this page */
|
|
127
|
+
// chunks?: T_Chunk[];
|
|
128
|
+
// /** Metadata about the page */
|
|
129
|
+
// metadata?: {
|
|
130
|
+
// createdAt?: Date;
|
|
131
|
+
// updatedAt?: Date;
|
|
132
|
+
// size?: number;
|
|
133
|
+
// [key: string]: any;
|
|
134
|
+
// };
|
|
135
|
+
//}
|
|
136
|
+
//
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { DyFM_DataModel_Params, DyFM_Metadata } from '@futdevpro/fsm-dynamo';
|
|
2
|
+
import { DyNTS_DAI_DocChunk } from './dai-doc-chunk.data-model';
|
|
3
|
+
import { DyNTS_DAI_DocPage } from './dai-doc-page.data-model';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class DyNTS_DAI_Document<
|
|
8
|
+
T_Chunk extends DyNTS_DAI_DocChunk = DyNTS_DAI_DocChunk,
|
|
9
|
+
T_Page extends DyNTS_DAI_DocPage<T_Chunk> = DyNTS_DAI_DocPage<T_Chunk>,
|
|
10
|
+
T_ExternalDocumentId = string, // | Record<string, string | number>,
|
|
11
|
+
T_ExternalMetadata = any,
|
|
12
|
+
> extends DyFM_Metadata {
|
|
13
|
+
/**
|
|
14
|
+
* this is the document id in the outside source
|
|
15
|
+
* eg.: the id in Clickup, Confluence, etc.
|
|
16
|
+
* */
|
|
17
|
+
externalDocumentId?: T_ExternalDocumentId; // | Record<string, string | number>;
|
|
18
|
+
|
|
19
|
+
name: string;
|
|
20
|
+
|
|
21
|
+
/** runtime only */
|
|
22
|
+
pages?: T_Page[] = [];
|
|
23
|
+
|
|
24
|
+
externalMetadata?: T_ExternalMetadata;
|
|
25
|
+
|
|
26
|
+
constructor(
|
|
27
|
+
set?: DyNTS_DAI_Document<T_Chunk, T_Page, T_ExternalDocumentId, T_ExternalMetadata>
|
|
28
|
+
) {
|
|
29
|
+
super(set);
|
|
30
|
+
|
|
31
|
+
if (set) {
|
|
32
|
+
Object.assign(this, set);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const DyNTS_DAI_document_dataParams: DyFM_DataModel_Params<DyNTS_DAI_Document> =
|
|
38
|
+
new DyFM_DataModel_Params<DyNTS_DAI_Document>({
|
|
39
|
+
dataName: 'document',
|
|
40
|
+
properties: {
|
|
41
|
+
externalDocumentId: {
|
|
42
|
+
type: 'string',
|
|
43
|
+
required: true,
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
name: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
required: true,
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
externalMetadata: {
|
|
52
|
+
type: 'T_ExternalMetadata',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
///**
|
|
63
|
+
// * Generic document page interface
|
|
64
|
+
// * Provider-agnostic document page structure
|
|
65
|
+
// */
|
|
66
|
+
//export interface DyNTS_DAI_DocPage<T_Chunk = any> {
|
|
67
|
+
// /** Unique identifier for the page */
|
|
68
|
+
// id?: string;
|
|
69
|
+
// /** Name of the page */
|
|
70
|
+
// name: string;
|
|
71
|
+
// /** Content of the page */
|
|
72
|
+
// content: string;
|
|
73
|
+
// /** Link to the page */
|
|
74
|
+
// link?: string;
|
|
75
|
+
// /** Path to the page */
|
|
76
|
+
// path?: string;
|
|
77
|
+
// /** Parent path elements */
|
|
78
|
+
// parentedPath?: string[];
|
|
79
|
+
// /** All flagged parents merged */
|
|
80
|
+
// allFlaggedParentsMerged?: string;
|
|
81
|
+
// /** All flagged parents as array */
|
|
82
|
+
// allFlaggedParents?: string[];
|
|
83
|
+
// /** Chunks contained in this page */
|
|
84
|
+
// chunks?: T_Chunk[];
|
|
85
|
+
// /** Metadata about the page */
|
|
86
|
+
// metadata?: {
|
|
87
|
+
// createdAt?: Date;
|
|
88
|
+
// updatedAt?: Date;
|
|
89
|
+
// size?: number;
|
|
90
|
+
// [key: string]: any;
|
|
91
|
+
// };
|
|
92
|
+
//}
|
|
93
|
+
//
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import { DyNTS_DAI_CompareResult_Type } from '../../_enums/dai-compare-result-type.enum';
|
|
4
|
+
import { DyNTS_DAI_DocChunk } from '../data-models/dai-doc-chunk.data-model';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export interface DyNTS_DAI_DocChunkCompareResult<
|
|
8
|
+
T_Chunk extends DyNTS_DAI_DocChunk = DyNTS_DAI_DocChunk
|
|
9
|
+
> {
|
|
10
|
+
result: DyNTS_DAI_CompareResult_Type;
|
|
11
|
+
newChunk: T_Chunk;
|
|
12
|
+
oldChunk?: T_Chunk;
|
|
13
|
+
|
|
14
|
+
reports?: string[];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DyNTS_DAI_DocChunk } from '../data-models/dai-doc-chunk.data-model';
|
|
2
|
+
import { DyNTS_DAI_DocChunkCompareResult } from './dai-doc-chunk-compare-result.interface';
|
|
3
|
+
import { DyNTS_DAI_CompareResult_Type } from '../../_enums/dai-compare-result-type.enum';
|
|
4
|
+
import { DyNTS_DAI_DocPage } from '../data-models/dai-doc-page.data-model';
|
|
5
|
+
|
|
6
|
+
export interface DyNTS_DAI_DocPageCompareResult<
|
|
7
|
+
T_Chunk extends DyNTS_DAI_DocChunk = DyNTS_DAI_DocChunk,
|
|
8
|
+
T_Page extends DyNTS_DAI_DocPage<T_Chunk> = DyNTS_DAI_DocPage<T_Chunk>,
|
|
9
|
+
> {
|
|
10
|
+
result: DyNTS_DAI_CompareResult_Type;
|
|
11
|
+
newPage: T_Page;
|
|
12
|
+
oldPage?: T_Page;
|
|
13
|
+
|
|
14
|
+
/* newChunks: T_Chunk[];
|
|
15
|
+
oldChunks: T_Chunk[]; */
|
|
16
|
+
chunkCompareResults: DyNTS_DAI_DocChunkCompareResult<T_Chunk>[];
|
|
17
|
+
|
|
18
|
+
reports?: string[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DyNTS_DAI_DocChunk } from '../data-models/dai-doc-chunk.data-model';
|
|
2
|
+
import { DyNTS_DAI_DocChunkCompareResult } from './dai-doc-chunk-compare-result.interface';
|
|
3
|
+
import { DyNTS_DAI_CompareResult_Type } from '../../_enums/dai-compare-result-type.enum';
|
|
4
|
+
import { DyNTS_DAI_DocPage } from '../data-models/dai-doc-page.data-model';
|
|
5
|
+
import { DyNTS_DAI_Document } from '../data-models/dai-document.data-model';
|
|
6
|
+
import { DyNTS_DAI_DocPageCompareResult } from './dai-doc-page-compare-result.interface';
|
|
7
|
+
|
|
8
|
+
export interface DyNTS_DAI_DocumentCompareResult<
|
|
9
|
+
T_Chunk extends DyNTS_DAI_DocChunk = DyNTS_DAI_DocChunk,
|
|
10
|
+
T_Page extends DyNTS_DAI_DocPage<T_Chunk> = DyNTS_DAI_DocPage<T_Chunk>,
|
|
11
|
+
T_ExternalDocumentId = string,
|
|
12
|
+
T_ExternalMetadata = any,
|
|
13
|
+
T_Document extends DyNTS_DAI_Document<T_Chunk, T_Page, T_ExternalDocumentId, T_ExternalMetadata> =
|
|
14
|
+
DyNTS_DAI_Document<T_Chunk, T_Page, T_ExternalDocumentId, T_ExternalMetadata>,
|
|
15
|
+
> {
|
|
16
|
+
result: DyNTS_DAI_CompareResult_Type;
|
|
17
|
+
newDocument: T_Document;
|
|
18
|
+
oldDocument?: T_Document;
|
|
19
|
+
|
|
20
|
+
/* newPages: T_Page[];
|
|
21
|
+
oldPages?: T_Page[]; */
|
|
22
|
+
pageCompareResults: DyNTS_DAI_DocPageCompareResult<T_Chunk, T_Page>[];
|
|
23
|
+
|
|
24
|
+
reports: string[];
|
|
25
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Re-export from FSM
|
|
2
|
+
export * from '@futdevpro/fsm-dynamo/ai/document-ai';
|
|
3
|
+
|
|
4
|
+
// COLLECTIONS
|
|
5
|
+
export * from './_collections/dai-chunking.util';
|
|
6
|
+
export * from './_collections/dai-document.util';
|
|
7
|
+
|
|
8
|
+
// ENUMS
|
|
9
|
+
//export * from './_enums/dai-validation-error.enum';
|
|
10
|
+
export * from './_enums/dai-compare-result-type.enum';
|
|
11
|
+
|
|
12
|
+
// MODELS
|
|
13
|
+
// models/DATA-MODELS
|
|
14
|
+
export * from './_models/data-models/dai-doc-chunk.data-model';
|
|
15
|
+
export * from './_models/data-models/dai-document.data-model';
|
|
16
|
+
export * from './_models/data-models/dai-doc-page.data-model';
|
|
17
|
+
|
|
18
|
+
// models/INTERFACES
|
|
19
|
+
export * from './_models/interfaces/dai-doc-chunk-compare-result.interface';
|
|
20
|
+
export * from './_models/interfaces/dai-doc-page-compare-result.interface';
|
|
21
|
+
export * from './_models/interfaces/dai-document-compare-result.interface';
|
|
22
|
+
|
|
23
|
+
//export * from './_models/dai-embedding-info.interface';
|
|
24
|
+
//export * from './_models/dai-embedding-validation.interface';
|
|
25
|
+
|
|
26
|
+
// SERVICES
|
|
27
|
+
//export * from './_services/dai-vector-data.service-base';
|
|
28
|
+
/* export * from './_services/dai-doc-chunk.service-base'; */
|
package/src/_modules/{open-ai → ai/_modules/open-ai}/_collections/oai-global-settings.const.ts
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DyFM_OAI_CallSettings } from '@futdevpro/fsm-dynamo/ai/open-ai';
|
|
2
2
|
import { DyNTS_OAI_Global_Settings } from '../_models/interfaces/oai-global-settings.interface';
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
export const DyNTS_OAI_global_settings: DyNTS_OAI_Global_Settings = {
|
|
7
|
-
defaultSettings: new
|
|
7
|
+
defaultSettings: new DyFM_OAI_CallSettings(),
|
|
8
8
|
maxMessagesStringLength: 120_000,
|
|
9
9
|
}
|