mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-04-13 22:02:56 +00:00
upgraded
This commit is contained in:
parent
174363c7ae
commit
e4473607b2
@ -476,8 +476,22 @@ class LollmsApplication(LoLLMsCom):
|
||||
if rag_server["type"]=="lightrag":
|
||||
try:
|
||||
self.ShowBlockingMessage("Installing Lightrag\nPlease wait...")
|
||||
# Define the path to the apps folder
|
||||
if not pm.is_installed("lightrag-hku"):
|
||||
pm.install("https://github.com/ParisNeo/LightRAG.git[api,tools]")
|
||||
apps_folder = self.lollms_paths.personal_user_infos_path / "apps"
|
||||
apps_folder.mkdir(parents=True, exist_ok=True) # Ensure the apps folder exists
|
||||
# Define the path to clone the repository
|
||||
clone_path = apps_folder / "LightRAG"
|
||||
|
||||
# Clone the repository if it doesn't already exist
|
||||
if not clone_path.exists():
|
||||
subprocess.run(["git", "clone", "https://github.com/ParisNeo/LightRAG.git", str(clone_path)])
|
||||
print(f"Repository cloned to: {clone_path}")
|
||||
else:
|
||||
print(f"Repository already exists at: {clone_path}")
|
||||
|
||||
# Install the package in editable mode with extras
|
||||
subprocess.run([sys.executable, "-m", "pip", "install", "-e", f"{str(clone_path)}[api,tools]"])
|
||||
subprocess.Popen(
|
||||
["lightrag-server", "--llm-binding", "lollms", "--embedding-binding", "lollms", "--input-dir", rag_server["input_path"], "--working-dir", rag_server["working_path"]],
|
||||
text=True,
|
||||
|
@ -73,7 +73,7 @@ class LollmsPaths:
|
||||
self.personal_certificates = self.personal_path / "certs"
|
||||
self.personal_outputs_path = self.personal_path / "outputs"
|
||||
self.personal_user_infos_path = self.personal_path / "user_infos"
|
||||
|
||||
self.personal_apps_path = self.personal_path / "apps"
|
||||
|
||||
self.personal_services_path = self.personal_path / "services"
|
||||
self.personal_stt_services_path = self.personal_services_path / "stt"
|
||||
@ -173,6 +173,7 @@ class LollmsPaths:
|
||||
("Skills Path", self.personal_skills_path),
|
||||
("Models Path", self.personal_models_path),
|
||||
("User Info Path", self.personal_user_infos_path),
|
||||
("User Info Path", self.personal_apps_path),
|
||||
("Custom Personalities", self.custom_personalities_path),
|
||||
("Custom Voices", self.custom_voices_path),
|
||||
("Custom function calls",self.custom_function_calls_path)
|
||||
@ -230,6 +231,7 @@ class LollmsPaths:
|
||||
"Bindings Zoo Path": self.bindings_zoo_path,
|
||||
"Personalities Zoo Path": self.personalities_zoo_path,
|
||||
"Personal user infos path": self.personal_user_infos_path,
|
||||
"apps path": self.personal_apps_path,
|
||||
"Personal trainers path": self.personal_trainers_path,
|
||||
"Personal gptqlora trainer path": self.gptqlora_path,
|
||||
|
||||
@ -260,6 +262,7 @@ class LollmsPaths:
|
||||
self.personal_outputs_path.mkdir(parents=True, exist_ok=True)
|
||||
self.personal_uploads_path.mkdir(parents=True, exist_ok=True)
|
||||
self.personal_user_infos_path.mkdir(parents=True, exist_ok=True)
|
||||
self.personal_apps_path.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
self.personal_services_path.mkdir(parents=True, exist_ok=True)
|
||||
self.personal_stt_services_path.mkdir(parents=True, exist_ok=True)
|
||||
|
@ -146,12 +146,13 @@ class LollmsContextDetails:
|
||||
# Append each field to the full context if it exists and is not suppressed
|
||||
append_context("conditionning")
|
||||
append_context("documentation", template.system_custom_header("documentation"))
|
||||
append_context("internet_search_results", template.system_custom_header("Internet search results"))
|
||||
append_context("user_description", template.system_custom_header("user_description"))
|
||||
append_context("positive_boost", template.system_custom_header("positive_boost"))
|
||||
append_context("negative_boost", template.system_custom_header("negative_boost"))
|
||||
append_context("current_language", template.system_custom_header("current_language"))
|
||||
append_context("fun_mode", template.system_custom_header("fun_mode"))
|
||||
append_context("think_first_mode", template.system_custom_header("think_first_mode"))
|
||||
append_context("fun_mode")
|
||||
append_context("think_first_mode")
|
||||
|
||||
append_context("extra")
|
||||
found_classic_function = False
|
||||
|
Loading…
x
Reference in New Issue
Block a user