feat: 🔗 Tidy
This commit is contained in:
+9
-1
@@ -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!)
|
||||
|
||||
Reference in New Issue
Block a user