Skip to content

v1.8.5: Fix LateInteractionEmbedder encode method

Choose a tag to compare

@knowusuboaky knowusuboaky released this 16 May 18:44
· 86 commits to main since this release

Bug Fix

Fixed AttributeError: 'LateInteractionEmbedder' object has no attribute 'encode'

Problem

_embed_late_interaction() was calling colbert.encode(texts) but LateInteractionEmbedder only has encode_documents() method.

Solution

Added check for encode_documents method in the embedding fallback chain.

Verified

  • encode_documents() works correctly with bundled ColBERT model
  • Integration test passes with ultimate mode

Install

pip install vectrixdb==1.8.5