wagtail / wagtail-vector-index

Store Wagtail pages & Django models as embeddings in vector databases
https://wagtail-vector-index.readthedocs.io/en/latest/
MIT License
15 stars 10 forks source link

Draft: Feature: Signals to update vector index on page publish #30

Open Morsey187 opened 8 months ago

Morsey187 commented 8 months ago

Adds a new env WAGTAIL_VECTOR_INDEX_UPDATE_ON_PUBLISH to enable registering all pages with a VectorIndexedMixin to wagtail's page_published signal.

tomusher commented 8 months ago

Discussed this with Ben separately but copying some of those comments here for reference.

This implementation has raised a few potential challenging points we might need to address before we can finalise this. Right now, this does a full index rebuild on save, which as Ben identified can potentially be very slow.

Ideally, we would only update the current page when saving, but to do this we need to: