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

Docs examples for custom indexes should mention registration #68

Open jacobtoppm opened 2 months ago

jacobtoppm commented 2 months ago

Currently, uses of .query or similar methods on custom indexes, created following the examples at https://github.com/wagtail/wagtail-vector-index/blob/main/docs/vector-indexes.md fail with a KeyError unless registered like https://github.com/wagtail/wagtail-vector-index/blob/main/tests/testapp/models.py#L40. We should document this and make sure the examples contain the decorator so they work out of the box.