mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-05 07:12:02 +08:00
feat(plugins): consolidate official plugins with independent releases (LANG-180) (#2797)
Co-authored-by: multica-agent <[email protected]>
This commit is contained in:
co-authored by
multica-agent
parent
d099033d79
commit
3a77306c3c
@@ -113,7 +113,7 @@ Other retrieval behaviors (such as reranking, hybrid search, etc.) are controlle
|
||||
|
||||
## Plugin Handler
|
||||
|
||||
The following code will be generated by default (`components/knowledge_engine/<engine_name>.py`). You need to implement the three core methods: `ingest`, `retrieve`, and `delete_document`. Complete code can be found in the `SimpleKnowledgeEngine` example in [langbot-plugin-demo](https://github.com/langbot-app/langbot-plugin-demo).
|
||||
The following code will be generated by default (`components/knowledge_engine/<engine_name>.py`). You need to implement the three core methods: `ingest`, `retrieve`, and `delete_document`. See the official [LangRAG knowledge engine](https://github.com/langbot-app/LangBot/tree/master/plugins/KnowledgeEngine/LangRAG) for a complete implementation.
|
||||
|
||||
```python
|
||||
from langbot_plugin.api.definition.components.knowledge_engine.engine import KnowledgeEngine, KnowledgeEngineCapability
|
||||
|
||||
@@ -118,7 +118,7 @@ For configuration item format reference, see: [Plugin Manifest Configuration For
|
||||
|
||||
## Plugin Handler
|
||||
|
||||
The following code will be generated by default (`components/knowledge_retriever/<retriever_name>.py`). You need to implement the knowledge retrieval logic in the `retrieve` method of the `FastGPT` class. Complete code can be found in [langbot-plugin-demo](https://github.com/langbot-app/langbot-plugin-demo).
|
||||
The following code will be generated by default (`components/knowledge_retriever/<retriever_name>.py`). You need to implement the knowledge retrieval logic in the `retrieve` method of the `FastGPT` class. Complete code can be found in [official plugins](https://github.com/langbot-app/LangBot/tree/master/plugins).
|
||||
|
||||
```python
|
||||
# Auto generated by LangBot Plugin SDK.
|
||||
|
||||
@@ -234,7 +234,7 @@ await langbot.api('/entries', { question: '...', answer: '...' }, 'POST');
|
||||
await langbot.api('/entries', { id: '...' }, 'DELETE');
|
||||
```
|
||||
|
||||
Full example code is available at [FAQManager plugin](https://github.com/langbot-app/langbot-plugin-demo/tree/main/FAQManager).
|
||||
Full example code is available at [FAQManager plugin](https://github.com/langbot-app/LangBot/tree/master/plugins/misc/FAQManager).
|
||||
|
||||
## One installation, many usages
|
||||
|
||||
|
||||
@@ -207,5 +207,5 @@ See [Certified plugins and shared runtime](/en/plugin/certified-plugins) for the
|
||||
- See the [`RunnerContext` API reference](/en/plugin/dev/apis/agent-run#runner).
|
||||
- See [LangBot API](/en/plugin/dev/apis/common) for models, tools, knowledge bases, and storage.
|
||||
- See [Platform API](/en/plugin/dev/apis/platform) for messaging and other platform operations.
|
||||
- Explore more examples in [RunnerDemo](https://github.com/langbot-app/langbot-plugin-demo/tree/main/Runner/RunnerDemo).
|
||||
- Explore more examples in [RunnerDemo](https://github.com/langbot-app/LangBot/tree/master/plugins/Runner/RunnerDemo).
|
||||
- To extend Pipeline steps such as preprocessing or completion of a model call, use [Event Listener](/en/plugin/dev/components/event-listener).
|
||||
|
||||
Reference in New Issue
Block a user