VectorStoreIndex
using an OpenSearchVectorStore
vector_store
?insert_nodes
perform the inserts sequentially? My use-case is that I would like to insert multiple documents (potentially thousands) to an AWS OpenSearch instance as a nightly job that runs within a Lambda.bulk
insert capabilities of opensearch
being used anywherebulk
functionality, but it would require me to generate embeddings first?Document
objects using download_loader("PDFReader")
and using index.insert
to insert each Document
. How can I generate the node
objects to then use insert_nodes
?from llama_index.node_parser import SimpleNodeParser node_parser = SimpleNodeParser.from_defaults() nodes = node_parser.get_nodes_from_documents(documents)
.add
function is called which invokes the bulk insert: https://github.com/run-llama/llama_index/blob/main/llama_index/indices/vector_store/base.py#L187max_chunk_bytes
kwarg be passed along for the bulk insert call?add()
goes here: https://github.com/run-llama/llama_index/blob/476d065c3e257ce1b814c0c98945427b5fefa263/llama_index/vector_stores/opensearch.py#L363