@elizaos/plugin-knowledge 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -1
- package/dist/.vite/manifest.json +2 -2
- package/dist/assets/index-BRhhNXdt.js +140 -0
- package/dist/assets/index-Clk6Xgn1.css +1 -0
- package/dist/{chunk-HUTF5APY.js → chunk-BB6B27BS.js} +11 -1
- package/dist/{chunk-HUTF5APY.js.map → chunk-BB6B27BS.js.map} +1 -1
- package/dist/{docs-loader-2S6H7F4L.js → docs-loader-NAE6ASGY.js} +2 -2
- package/dist/index.d.ts +21 -1
- package/dist/index.html +2 -2
- package/dist/index.js +46 -87
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/index-BdT7VEOH.css +0 -1
- package/dist/assets/index-lAKoVTZd.js +0 -142
- /package/dist/{docs-loader-2S6H7F4L.js.map → docs-loader-NAE6ASGY.js.map} +0 -0
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@ This plugin provides Retrieval Augmented Generation (Knowledge) capabilities for
|
|
|
4
4
|
|
|
5
5
|
## Quick Setup
|
|
6
6
|
|
|
7
|
+
> **⚠️ Note**: `TEXT_PROVIDER` and `TEXT_MODEL` configuration are temporarily disabled. The plugin currently uses `runtime.useModel(TEXT_LARGE)` for text generation. Full provider configuration support will be added soon.
|
|
8
|
+
|
|
7
9
|
### Basic Setup (With plugin-openai)
|
|
8
10
|
|
|
9
11
|
If you already have plugin-openai configured, you don't need any additional environment variables! The Knowledge plugin will automatically use your OpenAI configuration.
|
|
@@ -22,11 +24,13 @@ If you already have plugin-openai configured, you don't need any additional envi
|
|
|
22
24
|
|
|
23
25
|
If you want enhanced Knowledge capabilities with contextual embeddings, add:
|
|
24
26
|
|
|
27
|
+
> **Note**: The TEXT_PROVIDER and TEXT_MODEL settings below are temporarily disabled. The plugin will use `runtime.useModel(TEXT_LARGE)` for now.
|
|
28
|
+
|
|
25
29
|
```env
|
|
26
30
|
# Enable contextual Knowledge
|
|
27
31
|
CTX_KNOWLEDGE_ENABLED=true
|
|
28
32
|
|
|
29
|
-
# Required text generation settings
|
|
33
|
+
# Required text generation settings (TEMPORARILY DISABLED)
|
|
30
34
|
TEXT_PROVIDER=openrouter # Choose your provider: openai, anthropic, openrouter, or google
|
|
31
35
|
TEXT_MODEL=anthropic/claude-3.5-sonnet # Model for your chosen provider
|
|
32
36
|
|
|
@@ -109,6 +113,31 @@ OPENROUTER_BASE_URL=https://your-openrouter-proxy.com/api/v1
|
|
|
109
113
|
GOOGLE_BASE_URL=https://your-google-proxy.com
|
|
110
114
|
```
|
|
111
115
|
|
|
116
|
+
### Knowledge Document Path
|
|
117
|
+
|
|
118
|
+
By default, the plugin looks for knowledge documents in a `docs` folder in your project root. You can customize this location using the `KNOWLEDGE_PATH` environment variable:
|
|
119
|
+
|
|
120
|
+
```env
|
|
121
|
+
# Custom path to your knowledge documents
|
|
122
|
+
KNOWLEDGE_PATH=/path/to/your/documents
|
|
123
|
+
|
|
124
|
+
# Examples:
|
|
125
|
+
# KNOWLEDGE_PATH=./my-docs # Relative path from project root
|
|
126
|
+
# KNOWLEDGE_PATH=/home/user/docs # Absolute path
|
|
127
|
+
# KNOWLEDGE_PATH=../shared/knowledge # Relative path to parent directory
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
**How it works:**
|
|
131
|
+
- If `KNOWLEDGE_PATH` is set, the plugin will use that directory for loading knowledge documents
|
|
132
|
+
- If `KNOWLEDGE_PATH` is not set, the plugin defaults to `./docs` (a `docs` folder in your project root)
|
|
133
|
+
- Both relative and absolute paths are supported
|
|
134
|
+
- If the specified path doesn't exist, the plugin will log a warning but continue to function
|
|
135
|
+
|
|
136
|
+
**Supported document formats:**
|
|
137
|
+
- PDF files (`.pdf`)
|
|
138
|
+
- Text files (`.txt`, `.md`)
|
|
139
|
+
- And other formats supported by the document processor
|
|
140
|
+
|
|
112
141
|
### Token Limits
|
|
113
142
|
|
|
114
143
|
```env
|
package/dist/.vite/manifest.json
CHANGED