update:knowledge load script

This commit is contained in:
aries-ckt
2023-05-19 21:17:39 +08:00
parent 03f7ed32e5
commit 336ba1e042
9 changed files with 49 additions and 53 deletions

View File

@@ -41,5 +41,4 @@ if __name__ == "__main__":
append_mode = args.append
kv = LocalKnowledgeInit()
vector_store = kv.knowledge_persist(file_path=DATASETS_DIR, vector_name=vector_name, append_mode=append_mode)
docs = vector_store.similarity_search("小明",1)
print("your knowledge embedding success...")