QdrantReader pydantic error:
I am ingesting documents into qdrant using this code:
qdrant_client = GetQdrantClient().get_client()
logger.debug("creating reader")
reader = SimpleDirectoryReader(
input_files=[f"./temp/{user_id}/{file_name}"]
)
documents = reader.load_data()
qdrant_vector_store = QdrantVectorStore(
client=qdrant_client, collection_name=COLLECTION_NAME
)
pipeline = IngestionPipeline(
transformations=[AZURE_EMBEDDING], vector_store=qdrant_vector_store
)
for document in documents:
document.metadata["user_id"] = user_id
document.metadata["file_name"] = file_name
nodes = pipeline.run(documents=documents, num_workers=4)
return