Hello, I'm trying to move to the latest version of LlamaIndex and hit this error when querying the Qdrant index. This is my code:
llm_predictor = LLMPredictor(llm=ChatOpenAI(temperature=0, model_name=(model_name),
openai_api_key=openai_key))
service_context = ServiceContext.from_defaults(llm_predictor=llm_predictor, chunk_size_limit=1024)
vector_store = QdrantVectorStore(client=get_qrant_client(), collection_name=collection_name)
storage_context = StorageContext.from_defaults(vector_store=vector_store)
index = VectorStoreIndex.from_vector_store(vector_store, service_context)
query_engine = index.as_query_engine()
response = query_engine.query(query_text)
The error is "site-packages\llama_index\schema.py", line 21, in _validate_is_flat_dict
raise ValueError("Value must be one of (str, int, float)")
ValueError: Value must be one of (str, int, float)"
Why is that and how to fix it? Thanks!