Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting error #4

Open
Vikkas-goel opened this issue May 1, 2023 · 0 comments
Open

getting error #4

Vikkas-goel opened this issue May 1, 2023 · 0 comments

Comments

@Vikkas-goel
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant