from llama_index import VectorStoreIndex from llama_index.schema import TextNode list_of_sentences = ["one", "two"] nodes = [TextNode(text=x) for x in linst_of_sentences] index = VectorStoreIndex(nodes=nodes) retriever = index.as_retriever(similarity_top_k=2) source_nodes = retriever.retrieve("query")