Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi committed Feb 13, 2024
1 parent 677f222 commit 41ebd8d
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,8 @@ def search_documents(self, vector: List[float], limit: int) -> List[str]:
return docs


def metaclass_resolver(*classes):
metaclass = tuple(set(type(cls) for cls in classes))
metaclass = (
metaclass[0]
if len(metaclass) == 1
else type("_".join(mcls.__name__ for mcls in metaclass), metaclass, {})
) # class M_C
return metaclass("_".join(cls.__name__ for cls in classes), classes, {})


class EnhancedAstraDBLlamaIndexVectorStore(
metaclass_resolver(AstraDBVectorStore, EnhancedLlamaIndexVectorStore)
AstraDBVectorStore, EnhancedLlamaIndexVectorStore
):

def put_document(
Expand Down

0 comments on commit 41ebd8d

Please sign in to comment.