TypeError: Ollama.init() got an unexpected keyword argument 'system_prompt'
index = VectorStoreIndex.from_documents(documents=docs,storage_context=storage_context, transformations=Settings.transformations, show_progress=True)
llama-index==0.10.59
as its breaking on llama-index==0.10.58
------------- Inference via Llama Index ------------- Traceback (most recent call last): File "/Users/pavanmantha/Pavans/PracticeExamples/DataScience_Practice/mlflow-tutorials/mlflow-llamaindex-playground/serve_model.py", line 34, in <module> index = mlflow.llama_index.load_model(model_uri) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/pavanmantha/Pavans/PracticeExamples/DataScience_Practice/mlflow-tutorials/mlflow-llamaindex-playground/venv/lib/python3.11/site-packages/mlflow/tracing/provider.py", line 237, in wrapper is_func_called, result = True, f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "/Users/pavanmantha/Pavans/PracticeExamples/DataScience_Practice/mlflow-tutorials/mlflow-llamaindex-playground/venv/lib/python3.11/site-packages/mlflow/llama_index/__init__.py", line 360, in load_model deserialize_settings(settings_path) File "/Users/pavanmantha/Pavans/PracticeExamples/DataScience_Practice/mlflow-tutorials/mlflow-llamaindex-playground/venv/lib/python3.11/site-packages/mlflow/llama_index/serialize_objects.py", line 171, in deserialize_settings settings_dict = _deserialize_dict_of_objects(path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/pavanmantha/Pavans/PracticeExamples/DataScience_Practice/mlflow-tutorials/mlflow-llamaindex-playground/venv/lib/python3.11/site-packages/mlflow/llama_index/serialize_objects.py", line 117, in _deserialize_dict_of_objects output.update({k: dict_to_object(v)}) ^^^^^^^^^^^^^^^^^ File "/Users/pavanmantha/Pavans/PracticeExamples/DataScience_Practice/mlflow-tutorials/mlflow-llamaindex-playground/venv/lib/python3.11/site-packages/mlflow/llama_index/serialize_objects.py", line 105, in dict_to_object return object_class.from_dict(kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/pavanmantha/Pavans/PracticeExamples/DataScience_Practice/mlflow-tutorials/mlflow-llamaindex-playground/venv/lib/python3.11/site-packages/llama_index/core/schema.py", line 125, in from_dict return cls(**data)
TypeError: OllamaEmbedding.__init__() got an unexpected keyword argument 'num_workers'
{ "_llm": { "object_constructor": "llama_index.llms.ollama.base.Ollama", "object_kwargs": { "system_prompt": null, "pydantic_program_mode": "default", "base_url": "http://localhost:11434", "model": "llama3.1", "temperature": 0.75, "context_window": 3900, "request_timeout": 30, "prompt_key": "prompt", "json_mode": false, "additional_kwargs": {}, "is_function_calling_model": true } }, "_embed_model": { "object_constructor": "llama_index.embeddings.ollama.base.OllamaEmbedding", "object_kwargs": { "model_name": "nomic-embed-text:latest", "embed_batch_size": 10, "num_workers": null, "base_url": "http://localhost:11434", "ollama_additional_kwargs": {} } }, "_transformations": [ { "object_constructor": "llama_index.core.node_parser.text.sentence.SentenceSplitter", "object_kwargs": { "include_metadata": true, "include_prev_next_rel": true, "chunk_size": 512, "chunk_overlap": 100, "separator": " ", "paragraph_separator": "\n\n\n", "secondary_chunking_regex": "[^,.;γοΌοΌ]+[,.;γοΌοΌ]?" } } ] }
pip install -U llama-index-embeddings-ollama
index = VectorStoreIndex.from_documents(documents=docs)