Upgrading from 1.3.0 to 1.3.1 vector extension issues

Open
#7,264 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

This issue has not been assessed yet.

Description

core
Bug Description

Running versions 1.2.0 to 1.3.0 with

  • HINDSIGHT_API_VECTOR_EXTENSION=pgvectorscale
  • HINDSIGHT_API_TEXT_SEARCH_EXTENSION=pgroonga

working flawlessly.

Starting 1.3.1, got the errors:

[hindsight] | | RuntimeError: Cannot change vector extension from hnsw to diskann: the following tables contain data: kb_passages(423 rows), kb_passage_vectors(5828 rows). To change vector extension, you must either:
[hindsight] | | 1. Re-embed all data: DELETE FROM public.memory_units; DELETE FROM public.learnings; DELETE FROM public.pinned_reflections; then restart
[hindsight] | | 2. Use the current vector extension (set HINDSIGHT_API_VECTOR_EXTENSION='pgvector')
[hindsight] | | Knowledge banks hold passages too: delete the knowledge banks and ingest their documents again after the switch, or keep the current extension.

System fails to start.

Steps to Reproduce

Using docker/podman, change the image from ghcr.io/vectorize-io/hindsight:1.3.0 to ghcr.io/vectorize-io/hindsight:1.3.1

Start the services.

Expected Behavior

Start up as usual.

Actual Behavior

The error shown, fails to start

Version

1.3.1

LLM Provider

OpenAI

Dominant language
Python
Stars
45.2k
Forks
5.9k
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from vectorize-io/hindsight

All issues in vectorize-io/hindsight

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.