[PR #1884] [MERGED] feat(knowledge_pro): update to v0.0.6 with embedding cost configuration #1927

Closed
opened 2026-02-22 18:11:45 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugins/pull/1884
Author: @abesticode
Created: 1/12/2026
Status: Merged
Merged: 1/12/2026
Merged by: @crazywoola

Base: mainHead: abesticode/knowledge-pro-v0.0.6


📝 Commits (1)

  • 6e088cd feat(knowledge_pro): update to v0.0.6 with embedding cost configuration

📊 Changes

1 file changed (+0 additions, -0 deletions)

View changed files

📝 abesticode/knowledge_pro/dify-plugin-knowledge-pro.difypkg (+0 -0)

📄 Description

feat(knowledge_pro): update to v0.0.6 with Embedding Cost Configuration

What's New in v0.0.6:

  • Add configurable Embedding Model selection in provider credentials
  • Add Custom Cost input for custom embedding models (cost per 1M tokens)
  • Add cost_info object to JSON response for easy data extraction
  • Support preset models: OpenAI (ada-002, 3-small, 3-large), Cohere, Voyage

Plugin Submission Form

1. Metadata

2. Submission Type

  • New plugin submission
  • Version update for existing plugin

3. Description

This update adds Embedding Cost Configuration to the Knowledge Pro plugin, allowing users to accurately track and estimate embedding costs when managing their Knowledge Base.

New Features

1. Embedding Model Selection (Provider Credentials)

Users can now select their embedding model from provider settings:

  • OpenAI text-embedding-ada-002 ($0.10/1M tokens)
  • OpenAI text-embedding-3-small ($0.02/1M tokens)
  • OpenAI text-embedding-3-large ($0.13/1M tokens)
  • Cohere embed-english-v3.0 ($0.10/1M tokens)
  • Cohere embed-multilingual-v3.0 ($0.10/1M tokens)
  • Voyage voyage-large-2 ($0.12/1M tokens)
  • Voyage voyage-code-2 ($0.12/1M tokens)
  • Custom (set your own cost per 1M tokens)

2. Custom Cost Input

For users with custom or local embedding models, they can input their own cost rate per 1M tokens for accurate cost tracking.

3. cost_info Object in JSON Response

New cost_info object added to all relevant tool responses for easy data extraction in workflows. Example structure:

  • tokens: 143
  • tokens_is_estimated: true
  • cost_usd: 0.00001859
  • embedding_model: text-embedding-3-large
  • cost_per_1m_tokens_usd: 0.13
  • word_count: 77
  • character_count: 573

4. Tools Updated with Cost Information

  • Create/Update Document - Shows estimated tokens and cost before indexing
  • Add Chunks - Shows actual or estimated tokens and cost
  • Get Indexing Status - Shows actual tokens and cost after indexing completes

Benefits

  • Track embedding costs in real-time
  • No regex needed - directly select cost_info.cost_usd from JSON
  • Supports both preset and custom embedding models
  • Helps with budget planning for Knowledge Base operations

Total Tools: 22

4. Checklist

  • I have read and followed the Publish to Dify Marketplace guidelines
  • I have read and comply with the Plugin Developer Agreement
  • I confirm my plugin works properly on both Dify Community Edition and Cloud Version
  • I confirm my plugin has been thoroughly tested for completeness and functionality
  • My plugin brings new value to Dify

5. Documentation Checklist

Please confirm that your plugin README includes all necessary information:

  • Step-by-step setup instructions
  • Detailed usage instructions
  • All required APIs and credentials are clearly listed
  • Connection requirements and configuration details
  • Link to the repository for the plugin source code

6. Privacy Protection Information

Based on Dify Plugin Privacy Protection Guidelines:

Data Collection

This plugin does NOT collect any user personal data. It only processes:

  • API credentials (stored securely by Dify, not by the plugin)
  • Knowledge Base content that users explicitly choose to manage
  • Embedding cost calculations (performed locally, no data sent externally)

No personal identifiable information (PII) such as email addresses, IP addresses, names, or any other personal data is collected, stored, or transmitted by this plugin.

Privacy Policy

  • I confirm that I have prepared and included a privacy policy in my plugin package based on the Plugin Privacy Protection Guidelines

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugins/pull/1884 **Author:** [@abesticode](https://github.com/abesticode) **Created:** 1/12/2026 **Status:** ✅ Merged **Merged:** 1/12/2026 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `abesticode/knowledge-pro-v0.0.6` --- ### 📝 Commits (1) - [`6e088cd`](https://github.com/langgenius/dify-plugins/commit/6e088cdf36a6fdce97b563719345780bf5b3f0a5) feat(knowledge_pro): update to v0.0.6 with embedding cost configuration ### 📊 Changes **1 file changed** (+0 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `abesticode/knowledge_pro/dify-plugin-knowledge-pro.difypkg` (+0 -0) </details> ### 📄 Description ## feat(knowledge_pro): update to v0.0.6 with Embedding Cost Configuration ### What's New in v0.0.6: - Add configurable Embedding Model selection in provider credentials - Add Custom Cost input for custom embedding models (cost per 1M tokens) - Add cost_info object to JSON response for easy data extraction - Support preset models: OpenAI (ada-002, 3-small, 3-large), Cohere, Voyage --- # Plugin Submission Form ## 1. Metadata - **Plugin Author**: abesticode - **Plugin Name**: knowledge_pro - **Repository URL**: https://github.com/abesticode/dify-plugin-knowledge-pro ## 2. Submission Type - [ ] New plugin submission - [x] Version update for existing plugin ## 3. Description This update adds Embedding Cost Configuration to the Knowledge Pro plugin, allowing users to accurately track and estimate embedding costs when managing their Knowledge Base. ### New Features **1. Embedding Model Selection (Provider Credentials)** Users can now select their embedding model from provider settings: - OpenAI text-embedding-ada-002 ($0.10/1M tokens) - OpenAI text-embedding-3-small ($0.02/1M tokens) - OpenAI text-embedding-3-large ($0.13/1M tokens) - Cohere embed-english-v3.0 ($0.10/1M tokens) - Cohere embed-multilingual-v3.0 ($0.10/1M tokens) - Voyage voyage-large-2 ($0.12/1M tokens) - Voyage voyage-code-2 ($0.12/1M tokens) - Custom (set your own cost per 1M tokens) **2. Custom Cost Input** For users with custom or local embedding models, they can input their own cost rate per 1M tokens for accurate cost tracking. **3. cost_info Object in JSON Response** New cost_info object added to all relevant tool responses for easy data extraction in workflows. Example structure: - tokens: 143 - tokens_is_estimated: true - cost_usd: 0.00001859 - embedding_model: text-embedding-3-large - cost_per_1m_tokens_usd: 0.13 - word_count: 77 - character_count: 573 **4. Tools Updated with Cost Information** - Create/Update Document - Shows estimated tokens and cost before indexing - Add Chunks - Shows actual or estimated tokens and cost - Get Indexing Status - Shows actual tokens and cost after indexing completes ### Benefits - Track embedding costs in real-time - No regex needed - directly select cost_info.cost_usd from JSON - Supports both preset and custom embedding models - Helps with budget planning for Knowledge Base operations Total Tools: 22 ## 4. Checklist - [x] I have read and followed the Publish to Dify Marketplace guidelines - [x] I have read and comply with the Plugin Developer Agreement - [x] I confirm my plugin works properly on both Dify Community Edition and Cloud Version - [x] I confirm my plugin has been thoroughly tested for completeness and functionality - [x] My plugin brings new value to Dify ## 5. Documentation Checklist Please confirm that your plugin README includes all necessary information: - [x] Step-by-step setup instructions - [x] Detailed usage instructions - [x] All required APIs and credentials are clearly listed - [x] Connection requirements and configuration details - [x] Link to the repository for the plugin source code ## 6. Privacy Protection Information Based on Dify Plugin Privacy Protection Guidelines: ### Data Collection This plugin does NOT collect any user personal data. It only processes: - API credentials (stored securely by Dify, not by the plugin) - Knowledge Base content that users explicitly choose to manage - Embedding cost calculations (performed locally, no data sent externally) No personal identifiable information (PII) such as email addresses, IP addresses, names, or any other personal data is collected, stored, or transmitted by this plugin. ### Privacy Policy - [x] I confirm that I have prepared and included a privacy policy in my plugin package based on the Plugin Privacy Protection Guidelines --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:11:45 -05:00
yindo closed this issue 2026-02-22 18:11:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugins#1927