|
|
@ -108,11 +108,11 @@ async def main():
|
|
|
|
# 调用LightRAG的代码,包括:1、创建索引,2、查询知识库,不应该放在这个模块中完成,这里只需要完成到文本解析完成即可。
|
|
|
|
# 调用LightRAG的代码,包括:1、创建索引,2、查询知识库,不应该放在这个模块中完成,这里只需要完成到文本解析完成即可。
|
|
|
|
# Query the processed content
|
|
|
|
# Query the processed content
|
|
|
|
# Pure text query - for basic knowledge base search
|
|
|
|
# Pure text query - for basic knowledge base search
|
|
|
|
text_result = await rag.aquery(
|
|
|
|
# text_result = await rag.aquery(
|
|
|
|
"这个文档是做什么用的?",
|
|
|
|
# "这个文档是做什么用的?",
|
|
|
|
mode="hybrid"
|
|
|
|
# mode="hybrid"
|
|
|
|
)
|
|
|
|
# )
|
|
|
|
print("Text query result:", text_result)
|
|
|
|
# print("Text query result:", text_result)
|
|
|
|
|
|
|
|
|
|
|
|
# # Multimodal query with specific multimodal content
|
|
|
|
# # Multimodal query with specific multimodal content
|
|
|
|
# multimodal_result = await rag.aquery_with_multimodal(
|
|
|
|
# multimodal_result = await rag.aquery_with_multimodal(
|