Merged
Conversation
779b496 to
c8beed1
Compare
- Add RAG engine component type with full lifecycle support - Implement embedding, vector storage, and retrieval proxy APIs - Add RAG-related host service methods for plugins - Update SDK templates and CLI for RAG engine scaffolding - Bump version to 0.3.0-alpha.1
c8beed1 to
89a62a6
Compare
RockChinQ
reviewed
Feb 22, 2026
RockChinQ
reviewed
Feb 22, 2026
…hema Remove RetrievalConfig class and redundant IngestionContext fields (chunking_strategy, chunk_size, chunk_overlap) since all parameters can be covered by the retrieval_settings_schema / creation_schema mechanism through custom_settings dicts. - Delete RetrievalConfig class and its export - Remove config field and get_top_k() from RetrievalContext, use top_k directly - Add retrieval_settings field to RetrievalContext (aligned with host) - Rename IngestionContext.custom_settings to creation_settings (aligned with host) - Update template to use context.top_k instead of context.get_top_k() Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…fields refactor(rag): remove redundant builtin fields, unify settings via schema
RockChinQ
reviewed
Feb 23, 2026
top_k is now passed via retrieval_settings dict, no longer a dedicated
field on RetrievalContext. Plugins should use
context.retrieval_settings.get('top_k', 5) instead.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
RockChinQ
reviewed
Feb 23, 2026
src/langbot_plugin/api/definition/components/rag_engine/engine.py
Outdated
Show resolved
Hide resolved
CHUNKING_CONFIG, RERANK, HYBRID_SEARCH have no consumers — these behaviors are controlled by the plugin's creation_schema / retrieval_schema. Only DOC_INGESTION is used by the frontend to decide whether to render the document upload UI. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…y_text support - Add SearchType enum (vector, full_text, hybrid) to RAG entities - Add documents parameter to vector_upsert for full-text/hybrid search - Add search_type and query_text parameters to vector_search Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…stream Use send_file/read_local_file pattern instead of inline base64 encoding for large binary file transfers in the GET_RAG_FILE_STREAM action. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…37) * feat(parser): add Parser component and DOC_PARSING engine capability Add Parser as a new component type for external document parsing plugins. Includes SDK entities (ParseContext, ParseResult, TextSection), CLI scaffolding, runtime handlers for parse_document action, and plugin manager methods. Also add DOC_PARSING capability flag to RAGEngineCapability so engines can declare native parsing support — used by the frontend to decide whether to show the RAG engine as a parser option. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(parser): replace base64 with chunked file transfer and add invoke_parser API - Replace inline base64 file content with send_file/read_local_file chunked transfer pattern across the full parse_document chain - Add invoke_parser() method to LangBotAPIProxy for plugin developers Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…in multiple languages
RockChinQ
approved these changes
Mar 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v0.3.0-alpha.1 Release Branch
RAGEngine Plugin Component (#31)
为 LangBot 插件 SDK 引入 RAGEngine 组件类型,使第三方插件可以提供自定义 RAG 实现:
RAGEngine基类,支持文档摄取、检索、删除及知识库生命周期管理(create/delete)invoke_embedding、rag_vector_upsert、rag_vector_search、rag_vector_delete等宿主服务代理方法spec.creation_schema/spec.retrieval_schema)lbp comp RAGEngine可脚手架生成 RAG 引擎插件模板Other