Skip to content

Commit

Permalink
Wire up the keyword table v1 to v2 migration (run-llama#1027)
Browse files Browse the repository at this point in the history
  • Loading branch information
markallanson authored Apr 3, 2023
1 parent cc831a5 commit 3c065e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gpt_index/tools/migrate_v1_to_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ def convert_to_v2_index_struct_and_docstore(
struct_v2, nodes_v2 = index_dict_to_v2(index_struct)
elif isinstance(index_struct, KG):
struct_v2, nodes_v2 = kg_to_v2(index_struct)
elif isinstance(index_struct, KeywordTable):
struct_v2, nodes_v2 = keyword_table_to_v2(index_struct)
else:
raise NotImplementedError(f"Cannot migrate {type(index_struct)} yet.")

Expand Down

0 comments on commit 3c065e3

Please sign in to comment.