Skip to content

Can't instantiate abstract class MyVanna without an implementation for abstract method 'search_tables_metadata'Β #759

Open
@louishust

Description

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

When run the test with a user defined class Myvanna.

class MyVanna(ChromaDB_VectorStore, OpenAI_Chat):
    def __init__(self, config=None):
        ChromaDB_VectorStore.__init__(self, config=config)
        OpenAI_Chat.__init__(self, config=config)

this code comes error:

Can't instantiate abstract class MyVanna without an implementation for abstract method 'search_tables_metadata'

Expected behavior
No error

Error logs/Screenshots

Can't instantiate abstract class MyVanna without an implementation for abstract method 'search_tables_metadata'

Desktop (please complete the following information where):

  • OS: [e.g. macOS]
  • Version: [15.2]
  • Python: [3.12.2]
  • Vanna: [master branch, commit:ad014c44a4bf5bd15ffb576ffd85578ad17e1a2f]

Additional context
Add any other context about the problem here.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions