Skip to content

release: v0.3.0-alpha.1#34

Merged
RockChinQ merged 14 commits intomainfrom
0.3.0-alpha.1
Mar 5, 2026
Merged

release: v0.3.0-alpha.1#34
RockChinQ merged 14 commits intomainfrom
0.3.0-alpha.1

Conversation

@huanghuoguoguo
Copy link
Collaborator

@huanghuoguoguo huanghuoguoguo commented Feb 22, 2026

v0.3.0-alpha.1 Release Branch

RAGEngine Plugin Component (#31)

为 LangBot 插件 SDK 引入 RAGEngine 组件类型,使第三方插件可以提供自定义 RAG 实现:

  • RAGEngine 组件:新增 RAGEngine 基类,支持文档摄取、检索、删除及知识库生命周期管理(create/delete)
  • 能力声明:RAGEngine 可声明支持的能力(doc_ingestion、chunking_config、rerank、hybrid_search)
  • RAG RPC APIs:新增 invoke_embeddingrag_vector_upsertrag_vector_searchrag_vector_delete 等宿主服务代理方法
  • Schema 声明式化:创建/检索配置 schema 从 Python 方法迁移到 YAML manifest(spec.creation_schema / spec.retrieval_schema
  • CLI 模板lbp comp RAGEngine 可脚手架生成 RAG 引擎插件模板
  • 移除废弃机制:删除 KnowledgeRetriever、PolymorphicComponent、ChunkingStrategy/IndexingMode 枚举等旧代码

Other

  • bump version to 0.2.6 → 0.3.0-alpha.1
  • sync with main branch

Companion to LangBot PR #1993 (v4.9.0 release branch).

@huanghuoguoguo huanghuoguoguo changed the title 0.3.0 alpha.1 release: v0.3.0-alpha.1 Feb 22, 2026
- 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
huanghuoguoguo and others added 2 commits February 22, 2026 14:08
…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
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>
huanghuoguoguo and others added 8 commits February 23, 2026 06:55
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>
@RockChinQ RockChinQ merged commit 7ac95be into main Mar 5, 2026
@RockChinQ RockChinQ deleted the 0.3.0-alpha.1 branch March 5, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants