Find answers from the community

Updated 2 months ago

Discover LlamaIndex: Bottoms-Up Developm...

has any gotten this error:

Plain Text
Traceback (most recent call last):
  File "/home/bi/ai/llama_docs_bot/3_eval_baseline/main.py", line 110, in <module>
    response = query_engine.query(query)
  File "/usr/local/lib/python3.10/dist-packages/llama_index/indices/query/base.py", line 23, in query
    response = self._query(str_or_query_bundle)
  File "/usr/local/lib/python3.10/dist-packages/llama_index/query_engine/sub_question_query_engine.py", line 126, in _query
    sub_questions = self._question_gen.generate(self._metadatas, query_bundle)
  File "/usr/local/lib/python3.10/dist-packages/llama_index/question_gen/openai_generator.py", line 77, in generate
    question_list = self._program(query_str=query_str, tools_str=tools_str)
  File "/usr/local/lib/python3.10/dist-packages/llama_index/program/openai_program.py", line 101, in __call__
    chat_response = self._llm.chat(
  File "/usr/local/lib/python3.10/dist-packages/llama_index/llms/base.py", line 134, in wrapped_llm_chat
    CBEventType.LLM, payload={EventPayload.MESSAGES: args[0]}
IndexError: tuple index out of range


While working with part 3 of the bottoms-up code along?

https://www.youtube.com/watch?v=LQy8iHOJE2A&t=209s
L
B
21 comments
the latest version of llama-index should have this fixed. What version are you running?
how do I check my llama index version?
sorry for pleb question
you can upgrade with pip install --upgrade llama-index

To see the current version, try pip show llama-index
Plain Text
pip show llama-index
Name: llama-index
Version: 0.7.19
Summary: Interface between LLMs and your data
Home-page: https://github.com/jerryjliu/llama_index
Author: Jerry Liu
Author-email: 
License: MIT
Location: /usr/local/lib/python3.10/dist-packages
Requires: beautifulsoup4, dataclasses-json, fsspec, langchain, nest-asyncio, numpy, openai, pandas, sqlalchemy, tenacity, tiktoken, typing-extensions, typing-inspect, urllib3
Required-by: 
oh RIP lol
yea, latest is 0.7.22 πŸ™‚
hopefully should fix that issue
that's so strange i installed it a day ago
we move fast!
i.e. I installed it after 7.22 was released
Will install again ser
I wonder if something about my environment is messing with the install
I'm on Ubuntu and honestly, I janked it up a bit lol
Thank you!
(My advice is make sure you use venv or conda to manage environments. Helps a lot when switching between projects)
This is on Ubuntu yeah?
@Logan M Updating fixed iet
LFG!!!!!
Many blessing my πŸ‘‘ ❀️
Add a reply
Sign up and join the conversation on Discord