{"record":{"id":"21547e1042f4bda9","repo":"run-llama/llama_index","slug":"unexpected-kwargs-kwargs-21547e","errorCode":null,"errorMessage":"Unexpected kwargs: {kwargs}","messagePattern":"Unexpected kwargs: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"llama-index-core/llama_index/core/memory/vector_memory.py","lineNumber":118,"sourceCode":"        retriever_kwargs: Optional[Dict] = None,\n        **kwargs: Any,\n    ) -> \"VectorMemory\":\n        \"\"\"\n        Create vector memory.\n\n        Args:\n            vector_store (Optional[BasePydanticVectorStore]): vector store (note: delete_nodes must\n                be implemented. At time of writing (May 2024), Chroma, Qdrant and\n                SimpleVectorStore all support delete_nodes.\n            embed_model (Optional[EmbedType]): embedding model\n            index_kwargs (Optional[Dict]): kwargs for initializing the index\n            retriever_kwargs (Optional[Dict]): kwargs for initializing the retriever\n\n        \"\"\"\n        from llama_index.core.indices.vector_store import VectorStoreIndex\n\n        if kwargs:\n            raise ValueError(f\"Unexpected kwargs: {kwargs}\")\n\n        index_kwargs = index_kwargs or {}\n        retriever_kwargs = retriever_kwargs or {}\n\n        if vector_store is None:\n            # initialize a blank in-memory vector store\n            # NOTE: can't easily do that from `from_vector_store` at the moment.\n            index = VectorStoreIndex.from_documents(\n                [], embed_model=embed_model, **index_kwargs\n            )\n        else:\n            index = VectorStoreIndex.from_vector_store(\n                vector_store, embed_model=embed_model, **index_kwargs\n            )\n        return cls(vector_index=index, retriever_kwargs=retriever_kwargs)\n\n    def get(\n        self, input: Optional[str] = None, initial_token_count: int = 0, **kwargs: Any","sourceCodeStart":100,"sourceCodeEnd":136,"githubUrl":"https://github.com/run-llama/llama_index/blob/afd0fef371831f9bda13e5af7167cf4e981278ab/llama-index-core/llama_index/core/memory/vector_memory.py#L100-L136","documentation":"Error \"Unexpected kwargs: {kwargs}\" thrown in run-llama/llama_index.","triggerScenarios":"Thrown at llama-index-core/llama_index/core/memory/vector_memory.py:118 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the unexpected keyword arguments from the VectorMemory constructor call.","Check the VectorMemory signature and pass only supported parameters."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"afd0fef371831f9bda13e5af7167cf4e981278ab","analyzedAt":"2026-08-15T05:42:58.429Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}