Spaces:
Sleeping
Sleeping
better visibility into the startup process
Browse files108 unmodified lines109110111112113114115116117118119120121122123124125126127128129108 unmodified linesmodel_path = ensure_model()# Configure local LLM with LlamaCPPllm = LlamaCPP(model_path=model_path,temperature=0.7,max_new_tokens=256,context_window=2048)# Configure global settingsSettings.llm = llmSettings.embed_model = HuggingFaceEmbedding(model_name="sentence-transformers/all-MiniLM-L6-v2")# Create the index at startupsymptom_index = create_symptom_index()# --- System prompt ---SYSTEM_PROMPT = """108 unmodified lines109110111112113114115116117118119120121122123124125126127128129130131132133134135108 unmodified linesmodel_path = ensure_model()# Configure local LLM with LlamaCPPprint("\nInitializing LLM...")llm = LlamaCPP(model_path=model_path,temperature=0.7,max_new_tokens=256,context_window=2048)print("LLM initialized successfully")# Configure global settingsprint("\nConfiguring settings...")Settings.llm = llmSettings.embed_model = HuggingFaceEmbedding(model_name="sentence-transformers/all-MiniLM-L6-v2")print("Settings configured")# Create the index at startupprint("\nCreating symptom index...")symptom_index = create_symptom_index()print("Index created successfully")# --- System prompt ---SYSTEM_PROMPT = """
src/app.py+6