-
Notifications
You must be signed in to change notification settings - Fork 168
Description
qna-quickstart-with-gpt-index/qna-quickstart-with-llama-index.ipynb
got error
TypeError Traceback (most recent call last)
Input In [3], in <cell line: 31>()
28 prompt_helper = PromptHelper(max_input_size=max_input_size, num_output=num_output, max_chunk_overlap=max_chunk_overlap, chunk_size_limit=chunk_size_limit)
30 # Create index
---> 31 index = GPTSimpleVectorIndex(documents, llm_predictor=llm_predictor, embed_model=embedding_llm, prompt_helper=prompt_helper)
32 index.save_to_disk("index.json")
File ~/.local/lib/python3.9/site-packages/llama_index/indices/vector_store/vector_indices.py:73, in GPTSimpleVectorIndex.init(self, nodes, index_struct, service_context, vector_store, **kwargs)
64 def init(
65 self,
66 nodes: Optional[Sequence[Node]] = None,
(...)
70 **kwargs: Any,
71 ) -> None:
72 """Init params."""
---> 73 super().init(
74 nodes=nodes,
75 index_struct=index_struct,
76 service_context=service_context,
77 vector_store=vector_store,
78 **kwargs,
79 )
File ~/.local/lib/python3.9/site-packages/llama_index/indices/vector_store/base.py:54, in GPTVectorStoreIndex.init(self, nodes, index_struct, service_context, vector_store, use_async, **kwargs)
51 self._vector_store = vector_store or SimpleVectorStore()
53 self._use_async = use_async
---> 54 super().init(
55 nodes=nodes,
56 index_struct=index_struct,
57 service_context=service_context,
58 **kwargs,
59 )
TypeError: init() got an unexpected keyword argument 'llm_predictor'