Find answers from the community

Updated last year

Hi! I have an issue loading data from

At a glance

The community member is having an issue loading data from a previously used Milvus vector store. They were able to load the data using VectorStoreIndex.from_documents(), but when trying to load the previously stored data using VectorStoreIndex.from_vector_store(), they are encountering either an AttributeError: 'Response' object has no attribute 'print_response_stream' or an "Empty Response" error. The community member is asking for the proper way to load the previously stored data.

Another community member asked how the community member is trying to access the response object, but there is no explicitly marked answer.

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