Skip to content

Building a (Very Simple) Vector Store - But getting error - Help Needed #14586

Answered by dosubot bot
mraguth asked this question in Q&A
Discussion options

You must be logged in to vote

To resolve the error "Can't instantiate abstract class VectorStore2 without an implementation for abstract method 'client'", you need to provide an implementation for the client method. Here's how you can do it:

from llama_index.vector_stores.qdrant.base import VectorStore2

class MyVectorStore(VectorStore2):
    @property
    def client(self):
        # Provide the implementation for the abstract method 'client'
        return None  # or return the actual client instance

# Now you can instantiate MyVectorStore
my_vector_store = MyVectorStore(
    collection_name="my_collection",
    url="http://localhost:6333",
    api_key="your_api_key",
    batch_size=100,
    parallel=True,
    max_…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mraguth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant