We have this example for querying on a single document by constructing a vector DB on the fly. I have multiple PDFs on which I want to query, and I have already created a Weaviate vectorstore (here). So, how do I modify this to be able to query on my existing vector DB?
Here is my attempt, I'm getting stuck at extracting the sources. Perhaps the structure of the sources output are different in chroma DB and Weaviate, not sure. Any help is appreciated. This is the error I get:
File "C:\Users\username\Documets\app.py", line 122, in main
index = all_sources.index(source_name)
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'index'
We have this example for querying on a single document by constructing a vector DB on the fly. I have multiple PDFs on which I want to query, and I have already created a Weaviate vectorstore (here). So, how do I modify this to be able to query on my existing vector DB?
Here is my attempt, I'm getting stuck at extracting the sources. Perhaps the structure of the sources output are different in chroma DB and Weaviate, not sure. Any help is appreciated. This is the error I get:
Here is the output I get: