Skip to content

Commit

Permalink
clean up error output for multiple indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
timothymeyers committed Feb 12, 2025
1 parent 9166c0e commit 7054c4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/graphrag_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def query_index(self, index_name: str | list[str], query_type: str, query: str):
st.error(
"Multiple index names are currently not supported via the UI. This functionality is being moved into the graphrag library and will be available in a coming release."
)
return None
return {"result": ""}

index_name = index_name if isinstance(index_name, str) else index_name[0]

Expand Down

0 comments on commit 7054c4f

Please sign in to comment.