Find answers from the community

Updated 12 months ago

Hi! I have an issue loading data from

Hi! I have an issue loading data from previously used Milvus.
I've load the data using:
Plain Text
documents = SimpleDirectoryReader("/home/eouser/lynx/example_data").load_data()
service_context = ServiceContext.from_defaults(llm=llm, embed_model="local:WhereIsAI/UAE-Large-V1")
vector_store = MilvusVectorStore(uri='http://<IP>:19530', dim=1024)
storage_context = StorageContext.from_defaults(vector_store=vector_store)
vector_index = VectorStoreIndex.from_documents(documents, service_context=service_context, storage_context=storage_context)

And it works just fine. Now i want to load previously stored data by replacing
Plain Text
vector_index = VectorStoreIndex.from_documents(documents, service_context=service_context, storage_context=storage_context)

with
Plain Text
vector_index = VectorStoreIndex.from_vector_store(vector_store=vector_store, service_context=service_context,
                                               storage_context=storage_context)

The issue it that I'm getting either:
Plain Text
AttributeError: 'Response' object has no attribute 'print_response_stream'

when trying to stream response or
Plain Text
Empty Response

when trying to print response. What would be the proper way to do so?
T
1 comment
How are you trying to access the response object?
Add a reply
Sign up and join the conversation on Discord