mongodb_client = pymongo.MongoClient(mongo_uri)
store = MongoDBAtlasVectorSearch(mongodb_client)
storage_context = StorageContext.from_defaults(vector_store=store)
user_docs = SimpleDirectoryReader(
input_files=[doc_path]
).load_data()
index = VectorStoreIndex.from_documents(
user_docs, storage_context=storage_context
)
# print(store._collection.count_documents({}))
response = index.as_query_engine().query(query)
print(f"query: {query}")
print(f"response: {response}")
Can someone spot why I'm getting 'Empty Response' with this?