UNPKG

@websolutespa/payload-plugin-bowl-llm

Version:

LLM plugin for Bowl PayloadCms plugin

1,494 lines (855 loc) 22.3 kB
# @websolutespa/payload-plugin-bowl-llm ## 3.0.1 ### Patch Changes - Updating: dependencies - Updated dependencies - @websolutespa/payload-plugin-cron-job@3.0.1 - @websolutespa/payload-plugin-bowl@3.0.3 - @websolutespa/payload-utils@3.0.1 - @websolutespa/bom-core@3.0.1 ## 3.0.0 ### Major Changes - Release: Bom 3.0 ## 2.0.1-next.4 ### Patch Changes - Updated dependencies - @websolutespa/payload-plugin-bowl@2.0.1-next.4 ## 2.0.1-next.3 ### Patch Changes - Updated dependencies [2508714] - @websolutespa/payload-plugin-bowl@2.0.1-next.3 ## 2.0.1-next.2 ### Patch Changes - Updating: dependencies and build step ## 1.9.77 ### Patch Changes - paylod-plugin-bowl-llm Temporary added custom sharepoint integration ## 1.9.76 ### Patch Changes - payload-plugin-bowl-llm Added: Zendesk integration ## 1.9.75 ### Patch Changes - a843ef5: Added minimize option ## 1.9.74 ### Patch Changes - payload-plugin-bowl-llm Added: - MCP Server integration ## 1.9.73 ### Patch Changes - payload-plugin-bowl-llm Added: - JQL filter for Jira integration ## 1.9.72 ### Patch Changes - payload-plugin-bowl-llm Added: - API tool - Limit parameter for DB data source ## 1.9.71 ### Patch Changes - payload-plugin-bowl-llm Added: - deepLevel chunking for MarkdownHeaderSplitter ## 1.9.70 ### Patch Changes - payload-plugin-bowl-llm Added: - chunking functionality parameters ## 1.9.69 ### Patch Changes - payload-plugin-bowl-llm - Add additionalPrompt field to PythonStreamDbSettings ## 1.9.68 ### Patch Changes - payload-plugin-bowl-llm - Introduced 'filterHandle' parameter in LlmKbShopify integration. - Enhanced ShopifyParams to support 'filter_handle' for filtering data. ## 1.9.67 ### Patch Changes - payload-plugin-bowl-llm simplify LlmKbSharepoint integration options by removing unused fields and adjusting required properties ## 1.9.66 ### Patch Changes - payload-plugin-bowl-llm Add outputStructure configuration to LLM handlers and types ## 1.9.65 ### Patch Changes - Added: llmHistory, history handler, enabledHistory ## 1.9.64 ### Patch Changes - payload-plugin-bowl-llm ## 1.9.63 ### Patch Changes - payload-plugin-bowl-llm Added: - LlmKbApi integration and update related options and types ## 1.9.62 ### Patch Changes - 96d1ee1: - Modified: reduced log message size in llmKbWebhookHandler - Modified: increased maxLength of field message in LlmThread collection ## 1.9.61 ### Patch Changes - 3a38efa: - Modified: reduced log message size in rulesHandler, llmVectorDbsCleaningHandler - Modified: increased maxLength of field message in LlmThread collection ## 1.9.60 ### Patch Changes - c8b6253: Add logThread qs param handling in message handler ## 1.9.59 ### Patch Changes - f826c08: Fixing: info.handler - ba32bef: Added: maxFileSize & mimeTypes - f826c08: Added: storageMode option ## 1.9.58 ### Patch Changes - Added: disablePoweredBy flag and promptTokenLimit option ## 1.9.57 ### Patch Changes - 1c3b96f: Add llmUserUpload access read restriction ## 1.9.56 ### Patch Changes - payload-plugin-bowl-llm Added: - maxNumOfDocsFromEachSpace field for Confluence integration ## 1.9.55 ### Patch Changes - Modified: llmUserUpload access ## 1.9.54 ### Patch Changes - 93bca5f: Add LlmUserUpload collection - dfd6f0d: Added: file upload method for attachments of type image & file ## 1.9.53 ### Patch Changes - Removing: fixed plugin preview version ## 1.9.52 ### Patch Changes - Added: preview custom plugin configuration ## 1.9.51 ### Patch Changes - payload-plugin-bowl-llm Add Shopify integration and update related components ## 1.9.50 ### Patch Changes - payloud-plugin-bowl-llm Added: - strucutred output selection for LlmChain tools - Thron integration ## 1.9.49 ### Patch Changes - 64db7cc: Add "createdAt" field in LlmThread messages ## 1.9.48 ### Patch Changes - payload-plugin-bowl-llm Fix: - Missing translations: Added: - 'None' parameter to KB tool data source ## 1.9.47 ### Patch Changes - 69664ad: Add sending message feedback to Robot ## 1.9.46 ### Patch Changes - 5de7ecc: Add history functionality in messageHandler ## 1.9.45 ### Patch Changes - 78c8589: Add systemContext to invoke and stream handler ## 1.9.44 ### Patch Changes - Modified: MessageService abort message ## 1.9.43 ### Patch Changes - fb1caf0: Add feedback functionality ## 1.9.42 ### Patch Changes - Add webhook endpoint url to env vars ## 1.9.41 ### Patch Changes - cefc393: - Alignment to stable version - 3ec563c: - Add from_env, from_file integration fields - b7d2e3d: Add ROBOT integration - 582ccc3: Add Azure, Dropbox, Gcs, Gdrive, S3, SFTP, Slack integrations - 48d207d: - Add LlmApp provider selection - Add LlmApp apiKey, embeddingApiKey fields - Add tool vectorDbType selection - d3621aa: - Alignment to stable version - c1474f5: payload-plugin-bowl-llm Add: - Restriction domain param for sitemap integration - 3951284: payload-pluginlbowl-llm Deleted: - FieldMapping field on Jira integration - f8bc1c2: - Add raw stream handling in message handler - 5f745a6: payload-plugin-bowl-llm Added: - metadata fileds in tool - endoint mapper in Jira integration - bba5080: fix: prevent (multi-instance) duplicate kb generation - 54a592b: payload-plugin-bowl-llm Modified: - Confluence block integration. Added: - Confluence password field - Description of fileds for Confluence block integration - d7a1a94: Add LlmKbConfluence, LlmKbGithub, LlmKbJira integrations - e5798a3: payload-plugin-bowl-llm Fix: - added endpoints fields to robot - ca5befa: payload-plugin-bowl-llm Fixed: - rules runtime invocation and update vectorDbFile to vector_db in API handlers - adcada3: Add conditional kb generation - Updated dependencies [d3621aa] - Updated dependencies [a65fe5c] - Updated dependencies [7103bb7] - Updated dependencies [f4fd88e] - @websolutespa/payload-plugin-bowl@1.9.14 ## 1.9.41-next.0 ### Patch Changes - - Alignment to stable version ## 1.9.40 ### Patch Changes - Fixing: chunksToChunkItems first chunk ## 1.9.40-next.0 ### Patch Changes - - Alignment to stable version - Updated dependencies - @websolutespa/payload-plugin-bowl@1.9.13-next.0 ## 1.9.39 ### Patch Changes - Added: disclaimerShort ## 1.9.38 ### Patch Changes - Added: disclaimer footer & header ctas ## 1.9.38-next.9 ### Patch Changes - payload-plugin-bowl-llm Add: - Restriction domain param for sitemap integration ## 1.9.38-next.8 ### Patch Changes - payload-plugin-bowl-llm Fixed: - rules runtime invocation and update vectorDbFile to vector_db in API handlers ## 1.9.38-next.7 ### Patch Changes - - Add raw stream handling in message handler ## 1.9.38-next.6 ### Patch Changes - payload-plugin-bowl-llm Modified: - Confluence block integration. Added: - Confluence password field - Description of fileds for Confluence block integration ## 1.9.38-next.5 ### Patch Changes - payload-pluginlbowl-llm Deleted: - FieldMapping field on Jira integration ## 1.9.38-next.4 ### Patch Changes - 3ec563c: - Add from_env, from_file integration fields - 48d207d: - Add LlmApp provider selection - Add LlmApp apiKey, embeddingApiKey fields - Add tool vectorDbType selection ## 1.9.38-next.3 ### Patch Changes - payload-plugin-bowl-llm Fix: - added endpoints fields to robot ## 1.9.38-next.2 ### Patch Changes - payload-plugin-bowl-llm Added: - metadata fileds in tool - endoint mapper in Jira integration ## 1.9.38-next.1 ### Patch Changes - fix: prevent (multi-instance) duplicate kb generation ## 1.9.38-next.0 ### Patch Changes - 582ccc3: Add Azure, Dropbox, Gcs, Gdrive, S3, SFTP, Slack integrations - Updated dependencies - @websolutespa/payload-plugin-bowl@1.9.7-next.0 ## 1.9.37 ### Patch Changes - c5629d1: Add LlmApp links ## 1.9.37-next.0 ### Patch Changes - adcada3: Add conditional kb generation ## 1.9.36 ### Patch Changes - 6a335b7: Added: LlmTest upload image button - 77ef1ea: Added: LlmContents.enableUpload flag - 77ef1ea: Added: disableSpeechRecognition ## 1.9.36-next.1 ### Patch Changes - d7a1a94: Add LlmKbConfluence, LlmKbGithub, LlmKbJira integrations ## 1.9.36-next.0 ### Patch Changes - b7d2e3d: Add ROBOT integration - Updated dependencies [f4fd88e] - @websolutespa/payload-plugin-bowl@1.9.6-next.0 ## 1.9.35 ### Patch Changes - payload-plugin-bowl-llm Fix: - rules and threshold set for different agent types ## 1.9.34 ### Patch Changes - payload-plugin-bowl-llm Fix: - delete useless code ## 1.9.33 ### Patch Changes - payload-plugin-bowl-llm Added: - score threshold for rules search Fix: - metadata filters now use field instead ## 1.9.32 ### Patch Changes - Added: openingSound ## 1.9.31 ### Patch Changes - payload-plugin-bowl-llm Modified: - filter metedada products now have sku ## 1.9.30 ### Patch Changes - payload-plugin-bowl-llm Added: - vectore db filters by metadata ## 1.9.29 ### Patch Changes - payload-plugin-bowl-llm fixed: - category metadata of json products ## 1.9.28 ### Patch Changes - payload-plugin-bowl-llm Fixed: - Excel loader error catching ## 1.9.27 ### Patch Changes - payload-plugin-bowl-llm Modified: - pdf Loader now use PyMuPdf ## 1.9.26 ### Patch Changes - payload-plugin-bowl-llm Added: - sharepoint filters by tag/columns - sharepoint filters by files type Modified: - PDF loader now use Unstructured ## 1.9.25 ### Patch Changes - payload-plugin-bowl-llm Modified: - loader xls\* is now custom ## 1.9.24 ### Patch Changes - 91452fb: Change labels "prompt" to "mental model" - b23d6e0: Change LlmPrompt title field to non localizable - 70a333a: Add LlmPrompt access permissions for LlmContributor role ## 1.9.23 ### Patch Changes - payload-plugin-bowl-llm Fix: - urls loader ## 1.9.22 ### Patch Changes - 60f1084: Add LlmPrompt collection ## 1.9.21 ### Patch Changes - 88267c3: Modified: previewHandler ## 1.9.20 ### Patch Changes - f5e5f67: Fix rules generation error reporting - 0b0220d: Add isActive tool filtering in kb generation modal ## 1.9.19 ### Patch Changes - payload-plugin-bowl-llm Modified: - urls loader scrape only text ## 1.9.18 ### Patch Changes - payload-plugin-bowl-llm Modified: - urls loader logic using Scrapy Deleted: - QuestionGeneratorToolWrapper ## 1.9.17 ### Patch Changes - payload-plugin-bowl-llm Added: - Image Loader with OCR ## 1.9.16 ### Patch Changes - e98e4a2: Add vectordbfile relationship filtering in tools and apps - 236d84d: Add vectordbs cleaning job - ffde61c: Add isActive field in LlmKbFile, LlmRule - 2b5c98c: Add kb generation mode selector ## 1.9.15 ### Patch Changes - payload-plugin-bowl-llm Fixed: - Nebuly callback Added: - sharepoint integration now scrapre site pages ## 1.9.14 ### Patch Changes - Modified: textToChunks - Added: recognitionMode, synthesisMode, textToSpeechApiKey, textToSpeechVoiceId ## 1.9.13 ### Patch Changes - Modified: printJson for exceptions agent ## 1.9.12 ### Patch Changes - Modified: MessageService ## 1.9.11 ### Patch Changes - payload-plugin-bowl-llm Modified: - Hide warnings rules score threshold ## 1.9.10 ### Patch Changes - Added: CustomThemeDescription & CustomThemeDescriptionModal - Modified: MessageService - Added: StreamError ## 1.9.9 ### Patch Changes - payload-plugin-bowl-llm Added: - email_sender tool Modified: - prinitString and printJson are now async Fixed: - ppt/pptx loaders now can read page without text ## 1.9.8 ### Patch Changes - payload-plugin-bowl-llm Added: - email_sender tool - LlmApp additionalLogos Modified: - prinitString and printJson are now async Fixed: - ppt/pptx loaders now can read page without text ## 1.9.7 ### Patch Changes - 4ebad05: Fix long running kb generation timeout ## 1.9.6 ### Patch Changes - payload-plugin-bowl-llm Deleted: - tool card output visualization ## 1.9.5 ### Patch Changes - payload-plugin-bowl-llm Modified: - LLM output can now steream json block. ## 1.9.4 ### Patch Changes - payload-plugin-bowl-llm Added: - Sharepoint KB intregration - Followup question Tool - Excel custom KB loader ## 1.9.3 ### Patch Changes - payload-plugin-bowl-llm Fixed: - urls_loader import ## 1.9.2 ### Patch Changes - payload-plugin-bowl-llm Fixed: - kb generation error reporting Modified: - llmKbFiles use now PAYLOAD_STORAGE_ADAPTER - vector store logic generation Added: - sharepoint loader integration ## 1.9.1 ### Patch Changes - 15ad595: Modified: payload local api consolidated overrideAccess ## 1.9.0 ### Minor Changes - 8475b68: Added: external dependency payload-utils - 946a81f: Updating: dependency payload 2.28.0 ### Patch Changes - Updated dependencies [8475b68] - Updated dependencies [8593eb6] - Updated dependencies [8475b68] - Updated dependencies [946a81f] - @websolutespa/payload-utils@0.0.1 - @websolutespa/payload-plugin-bowl@1.9.0 ## 1.8.23 ### Patch Changes - payload-plugin-bowl-llm Added: - Secret value for product sorting ## 1.8.22 ### Patch Changes - payload-plugin-bowl-llm Modified: - logic filters for silicon catalog retriever ## 1.8.21 ### Patch Changes - payload-plugin-bowl-llm Modified: - logic tool catalog ## 1.8.20 ### Patch Changes - payload-plugin-bowl-llm Modified: - catalog tool retriever by price and qty ## 1.8.19 ### Patch Changes - payload-plugin-bowl-llm Modified: - json structure for card silicon ## 1.8.18 ### Patch Changes - 5281db2: payload-plugin-bowl-llm Modified: - return value for catalog tool Added: - tool content in memory LLM ## 1.8.17 ### Patch Changes - Modified: preview handler style ## 1.8.16 ### Patch Changes - cefdaf1: payload-plugin-bowl-llm Modified: - catalog_search model ## 1.8.15 ### Patch Changes - b1547bf: payload-plugin-bowl-llm Added: - new tool for display catalog card Modified: - "models.py" is now "models_input.py" ## 1.8.14 ### Patch Changes - 0e54cdd: payload-plugin-bowl-llm Modified: - json loader logic - update langchain libraries Added: - Basic and Bearer auth for KB endpoints - 3528267: Add external endpoints auth settings ## 1.8.13 ### Patch Changes - 7e3fdc5: Added LlmVectorDb collection - 94b486d: Added notes field in LlmVectorDb Removed llm cronjob Removed knowledgebase files field in LlmApp, Tool - 7e3fdc5: Added app selection modal when generating rules ## 1.8.12 ### Patch Changes - b89e397: payload-plugin-bowl-llm Modified: - Json loader now doesn't split page content ## 1.8.11 ### Patch Changes - a0c03df: payload-plugin-bowl-llm Added: - retriever tool configuration ## 1.8.10 ### Patch Changes - f521757: payload-plugin-bowl-llm Added: - parser exclusion classes and ids. ## 1.8.9 ### Patch Changes - 1e1979a: payload-plugin-bowl-llm Fix: - scraper start with correct app mode ## 1.8.8 ### Patch Changes - 7c27ce1: payload-plugin-bowl-llm Added: - Exception raise for bad status scraping ## 1.8.7 ### Patch Changes - 772246f: payload-plugin-bowl-llm Added: - temperature field for main Agent Modified: - AppTool model selector is now in llmChainSettings ## 1.8.6 ### Patch Changes - ae25694: payload-plugin-bowl-llm Modifed: - Nebuly user interactions by thread Id ## 1.8.5 ### Patch Changes - 45251b8: Added app selection during kb generation ## 1.8.4 ### Patch Changes - b5aa316: payload-plugin-bowl-llm Modified: - change output card retriever from 4 to 5 Fix: - On head prompt strict rules ## 1.8.3 ### Patch Changes - Added LlmContributor role ## 1.8.2 ### Patch Changes - Fixed LlmKbFile create access ## 1.8.1 ### Patch Changes - 9e903bb: Added: knowledgebase refactor (new LlmKbFile collection) ## 1.8.0 ### Patch Changes - @websolutespa/payload-plugin-bowl@1.8.0 ## 1.7.33 ### Patch Changes - 32893ec: Added LlmEditor role - Updated dependencies [32893ec] - @websolutespa/payload-plugin-bowl@1.7.26 ## 1.7.32 ### Patch Changes - 9b56619: - Fixed: LlmApp update access ## 1.7.31 ### Patch Changes - 114cbee: Added: LlmAppContents disableSpeechSynthesis flag ## 1.7.30 ### Patch Changes - 5838f51: - Added: multi-tenancy - Updated dependencies [5838f51] - @websolutespa/payload-plugin-bowl@1.7.22 ## 1.7.29 ### Patch Changes - e5fdb6e: payload-plugin-bowl-llm Added: - Security patch for LLM prompt ## 1.7.28 ### Patch Changes - 822536f: payload-plugin-bowl-llm Fix: - input model items set to 10 ## 1.7.27 ### Patch Changes - 0016768: payload-plugin-bowl-llm Added: - rules for every agent types - utility class for agents ## 1.7.26 ### Patch Changes - d8ef8ad: payload-plugin-bowl-llm Modified: - input model for event tool - label name of "mode" ## 1.7.25 ### Patch Changes - 3237ade: Added: - new model for ImageGeneration tool Fix: - print json on_tool_end python handler - message assistant content ## 1.7.24 ### Patch Changes - Added: llm preview link, previewEnabled flag ## 1.7.23 ### Patch Changes - Added: - mode "tranlation" application - "invoke" endpoint ## 1.7.22 ### Patch Changes - Added: promptPlaceholder ## 1.7.21 ### Patch Changes - Modified: Pydantic models default_factory - Fix: Scraper for agent descriptor now skip style and script tags ## 1.7.20 ### Patch Changes - Added: url2text llmapp mode - Fix: modified content of message history ## 1.7.19 ### Patch Changes - Fixing: downgrading eslint to v8.56.0 - Updated dependencies - @websolutespa/payload-plugin-bowl@1.7.12 ## 1.7.18 ### Patch Changes - Modified: URLs retriever using BeautifullSoup - Modified: fix jsonLoader error ## 1.7.17 ### Patch Changes - Fixing: rules KB loader - Updated dependencies - @websolutespa/payload-plugin-bowl@1.7.10 ## 1.7.16 ### Patch Changes - Fixing: use PAYLOAD_PUBLIC_BASE_PATH in fetch ## 1.7.15 ### Patch Changes - Added: functionId for tools and refactor - Added: openai model property for tools - 2157762: - Added: llm model selector field in LlmApp, appTool ## 1.7.14 ### Patch Changes - Modified: chunksToResponse, LlmTestApp - 0181617: Added: vars collapsedWelcomeTextCta, promptPlaceholder ## 1.7.13 ### Patch Changes - Fixing: SQL Tool events date query ## 1.7.12 ### Patch Changes - Modified: Sql tools ## 1.7.11 ### Patch Changes - Modified: SQL tool Poi order ## 1.7.10 ### Patch Changes - Added: theme, customTheme, customIntro - Fixing: textToChunks ## 1.7.9 ### Patch Changes - Added: filter published in SQL query event, poi ## 1.7.8 ### Patch Changes - Fixing: Poi sql query ## 1.7.7 ### Patch Changes - Modified: LlmTest - Modified: Order by for tool poi - Renamed: my_loader -> json_loader - Fixing: change event description to abstract - Fixing: error when nebuly key missing ## 1.7.6 ### Patch Changes - Added: Tag and Category filter to Poi SQL query - Fixing: Poi results ## 1.7.5 ### Patch Changes - Fixing: image url, new line after waiting message - Removed: llmapp prompt localization ## 1.7.4 ### Patch Changes - Added: random localized waiting message - Added: SQL query regexp ## 1.7.3 ### Patch Changes - Updating: dependencies - Updated dependencies - Updated dependencies - @websolutespa/payload-plugin-bowl@1.7.7 ## 1.7.2 ### Patch Changes - 739f572: Added: disclaimer field in llmApp - Added: Nebuly service - Fixing: prompt priority & date filter ## 1.7.1 ### Patch Changes - Added: tools properties from bom to python - Added: rules generation button - Added: Sql tool poi and experiences - Added: json response in summary endpoint - Added: tool isActive - Added: markdown - Modified: chunkToResponse in pythonStreamHandler - Fixing: date format, FAISS - Fixing: upload validation error, summary email post handler - Fixing: python printString - Fixing: tools description and KB generation - Fixing: rulesHandler export ## 0.1.10 ### Patch Changes - Fixing: tools description and KB generation ## 0.1.9 ### Patch Changes - Added: tools properties from bom to python - Added: rules generation button ## 0.1.8 ### Patch Changes - Fixing: date format, FAISS ## 0.1.7 ### Patch Changes - Added: Sql tool poi and experiences ## 0.1.6 ### Patch Changes - 35797848: Modified: chunkToResponse in pythonStreamHandler - dcff0b0b: - Added: json response in summary endpoint ## 0.1.5 ### Patch Changes - Added: tool isActive - Fixing: upload validation error, summary email post handler ## 0.1.4 ### Patch Changes - Added: markdown - Fixing: python printString ## 1.7.0 ### Minor Changes - 28e86bd: Modified: IPage, Store services & decorators - Updated dependencies [28e86bd] - @websolutespa/payload-plugin-bowl@1.7.0 ## 0.1.3 ### Patch Changes - Fixing restaurants tool ## 1.6.1 ### Patch Changes - Fixing: tool document retriever to tool function ## 0.1.2 ### Patch Changes - Fixing: tool document retriever to tool function ## 1.6.0 ### Minor Changes - 6707ca2: Upgrading Payload 2.11.2 ### Patch Changes - Updated dependencies [f664993] - Updated dependencies [6707ca2] - @websolutespa/payload-plugin-bowl@1.4.0 ## 0.1.1 ### Patch Changes - Added: Multiple files loader, Document retriever default tool ## 0.1.0 ### Minor Changes - Added: separated knowledge bases, appTools ## 0.0.11 ### Patch Changes - Fixing: fineTuning export ## 0.0.10 ### Patch Changes - Added: fineTunedModel, custom loader, datestamp, gpt-4 ## 0.0.9 ### Patch Changes - Modified: bin activation ## 0.0.8 ### Patch Changes - Added: Tripadvisor tool - Modified: multi tool agent ## 0.0.7 ### Patch Changes - Modified: model gpt-3.5-turbo-0125, tools description ## 0.0.6 ### Patch Changes - Fixing: ChatPromptValue import ## 0.0.5 ### Patch Changes - Added: tools - Modified: agent ## 0.0.4 ### Patch Changes - Added: webhooks - Modified: LlmTest, infoHandler, threadHandler - Fixing: line endings ## 0.0.3 ### Patch Changes - Added: knowledgeBaseHandler ## 0.0.2 ### Patch Changes - Added: langchain ## 0.0.1 ### Patch Changes - Added: first release