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
[Bug]: AttributeError: 'tuple' object has no attribute 'score' #13364
Comments
The error you're encountering is due to Your proposed solution to change A more appropriate solution would be to ensure that
|
My full solution here: def reciprocal_rank_fusion(
|
Bug Description
/usr/local/lib/python3.10/dist-packages/llama_index/packs/rag_fusion_query_pipeline/base.py in (x)
33 for nodes_with_scores in results:
34 for rank, node_with_score in enumerate(
---> 35 sorted(nodes_with_scores, key=lambda x: x.score or 0.0, reverse=True)
36 ):
37 text = node_with_score.node.get_content()
AttributeError: 'tuple' object has no attribute 'score'
Version
0.10.35
Steps to Reproduce
from llama_index.core.llama_pack import download_llama_pack
download and install dependencies
RAGFusionPipelinePack = download_llama_pack(
"RAGFusionPipelinePack", "./rag_fusion_pipeline_pack"
)
Relevant Logs/Tracbacks
The text was updated successfully, but these errors were encountered: