Hi! I don't understand what am I doing wrong here:
from llama_index.embeddings.huggingface import HuggingFaceEmbedding
from llama_index.core import SimpleDirectoryReader, StorageContext, VectorStoreIndex
from llama_index.legacy.vector_stores import QdrantVectorStore
from llama_index.core import Settings
Settings.embed_model = HuggingFaceEmbedding(model_name="embeddings/DeepPavlov_rubert-base-cased")
documents = SimpleDirectoryReader("./data/new/").load_data()
client = qdrant_client.QdrantClient(
host="localhost",
port=6333
)
vector_store = QdrantVectorStore(client=client, collection_name="data")
storage_context = StorageContext.from_defaults(vector_store=vector_store)
index = VectorStoreIndex.from_documents(
documents=documents,
storage_context=storage_context
)
I'm getting:
File "/home/ali/AI/nexus/iuth/venv/lib/python3.10/site-packages/llama_index/legacy/vector_stores/qdrant.py", line 188, in _build_points
assert isinstance(node, BaseNode)
AssertionError
Might be some error with imports?