@elizaos/plugin-knowledge 1.0.0-beta.78 → 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 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
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "index.html": {
3
- "file": "assets/index-D30O9PiT.js",
3
+ "file": "assets/index-BRhhNXdt.js",
4
4
  "name": "index",
5
5
  "src": "index.html",
6
6
  "isEntry": true,
7
7
  "css": [
8
- "assets/index-BdT7VEOH.css"
8
+ "assets/index-Clk6Xgn1.css"
9
9
  ]
10
10
  }
11
11
  }