Last active
September 2, 2024 14:22
-
-
Save ninehills/ecf7107574c83016e8b68965bf9a51c4 to your computer and use it in GitHub Desktop.
ChatPDF-zh.ipynb
llama_index 0.5 have API broken!!!
so you can use pip install llama_index==0.4.40
.
I did not know what to do, would u please help me with these error?
TypeError: init() got an unexpected keyword argument 'llm_predictor'
抱歉,因为 llama_index 对API在小版本升级的时候 Break的不专业行为,已经弃用,建议使用Langchain。
YakShaver ***@***.***>于2023年4月27日 周四15:55写道:
***@***.**** commented on this gist.
------------------------------
请问QueryMode 'embedding'和'default'的差异是什么?感谢~~
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/ninehills/ecf7107574c83016e8b68965bf9a51c4#gistcomment-4550187>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACB7WWWMJDFSVDM2SITJP3XDIRAPBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFQKSXMYLMOVS2I5DSOVS2I3TBNVS3W5DIOJSWCZC7OBQXE5DJMNUXAYLOORPWCY3UNF3GS5DZVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVEYTEMJVG43TCOJWU52HE2LHM5SXFJTDOJSWC5DF>
.
You are receiving this email because you authored the thread.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
--
Sent from Android.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I did not know what to do, would u please help me with these error?
TypeError Traceback (most recent call last)
in <cell line: 1>()
----> 1 resp = chat("这本书讲了什么?")
2 display_response(resp)
7 frames
/usr/local/lib/python3.9/dist-packages/llama_index/indices/vector_store/base_query.py in init(self, index_struct, service_context, vector_store, similarity_top_k, **kwargs)
35 ) -> None:
36 """Initialize params."""
---> 37 super().init(
38 index_struct=index_struct, service_context=service_context, **kwargs
39 )
TypeError: init() got an unexpected keyword argument 'llm_predictor'