rag/rag/init.py
2025-10-10 13:35:01 +08:00

16 lines
474 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from appPublic.registerfunction import RegisterFunction
from rag.ragapi import docs, get_kdbs, fusedsearch, add_user_messages, get_user_memories
def load_rag():
"""
初始化 ServerEnv绑定 MilvusConnection 的所有功能。
"""
rf = RegisterFunction()
rf.register('docs', docs)
rf.register('get_kdbs', get_kdbs)
rf.register('fusedsearch', fusedsearch)
rf.register('add_user_messages', add_user_messages)
rf.register('get_user_memories', get_user_memories)