htm 0.0.15 → 0.0.18
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.
- checksums.yaml +4 -4
- data/.architecture/decisions/adrs/001-use-postgresql-timescaledb-storage.md +1 -1
- data/.architecture/decisions/adrs/011-database-side-embedding-generation-with-pgai.md +4 -4
- data/.architecture/decisions/adrs/012-llm-driven-ontology-topic-extraction.md +1 -1
- data/.envrc +12 -24
- data/.irbrc +7 -7
- data/.tbls.yml +2 -2
- data/CHANGELOG.md +138 -0
- data/README.md +97 -1592
- data/Rakefile +8 -3
- data/SETUP.md +12 -12
- data/bin/htm_mcp +27 -0
- data/db/seed_data/README.md +2 -2
- data/db/seeds.rb +2 -2
- data/docs/api/database.md +37 -37
- data/docs/api/htm.md +1 -1
- data/docs/api/yard/HTM/ActiveRecordConfig.md +2 -2
- data/docs/api/yard/HTM/Configuration.md +26 -15
- data/docs/api/yard/HTM/Database.md +7 -8
- data/docs/api/yard/HTM/JobAdapter.md +1 -1
- data/docs/api/yard/HTM/Railtie.md +2 -2
- data/docs/architecture/adrs/001-postgresql-timescaledb.md +1 -1
- data/docs/architecture/adrs/011-pgai-integration.md +4 -4
- data/docs/database_rake_tasks.md +5 -5
- data/docs/development/rake-tasks.md +11 -11
- data/docs/development/setup.md +21 -21
- data/docs/development/testing.md +1 -1
- data/docs/getting-started/installation.md +51 -31
- data/docs/getting-started/quick-start.md +12 -12
- data/docs/guides/getting-started.md +2 -2
- data/docs/guides/long-term-memory.md +1 -1
- data/docs/guides/mcp-server.md +464 -29
- data/docs/guides/robot-groups.md +8 -8
- data/docs/index.md +4 -4
- data/docs/multi_framework_support.md +10 -10
- data/docs/setup_local_database.md +19 -19
- data/docs/using_rake_tasks_in_your_app.md +14 -14
- data/examples/README.md +50 -6
- data/examples/basic_usage.rb +31 -21
- data/examples/cli_app/README.md +8 -8
- data/examples/cli_app/htm_cli.rb +5 -5
- data/examples/config_file_example/README.md +256 -0
- data/examples/config_file_example/config/htm.local.yml +34 -0
- data/examples/config_file_example/custom_config.yml +22 -0
- data/examples/config_file_example/show_config.rb +125 -0
- data/examples/custom_llm_configuration.rb +7 -7
- data/examples/example_app/Rakefile +2 -2
- data/examples/example_app/app.rb +8 -8
- data/examples/file_loader_usage.rb +9 -9
- data/examples/mcp_client.rb +7 -7
- data/examples/rails_app/.gitignore +2 -0
- data/examples/rails_app/Gemfile +22 -0
- data/examples/rails_app/Gemfile.lock +430 -0
- data/examples/rails_app/Procfile.dev +1 -0
- data/examples/rails_app/README.md +98 -0
- data/examples/rails_app/Rakefile +5 -0
- data/examples/rails_app/app/assets/stylesheets/application.css +83 -0
- data/examples/rails_app/app/assets/stylesheets/inter-font.css +6 -0
- data/examples/rails_app/app/controllers/application_controller.rb +19 -0
- data/examples/rails_app/app/controllers/dashboard_controller.rb +27 -0
- data/examples/rails_app/app/controllers/files_controller.rb +205 -0
- data/examples/rails_app/app/controllers/memories_controller.rb +102 -0
- data/examples/rails_app/app/controllers/robots_controller.rb +44 -0
- data/examples/rails_app/app/controllers/search_controller.rb +46 -0
- data/examples/rails_app/app/controllers/tags_controller.rb +30 -0
- data/examples/rails_app/app/javascript/application.js +4 -0
- data/examples/rails_app/app/javascript/controllers/application.js +9 -0
- data/examples/rails_app/app/javascript/controllers/index.js +6 -0
- data/examples/rails_app/app/views/dashboard/index.html.erb +123 -0
- data/examples/rails_app/app/views/files/index.html.erb +108 -0
- data/examples/rails_app/app/views/files/new.html.erb +321 -0
- data/examples/rails_app/app/views/files/show.html.erb +130 -0
- data/examples/rails_app/app/views/layouts/application.html.erb +124 -0
- data/examples/rails_app/app/views/memories/_memory_card.html.erb +51 -0
- data/examples/rails_app/app/views/memories/deleted.html.erb +62 -0
- data/examples/rails_app/app/views/memories/edit.html.erb +35 -0
- data/examples/rails_app/app/views/memories/index.html.erb +81 -0
- data/examples/rails_app/app/views/memories/new.html.erb +71 -0
- data/examples/rails_app/app/views/memories/show.html.erb +126 -0
- data/examples/rails_app/app/views/robots/index.html.erb +106 -0
- data/examples/rails_app/app/views/robots/new.html.erb +36 -0
- data/examples/rails_app/app/views/robots/show.html.erb +79 -0
- data/examples/rails_app/app/views/search/index.html.erb +184 -0
- data/examples/rails_app/app/views/shared/_navbar.html.erb +52 -0
- data/examples/rails_app/app/views/shared/_stat_card.html.erb +52 -0
- data/examples/rails_app/app/views/tags/index.html.erb +131 -0
- data/examples/rails_app/app/views/tags/show.html.erb +67 -0
- data/examples/rails_app/bin/dev +8 -0
- data/examples/rails_app/bin/rails +4 -0
- data/examples/rails_app/bin/rake +4 -0
- data/examples/rails_app/config/application.rb +33 -0
- data/examples/rails_app/config/boot.rb +5 -0
- data/examples/rails_app/config/database.yml +15 -0
- data/examples/rails_app/config/environment.rb +5 -0
- data/examples/rails_app/config/importmap.rb +7 -0
- data/examples/rails_app/config/routes.rb +38 -0
- data/examples/rails_app/config/tailwind.config.js +35 -0
- data/examples/rails_app/config.ru +5 -0
- data/examples/rails_app/log/.keep +0 -0
- data/examples/rails_app/tmp/local_secret.txt +1 -0
- data/examples/robot_groups/multi_process.rb +5 -5
- data/examples/robot_groups/robot_worker.rb +5 -5
- data/examples/robot_groups/same_process.rb +9 -9
- data/examples/sinatra_app/app.rb +1 -1
- data/examples/timeframe_demo.rb +1 -1
- data/lib/htm/active_record_config.rb +12 -28
- data/lib/htm/circuit_breaker.rb +0 -2
- data/lib/htm/config/defaults.yml +246 -0
- data/lib/htm/config.rb +888 -0
- data/lib/htm/database.rb +26 -33
- data/lib/htm/embedding_service.rb +0 -4
- data/lib/htm/integrations/sinatra.rb +3 -7
- data/lib/htm/job_adapter.rb +1 -15
- data/lib/htm/jobs/generate_embedding_job.rb +1 -7
- data/lib/htm/jobs/generate_propositions_job.rb +2 -12
- data/lib/htm/jobs/generate_tags_job.rb +1 -8
- data/lib/htm/loaders/defaults_loader.rb +143 -0
- data/lib/htm/loaders/xdg_config_loader.rb +116 -0
- data/lib/htm/mcp/cli.rb +475 -0
- data/lib/htm/mcp/group_tools.rb +476 -0
- data/lib/htm/mcp/resources.rb +89 -0
- data/lib/htm/mcp/server.rb +98 -0
- data/lib/htm/mcp/tools.rb +488 -0
- data/lib/htm/models/file_source.rb +5 -3
- data/lib/htm/proposition_service.rb +2 -12
- data/lib/htm/railtie.rb +3 -8
- data/lib/htm/tag_service.rb +1 -8
- data/lib/htm/tasks.rb +7 -4
- data/lib/htm/version.rb +1 -1
- data/lib/htm.rb +124 -5
- data/lib/tasks/htm.rake +6 -9
- metadata +81 -6
- data/bin/htm_mcp.rb +0 -621
- data/config/database.yml +0 -74
- data/lib/htm/configuration.rb +0 -766
data/docs/development/setup.md
CHANGED
|
@@ -187,11 +187,11 @@ Create or edit `~/.bashrc__tiger`:
|
|
|
187
187
|
```bash
|
|
188
188
|
# TimescaleDB Connection Configuration
|
|
189
189
|
export HTM_SERVICE_NAME="db-67977" # Your service name
|
|
190
|
-
export
|
|
191
|
-
export
|
|
192
|
-
export
|
|
193
|
-
export
|
|
194
|
-
export
|
|
190
|
+
export HTM_DATABASE__NAME="tsdb"
|
|
191
|
+
export HTM_DATABASE__USER="tsdbadmin"
|
|
192
|
+
export HTM_DATABASE__PASSWORD="your_password_here"
|
|
193
|
+
export HTM_DATABASE__PORT="37807" # Your port number
|
|
194
|
+
export HTM_DATABASE__URL="postgres://tsdbadmin:your_password@host:port/tsdb?sslmode=require"
|
|
195
195
|
```
|
|
196
196
|
|
|
197
197
|
Replace the placeholders with your actual connection details.
|
|
@@ -236,11 +236,11 @@ docker-compose up -d
|
|
|
236
236
|
# Configure environment variables
|
|
237
237
|
cat > ~/.bashrc__tiger <<'EOF'
|
|
238
238
|
export HTM_SERVICE_NAME="local-dev"
|
|
239
|
-
export
|
|
240
|
-
export
|
|
241
|
-
export
|
|
242
|
-
export
|
|
243
|
-
export
|
|
239
|
+
export HTM_DATABASE__NAME="tsdb"
|
|
240
|
+
export HTM_DATABASE__USER="tsdbadmin"
|
|
241
|
+
export HTM_DATABASE__PASSWORD="devpassword"
|
|
242
|
+
export HTM_DATABASE__PORT="5432"
|
|
243
|
+
export HTM_DATABASE__URL="postgres://tsdbadmin:devpassword@localhost:5432/tsdb?sslmode=disable"
|
|
244
244
|
EOF
|
|
245
245
|
|
|
246
246
|
source ~/.bashrc__tiger
|
|
@@ -364,7 +364,7 @@ You can also run the schema SQL directly:
|
|
|
364
364
|
|
|
365
365
|
```bash
|
|
366
366
|
# Using psql
|
|
367
|
-
psql $
|
|
367
|
+
psql $HTM_DATABASE__URL -f sql/schema.sql
|
|
368
368
|
|
|
369
369
|
# Or using Ruby
|
|
370
370
|
ruby -r ./lib/htm -e "HTM::Database.setup"
|
|
@@ -478,11 +478,11 @@ HTM uses environment variables for configuration. Here's a complete reference:
|
|
|
478
478
|
|
|
479
479
|
| Variable | Description | Example |
|
|
480
480
|
|----------|-------------|---------|
|
|
481
|
-
| `
|
|
482
|
-
| `
|
|
483
|
-
| `
|
|
484
|
-
| `
|
|
485
|
-
| `
|
|
481
|
+
| `HTM_DATABASE__URL` | Full PostgreSQL connection URL (preferred) | `postgres://user:pass@host:port/db?sslmode=require` |
|
|
482
|
+
| `HTM_DATABASE__NAME` | Database name | `tsdb` |
|
|
483
|
+
| `HTM_DATABASE__USER` | Database username | `tsdbadmin` |
|
|
484
|
+
| `HTM_DATABASE__PASSWORD` | Database password | `your_password` |
|
|
485
|
+
| `HTM_DATABASE__PORT` | Database port | `37807` |
|
|
486
486
|
| `HTM_SERVICE_NAME` | Service identifier (informational) | `db-67977` |
|
|
487
487
|
|
|
488
488
|
### Ollama Variables
|
|
@@ -515,10 +515,10 @@ source ~/.bashrc__tiger
|
|
|
515
515
|
|
|
516
516
|
```bash
|
|
517
517
|
# Verify environment variables are set
|
|
518
|
-
echo $
|
|
518
|
+
echo $HTM_DATABASE__URL
|
|
519
519
|
|
|
520
520
|
# Test connection directly with psql
|
|
521
|
-
psql $
|
|
521
|
+
psql $HTM_DATABASE__URL
|
|
522
522
|
|
|
523
523
|
# Check if service is running (TimescaleDB Cloud)
|
|
524
524
|
# Visit your Timescale Cloud dashboard
|
|
@@ -559,7 +559,7 @@ ollama pull gpt-oss
|
|
|
559
559
|
ruby enable_extensions.rb
|
|
560
560
|
|
|
561
561
|
# Check extension status
|
|
562
|
-
psql $
|
|
562
|
+
psql $HTM_DATABASE__URL -c "SELECT extname, extversion FROM pg_extension ORDER BY extname"
|
|
563
563
|
|
|
564
564
|
# For TimescaleDB Cloud, extensions should be pre-installed
|
|
565
565
|
# For local PostgreSQL, ensure you're using timescale/timescaledb-ha image
|
|
@@ -615,11 +615,11 @@ If you see SSL certificate errors:
|
|
|
615
615
|
|
|
616
616
|
```bash
|
|
617
617
|
# Ensure sslmode is set in connection URL
|
|
618
|
-
echo $
|
|
618
|
+
echo $HTM_DATABASE__URL | grep sslmode
|
|
619
619
|
# Should show: sslmode=require
|
|
620
620
|
|
|
621
621
|
# For local development without SSL
|
|
622
|
-
export
|
|
622
|
+
export HTM_DATABASE__URL="postgres://user:pass@localhost:5432/tsdb?sslmode=disable"
|
|
623
623
|
```
|
|
624
624
|
|
|
625
625
|
### Ruby Version Issues
|
data/docs/development/testing.md
CHANGED
|
@@ -244,7 +244,7 @@ Testing with real database:
|
|
|
244
244
|
```ruby
|
|
245
245
|
class DatabaseIntegrationTest < Minitest::Test
|
|
246
246
|
def setup
|
|
247
|
-
skip "Database not configured" unless ENV['
|
|
247
|
+
skip "Database not configured" unless ENV['HTM_DATABASE__URL']
|
|
248
248
|
|
|
249
249
|
@htm = HTM.new(
|
|
250
250
|
robot_name: "Test Robot",
|
|
@@ -103,24 +103,24 @@ CREATE EXTENSION IF NOT EXISTS pg_trgm;
|
|
|
103
103
|
|
|
104
104
|
```bash
|
|
105
105
|
# Add to ~/.bashrc or your preferred config file
|
|
106
|
-
export
|
|
107
|
-
export
|
|
108
|
-
export
|
|
109
|
-
export
|
|
110
|
-
export
|
|
111
|
-
export
|
|
106
|
+
export HTM_DATABASE__URL="postgres://username:password@localhost:5432/htm_db"
|
|
107
|
+
export HTM_DATABASE__NAME="htm_db"
|
|
108
|
+
export HTM_DATABASE__USER="your_username"
|
|
109
|
+
export HTM_DATABASE__PASSWORD="your_password"
|
|
110
|
+
export HTM_DATABASE__PORT="5432"
|
|
111
|
+
export HTM_DATABASE__HOST="localhost"
|
|
112
112
|
|
|
113
113
|
# Load the configuration
|
|
114
114
|
source ~/.bashrc
|
|
115
115
|
```
|
|
116
116
|
|
|
117
117
|
!!! tip "Environment Configuration"
|
|
118
|
-
HTM automatically uses the `
|
|
118
|
+
HTM automatically uses the `HTM_DATABASE__URL` environment variable if available. You can also pass database configuration directly to `HTM.new()`.
|
|
119
119
|
|
|
120
120
|
Set environment variable:
|
|
121
121
|
|
|
122
122
|
```bash
|
|
123
|
-
export
|
|
123
|
+
export HTM_DATABASE__URL="postgres://localhost/htm_db"
|
|
124
124
|
```
|
|
125
125
|
|
|
126
126
|
## Step 3: Enable PostgreSQL Extensions
|
|
@@ -139,7 +139,7 @@ Test your database connection and verify extensions:
|
|
|
139
139
|
cd /path/to/your/project
|
|
140
140
|
ruby -e "
|
|
141
141
|
require 'pg'
|
|
142
|
-
conn = PG.connect(ENV['
|
|
142
|
+
conn = PG.connect(ENV['HTM_DATABASE__URL'])
|
|
143
143
|
result = conn.exec('SELECT extname, extversion FROM pg_extension ORDER BY extname')
|
|
144
144
|
result.each { |row| puts \"✓ #{row['extname']}: Version #{row['extversion']}\" }
|
|
145
145
|
conn.close
|
|
@@ -232,7 +232,17 @@ export OLLAMA_URL="http://custom-host:11434"
|
|
|
232
232
|
|
|
233
233
|
Run the database setup to create HTM's tables and schema:
|
|
234
234
|
|
|
235
|
-
### Option A: Using
|
|
235
|
+
### Option A: Using htm_mcp CLI (Recommended)
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
# Initialize the database schema
|
|
239
|
+
htm_mcp setup
|
|
240
|
+
|
|
241
|
+
# Verify the setup
|
|
242
|
+
htm_mcp verify
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
### Option B: Using Ruby
|
|
236
246
|
|
|
237
247
|
```ruby
|
|
238
248
|
require 'htm'
|
|
@@ -241,29 +251,39 @@ require 'htm'
|
|
|
241
251
|
HTM::Database.setup
|
|
242
252
|
```
|
|
243
253
|
|
|
244
|
-
### Option B: Using Command Line
|
|
245
|
-
|
|
246
|
-
```bash
|
|
247
|
-
ruby -r ./lib/htm -e "HTM::Database.setup"
|
|
248
|
-
```
|
|
249
|
-
|
|
250
254
|
### Option C: Using Rake Task (if available)
|
|
251
255
|
|
|
252
256
|
```bash
|
|
253
|
-
rake db:setup
|
|
257
|
+
rake htm:db:setup
|
|
254
258
|
```
|
|
255
259
|
|
|
256
260
|
This creates the following tables:
|
|
257
261
|
|
|
258
262
|
- **`nodes`**: Main memory storage with vector embeddings
|
|
259
|
-
- **`
|
|
260
|
-
- **`tags`**: Flexible categorization
|
|
263
|
+
- **`tags`**: Hierarchical categorization
|
|
261
264
|
- **`robots`**: Robot registry
|
|
262
|
-
- **`
|
|
265
|
+
- **`file_sources`**: Source file metadata for loaded documents
|
|
263
266
|
|
|
264
267
|
!!! success "Schema Created"
|
|
265
268
|
You'll see confirmation messages as each table and index is created.
|
|
266
269
|
|
|
270
|
+
### htm_mcp CLI Commands
|
|
271
|
+
|
|
272
|
+
The `htm_mcp` executable provides commands for database management:
|
|
273
|
+
|
|
274
|
+
| Command | Description |
|
|
275
|
+
|---------|-------------|
|
|
276
|
+
| `htm_mcp setup` | Initialize database schema |
|
|
277
|
+
| `htm_mcp verify` | Verify connection, extensions, and migrations |
|
|
278
|
+
| `htm_mcp stats` | Show memory statistics |
|
|
279
|
+
| `htm_mcp help` | Show all commands and environment variables |
|
|
280
|
+
| `htm_mcp` | Start the MCP server |
|
|
281
|
+
|
|
282
|
+
```bash
|
|
283
|
+
# Check statistics after setup
|
|
284
|
+
htm_mcp stats
|
|
285
|
+
```
|
|
286
|
+
|
|
267
287
|
## Step 6: Verify Installation
|
|
268
288
|
|
|
269
289
|
Create a test script to verify everything works:
|
|
@@ -332,11 +352,11 @@ HTM uses the following environment variables:
|
|
|
332
352
|
|
|
333
353
|
| Variable | Description | Default | Required |
|
|
334
354
|
|----------|-------------|---------|----------|
|
|
335
|
-
| `
|
|
336
|
-
| `
|
|
337
|
-
| `
|
|
338
|
-
| `
|
|
339
|
-
| `
|
|
355
|
+
| `HTM_DATABASE__URL` | PostgreSQL connection URL | - | Yes |
|
|
356
|
+
| `HTM_DATABASE__NAME` | Database name | `htm_db` | No |
|
|
357
|
+
| `HTM_DATABASE__USER` | Database user | `postgres` | No |
|
|
358
|
+
| `HTM_DATABASE__PASSWORD` | Database password | - | No |
|
|
359
|
+
| `HTM_DATABASE__PORT` | Database port | `5432` | No |
|
|
340
360
|
| `OLLAMA_URL` | Ollama API URL | `http://localhost:11434` | No |
|
|
341
361
|
|
|
342
362
|
### Example Configuration File
|
|
@@ -345,7 +365,7 @@ Create a configuration file for easy loading:
|
|
|
345
365
|
|
|
346
366
|
```bash
|
|
347
367
|
# ~/.bashrc__htm
|
|
348
|
-
export
|
|
368
|
+
export HTM_DATABASE__URL="postgres://user:pass@host:port/db?sslmode=require"
|
|
349
369
|
export OLLAMA_URL="http://localhost:11434"
|
|
350
370
|
```
|
|
351
371
|
|
|
@@ -365,11 +385,11 @@ source ~/.bashrc__htm
|
|
|
365
385
|
**Solutions**:
|
|
366
386
|
|
|
367
387
|
```bash
|
|
368
|
-
# 1. Verify
|
|
369
|
-
echo $
|
|
388
|
+
# 1. Verify HTM_DATABASE__URL is set
|
|
389
|
+
echo $HTM_DATABASE__URL
|
|
370
390
|
|
|
371
391
|
# 2. Test connection manually
|
|
372
|
-
psql $
|
|
392
|
+
psql $HTM_DATABASE__URL
|
|
373
393
|
|
|
374
394
|
# 3. Check if PostgreSQL is running (local installs)
|
|
375
395
|
pg_ctl status
|
|
@@ -413,7 +433,7 @@ make
|
|
|
413
433
|
sudo make install
|
|
414
434
|
|
|
415
435
|
# Enable in database
|
|
416
|
-
psql $
|
|
436
|
+
psql $HTM_DATABASE__URL -c "CREATE EXTENSION IF NOT EXISTS pgvector;"
|
|
417
437
|
```
|
|
418
438
|
|
|
419
439
|
### Ruby Version Issues
|
|
@@ -442,7 +462,7 @@ ruby --version
|
|
|
442
462
|
|
|
443
463
|
```bash
|
|
444
464
|
# Ensure your database user has necessary permissions
|
|
445
|
-
psql $
|
|
465
|
+
psql $HTM_DATABASE__URL -c "
|
|
446
466
|
GRANT ALL PRIVILEGES ON DATABASE your_db TO your_user;
|
|
447
467
|
GRANT ALL ON ALL TABLES IN SCHEMA public TO your_user;
|
|
448
468
|
"
|
|
@@ -125,10 +125,10 @@ Create an HTM instance for your robot:
|
|
|
125
125
|
```ruby
|
|
126
126
|
# Configure HTM globally (optional - uses Ollama by default)
|
|
127
127
|
HTM.configure do |config|
|
|
128
|
-
config.
|
|
129
|
-
config.
|
|
130
|
-
config.
|
|
131
|
-
config.
|
|
128
|
+
config.embedding.provider = :ollama
|
|
129
|
+
config.embedding.model = 'nomic-embed-text:latest'
|
|
130
|
+
config.tag.provider = :ollama
|
|
131
|
+
config.tag.model = 'gemma3:latest'
|
|
132
132
|
end
|
|
133
133
|
|
|
134
134
|
# Initialize HTM with a robot name
|
|
@@ -338,10 +338,10 @@ puts "=" * 60
|
|
|
338
338
|
|
|
339
339
|
# Step 1: Configure and initialize HTM
|
|
340
340
|
HTM.configure do |config|
|
|
341
|
-
config.
|
|
342
|
-
config.
|
|
343
|
-
config.
|
|
344
|
-
config.
|
|
341
|
+
config.embedding.provider = :ollama
|
|
342
|
+
config.embedding.model = 'nomic-embed-text:latest'
|
|
343
|
+
config.tag.provider = :ollama
|
|
344
|
+
config.tag.model = 'gemma3:latest'
|
|
345
345
|
end
|
|
346
346
|
|
|
347
347
|
htm = HTM.new(
|
|
@@ -522,8 +522,8 @@ htm = HTM.new(
|
|
|
522
522
|
|
|
523
523
|
# Try different embedding models via configure
|
|
524
524
|
HTM.configure do |config|
|
|
525
|
-
config.
|
|
526
|
-
config.
|
|
525
|
+
config.embedding.provider = :ollama
|
|
526
|
+
config.embedding.model = 'llama3:latest' # Use Llama3
|
|
527
527
|
end
|
|
528
528
|
|
|
529
529
|
# Try different recall strategies
|
|
@@ -606,10 +606,10 @@ curl http://localhost:11434/api/version
|
|
|
606
606
|
|
|
607
607
|
### Issue: "Database connection failed"
|
|
608
608
|
|
|
609
|
-
**Solution**: Verify your `
|
|
609
|
+
**Solution**: Verify your `HTM_DATABASE__URL` is set:
|
|
610
610
|
|
|
611
611
|
```bash
|
|
612
|
-
echo $
|
|
612
|
+
echo $HTM_DATABASE__URL
|
|
613
613
|
# Should show your connection string
|
|
614
614
|
```
|
|
615
615
|
|
|
@@ -55,10 +55,10 @@ HTM requires a TimescaleDB database. Set your database connection:
|
|
|
55
55
|
|
|
56
56
|
```bash
|
|
57
57
|
# Add to your .bashrc or .zshrc
|
|
58
|
-
export
|
|
58
|
+
export HTM_DATABASE__URL="postgresql://user:password@host:port/database"
|
|
59
59
|
|
|
60
60
|
# Or create a config file
|
|
61
|
-
echo "export
|
|
61
|
+
echo "export HTM_DATABASE__URL='your-connection-string'" > ~/.bashrc__tiger
|
|
62
62
|
source ~/.bashrc__tiger
|
|
63
63
|
```
|
|
64
64
|
|