docs: add the VectorDB step to the v1 to v2 migration guide - #747
Open
stra1g wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Upgrade an existing v1 deployment, follow this guide exactly, and every vector write fails at runtime with
UndefinedColumn(column "content_id" of relation "..." does not exist). Agno v2 added two required columns,content_hashandcontent_id, to VectorDB tables, but the guide never mentions the migration script that applies them. The "Migrating your Agno DB" section covers only Storage and Memory, and item 4.4 announces the two new columns without saying how to apply them.PgVector.create()does not help: it only creates tables that do not exist, and never alters one that does.This PR adds:
## Migrating your VectorDBsection after "Migrating your Agno DB", mirroring its shape: the script link, what to configure (the database URL and a config listing the schema and the tables to migrate), and notes on idempotency,create()behavior, and the error seen until the migration runs.The migration script (
libs/agno/migrations/v1_to_v2/migrate_vectordbs_to_v2.py) has existed since agno-agi/agno#5421 and is currently unreferenced by the guide.Addresses item 1 of agno-agi/agno#9343.
The remaining two items of that issue (the wrong paths in
libs/agno/migrations/README.md, and drift detection inPgVector) are a separate PR againstagno-agi/agno.Type of Change
Related Issues/PRs (if applicable)
Checklist