Commit 7f6522ef authored by 赵威's avatar 赵威

update return type

parent 82abe988
......@@ -68,7 +68,7 @@ if __name__ == "__main__":
print("total index: " + str(index2.ntotal))
id = tmp_tuple[0]
emb = np.array(answer_embeddings[id]).astype("float32")
emb = np.array(embedding_dict[id]).astype("float32")
print(emb)
D, I = index2.search(emb)
res = I.tolist()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment