schema.py
(specifically DEFAULT_TEXT_NODE_TMPL
)? The template is used by the get_content
method on the TextNode
.document = Document( text="This is a super-customized document", metadata={ "file_name": "super_secret_document.txt", "category": "finance", "author": "LlamaIndex", }, excluded_llm_metadata_keys=["file_name"], metadata_seperator="::", metadata_template="{key}=>{value}", text_template="Metadata: {metadata_str}\n-----\nContent: {content}", )
SimpleDirectoryReader
?node = TextNode( text="blah blah", ... )
VectorStoreIndex().build_index_from_nodes(nodes)
returns an IndexDict
type object but I really need the VectorStoreIndex
. Should I just be passing nodes
to .from_documents(nodes)
instead?.from_documents
expects the list items to have .get_doc_id