feat: 🔗 Tidy

This commit is contained in:
2026-01-28 12:36:47 +00:00
parent d5f8d72e46
commit 8ca23187e3
4 changed files with 41 additions and 15 deletions
+9 -1
View File
@@ -1,11 +1,19 @@
import sys
import dspy
from experts.dnd_agent import DnDRAG
from config_loader import load_config
CFG = load_config()
RETRIEVE_MODEL = CFG["models"]["retrieval"]
API_BASE = CFG["api"]["base_url"]
API_VERSION = CFG["api"]["api_version"]
def main():
# 1. Setup the LLM
print("🚀 Initializing Qwen-8B via LM Studio...")
lm = dspy.LM("lm_studio/qwen/qwen3-8b", api_base="http://192.168.0.49:1234/v1/")
lm = dspy.LM(RETRIEVE_MODEL, api_base=API_BASE+API_VERSION)
dspy.configure(lm=lm)
# 2. Load the RAG System (only happens once!)