def _insert_document(os_store: OpensearchVectorStore, doc_id: str, metadata: dict):
        """Helper function to insert a document with custom metadata."""
        os_store.add(
            [
                TextNode(
                    id_=doc_id,
                    text="Lorem Ipsum",
                    metadata=metadata,
                    embedding=[0.1, 0.2, 0.3],
                )
            ]
        )
Helper function to insert a document with custom metadata.
llama-index-integrations/vector_stores/llama-index-vector-stores-opensearch/tests/test_opensearch_client.py