Learning question: I am using Django to store files and am loading the documents via the URL of the file vs the directory loader. I'm not sure the files are actually being indexed. Like this:
documents = [Document(source.file.url) for source in project.context.sources.all()] parser = SimpleNodeParser() nodes = parser.get_nodes_from_documents(documents) index = GPTSimpleVectorIndex(nodes, service_context=service_context)
When I submit my prompt I'm getting a response that more context is needed. Am I messing up the indexing of the files?