Set Information Id and Summary
def set_info2index(
index,
info_id: str,
info: str
):
index.set_index_id(info_id)
index.summary = info
Convert Documents with Nodes, and Insert thoes
def set_documents2index(
index,
documents
):
nodes = index.service_context.node_parser.get_nodes_from_documents(
documents
)
index.insert_nodes(nodes)