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

`EmbeddableFieldsDocumentConverter` currently depends on a `content_type` field on base model #73

Open tomusher opened 2 months ago

tomusher commented 2 months ago

The EmbeddableFieldsDocumentConverter currently depends on a content_type field being present on the provided base_model.

This works fine for Wagtail Pages but for other Django models, this will fail with a FieldError if a content_type field is not defined.

This converter should ideally work for any Django model out-of-the-box. Figure out a more appropriate way to filter by content type (if it is required) here.