Migrate from v3.3.x
Upgrade a legacy LlamaIndex-based Hexabot RAG setup to the helper-based architecture in Hexabot 3.4.x.
Hexabot 3.4.x replaces the former LlamaIndex-coupled RAG implementation with a selected RAG helper. The migration path depends on whether you need lexical or semantic retrieval.
Before upgrading
Back up the Hexabot database and deployment configuration.
Export or record the current RAG provider, model, API endpoint, dimensions, and chunk settings.
Identify workflows that use the old lexical/embedding
modesetting.Record a small set of queries and expected results for post-upgrade validation.
For PostgreSQL, define a rollback window before deleting any legacy structures.
Option A: use built-in full-text retrieval
Choose this option when exact terms and keyword retrieval meet the use case.
Upgrade
@hexabot-ai/apiand the rest of the deployment to Hexabot 3.4.x.Run the normal Hexabot database migration process.
Open Administration → Settings → Global settings.
Keep Default RAG helper set to
fulltext-search.Remove any workflow logic that assumes a separate lexical mode.
Validate the expected queries.
No vector helper or embedding credential is required.
Option B: keep semantic vector retrieval on SQLite
Upgrade Hexabot to 3.4.x and run migrations.
Install
hexabot-helper-sqlite-vector:
Restart the API.
Create an embedding credential under Integrations → Credentials.
Configure Administration → Settings → Vector Search (SQLite).
Select the package's
sqlite-vectorruntime name as the default RAG helper.Allow reconciliation to complete and run the evaluation queries.
The 3.4 migration automatically removes obsolete LlamaIndex-era SQLite tables and triggers. Do not manually recreate or retain those triggers: they can write to removed tables and break Content updates.
Option C: keep semantic vector retrieval on PostgreSQL
Ensure PostgreSQL provides the
vectorextension. For Docker Compose, a pgvector-enabled image is the simplest option:
Upgrade Hexabot and run migrations.
Install
hexabot-helper-pgvector:
Restart the API.
Verify or create the embedding credential and review the migrated
pgvectorsettings.Select the package's
pgvectorruntime name as the default helper when it is not already selected.Monitor indexing and validate expected queries.
hexabot-helper-pgvector performs a one-time, idempotent migration of recognized legacy RAG settings when it starts. Review the resulting provider, model, credential, dimensions, and chunking values rather than assuming every former deployment used the same defaults.
Workflow changes
Remove mode-based assumptions
The old mode setting on retrieve_rag_content is retained only as a hidden compatibility field. It does not select lexical or embedding retrieval. The configured default helper always handles the query.
Replace logic such as:
with one of these approaches:
select one default helper for the deployment;
build a custom helper that implements hybrid or routed retrieval;
call a custom action/service directly when a workflow intentionally needs a separate retrieval backend.
Handle warning
Update workflows to inspect the warning output before treating empty hits as a legitimate “no match” result.
Recheck output assumptions
The stable output is hits, combined text, and optional warning. Do not rely on legacy LlamaIndex-specific response shapes.
Database cleanup and rollback
SQLite
The core migration removes the obsolete LlamaIndex-era tables and triggers automatically. No manual cleanup should be necessary.
PostgreSQL
Legacy LlamaIndex structures are intentionally retained for rollback. Keep them until:
the new helper is configured;
indexing has completed;
representative queries pass;
create/update/deactivate/delete behavior is validated;
the agreed rollback window has closed.
Remove legacy PostgreSQL structures only through a reviewed database change after those conditions are met.
Post-upgrade validation checklist
Last updated
Was this helpful?