Find answers from the community

Updated 5 months ago

have you installed all the packages

have you installed all the packages listed?
r
A
17 comments
Yes I have installed everything using pip
which part of code throws this error?
can you pls share
Plain Text
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[13], line 2
      1 print("RETRIEVE NODES")
----> 2 new_nodes = get_retrieved_nodes(
      3     "Which date did Paul Gauguin arrive in Arles?",
      4     vector_top_k=3,
      5     with_reranker=True,
      6     model="zephyr",
      7 )
      8 print("DONE RETRIEVING NODES")

Cell In[7], line 19, in get_retrieved_nodes(query_str, vector_top_k, reranker_top_n, with_reranker, with_retrieval, model)
     15 retrieved_nodes = retriever.retrieve(query_bundle)
     17 if with_reranker:
     18     # configure reranker
---> 19     reranker = RankLLMRerank(
     20         top_n=reranker_top_n,
     21         model=model,
     22         with_retrieval=with_retrieval
     23     )
     24     retrieved_nodes = reranker.postprocess_nodes(
     25         retrieved_nodes, query_bundle
     26     )
     28 return retrieved_nodes

File ~/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/llama_index/postprocessor/rankllm_rerank/base.py:47, in RankLLMRerank.__init__(self, model, top_n, with_retrieval, step_size, gpt_model)
     42 except ValueError:
     43     raise ValueError(
     44         "Unsupported model type. Please use 'vicuna', 'zephyr', or 'gpt'."
     45     )
---> 47 from rank_llm.result import Result
     49 self._result = Result
     51 if model_enum == ModelType.VICUNA:

ModuleNotFoundError: No module named 'rank_llm.result'
try running pip install rank-llm-result
and the try running this again.
ERROR: Could not find a version that satisfies the requirement rank-llm-result (from versions: none)
ERROR: No matching distribution found for rank-llm-result

I'm not sure that module exists
yeah... i was guesing it. lol. nvm. lets try pip install rank_llm.result
just trying to get this installed
does it worked?
ERROR: Could not find a version that satisfies the requirement rank_llm.result (from versions: none)
ERROR: No matching distribution found for rank_llm.result
That does not exist either
I think the rank_llm.result module should just be included when I pip install rank-llm but for some reason it isnt?
Maybe that rank-llm package has been updated and that module has been moved somewhere else..? not sure
Yea I'm not able to find it anywhere within llama index documentation either
Add a reply
Sign up and join the conversation on Discord