Find answers from the community

l
lostAF
Offline, last seen 6 months ago
Joined September 25, 2024
Hey all, I was wondering if the following example would work if I were to change the LLM to a hugging face one, or if its strictly openAI?

from llama_index import GPTSimpleVectorIndex, SimpleDirectoryReader

documents = SimpleDirectoryReader('data4').load_data()
index = GPTSimpleVectorIndex(documents)

response = index.query("Question here")
23 comments
l
L
h
B