This commit is contained in:
zrguo
2025-03-04 12:25:07 +08:00
parent acb074d0f8
commit 6c8fa95214
10 changed files with 58 additions and 39 deletions

View File

@@ -102,7 +102,7 @@ async def initialize_rag():
# Example function demonstrating the new query_with_separate_keyword_extraction usage
async def run_example():
# Initialize RAG instance
rag = asyncio.run(initialize_rag())
rag = await initialize_rag()
book1 = open("./book_1.txt", encoding="utf-8")
book2 = open("./book_2.txt", encoding="utf-8")