Find answers from the community

Home
Members
Hwijeen Ahn
H
Hwijeen Ahn
Offline, last seen 3 months ago
Joined September 25, 2024
H
Hwijeen Ahn
·

Mogno

Plain Text
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?
11 comments
H
R
L