diff --git a/src/paperless_ai/indexing.py b/src/paperless_ai/indexing.py index 8ac26dd62..20c790ff5 100644 --- a/src/paperless_ai/indexing.py +++ b/src/paperless_ai/indexing.py @@ -130,12 +130,8 @@ def build_document_node( return parser.get_nodes_from_documents([doc]) -def load_or_build_index(nodes=None): - """Return a VectorStoreIndex backed by the vector store. - - ``nodes`` is accepted for signature compatibility but unused; the store - is the source of truth. - """ +def load_or_build_index(): + """Return a VectorStoreIndex backed by the vector store.""" import llama_index.core.settings as llama_settings from llama_index.core import VectorStoreIndex