Browse Source

更新prompt

xueyiming 1 day ago
parent
commit
ee6c5be394
1 changed files with 0 additions and 12 deletions
  1. 0 12
      applications/utils/chat/rag_chat_agent.py

+ 0 - 12
applications/utils/chat/rag_chat_agent.py

@@ -182,15 +182,3 @@ class RAGChatAgent:
             model="DeepSeek-V3", prompt=prompt, output_type="json"
         )
         return response
-
-
-# 你需要确保这个方法是异步执行的
-async def main():
-    rag_chat_agent = RAGChatAgent()
-    # 使用 await 调用异步方法
-    split_query = await rag_chat_agent.split_query('在小红书创作图文帖子,收集与“打工人精神状态”相关的网络流行梗和表情包素材的方法或手段是什么?需要使用什么App/软件/网站等工具来做到?')
-    print(split_query)
-
-if __name__ == '__main__':
-    # 使用 asyncio.run 来运行主方法
-    asyncio.run(main())