The community member is using LanceDB and has created an index, but is encountering an error when trying to query the vector index using embeddings instead of strings. The code they provided is throwing an AttributeError: 'LanceDBVectorStore' object has no attribute 'vector_store' error on the line where they create the VectorIndexRetriever object.
Other community members have commented that the issue seems to be related to how self.db is being set, as it appears to be a VectorStoreIndex object rather than a LanceDBVectorStore object. However, there is no clear answer provided in the comments.
Hi Team, i am using lancedb, i have created a index and i want to query the vectorindex of lancedb using embedding not string, so i am using the following code, help me in resolving the error code ; ->? db = lancedb.connect(lancedb_path)
# create QueryBundle for your query and add embeddings embed_query = QueryBundle(query_str="unused", embedding = query)
# pass this object in your retriever to get nodes return retriever.retrieve(embed_query) ERROR --->> AttributeError: 'LanceDBVectorStore' object has no attribute 'vector_store' and this line is where it throwing an error retriever = VectorIndexRetriever(index=self.db, similarity_top_k=3)