retriever = index.as_retriever() nodes = retriever.retrieve("Who is Paul Graham?") # check on node for node in nodes: print(node)
retriever = index.as_retriever() nodes = retriever.retrieve("Who is Paul Graham?") # check on node text = "" for node in nodes: text = text + node.text # get metadata info as well metadata = node.extra_info response = llm.complete(text+"\n\nYour question")
service_context
for LLMReranker
.