[Bug]: <title>ValueError: No objects to concatenate
Do you need to file an issue?
- [X] I have searched the existing issues and this bug is not already filed.
- [X] My model is hosted on OpenAI or Azure. If not, please look at the "model providers" issue and don't file a new one here.
- [X] I believe this is a legitimate bug, not just a question. If this is a question, please use the Discussions area.
Describe the bug
When calling the search_engine = LocalSearch( llm=llm, context_builder=context_builder, token_encoder=token_encoder, llm_params=llm_params, context_builder_params=local_context_params, response_type="paragraph", # free form text describing the response type and format, can be anything, e.g. prioritized list, single paragraph, multiple paragraphs, multiple-page report )
For some (not all) complex questions.
result = await search_engine.asearch("Explain article 14 and list all services?") print(result.response)
We get error: ValueError: No objects to concatenate
File c:\Users\jorgeluna\AppData\Local\anaconda3\envs\taxesmexico\lib\site-packages\graphrag\query\structured_search\local_search\mixed_context.py:176, in LocalSearchMixedContext.build_context(self, query, conversation_history, include_entity_names, exclude_entity_names, conversation_history_max_turns, conversation_history_user_turns_only, max_tokens, text_unit_prop, community_prop, top_k_mapped_entities, top_k_relationships, include_community_rank, include_entity_rank, rank_description, include_relationship_weight, relationship_ranking_attribute, return_candidate_context, use_community_summary, min_community_rank, community_context_name, column_delimiter, **kwargs) 174 # build community context 175 community_tokens = max(int(max_tokens * community_prop), 0) --> 176 community_context, community_context_data = self._build_community_context( 177 selected_entities=selected_entities, 178 max_tokens=community_tokens, 179 use_community_summary=use_community_summary, ... --> 507 raise ValueError("No objects to concatenate") 509 if keys is None: 510 objs_list = list(com.not_none(*objs_list))
ValueError: No objects to concatenate
Steps to reproduce
No response
Expected Behavior
No response
GraphRAG Config Used
# Paste your config here
Logs and screenshots
No response
Additional Information
- GraphRAG Version:
- Operating System:
- Python Version:
- Related Issues: