Find answers from the community

Home
Members
mmp7700#007
m
mmp7700#007
Offline, last seen 3 months ago
Joined September 25, 2024
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?
14 comments
m
L