mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-06-27 13:31:00 +02:00
Update llm.py
This commit is contained in:
+4
-2
@@ -6,10 +6,8 @@ from modules.log import *
|
||||
|
||||
# Ollama Client
|
||||
# https://github.com/ollama/ollama/blob/main/docs/faq.md#how-do-i-configure-ollama-server
|
||||
import ollama # pip install ollama
|
||||
from ollama import Client as OllamaClient
|
||||
from googlesearch import search # pip install googlesearch-python
|
||||
import chromadb # pip install chromadb
|
||||
|
||||
# LLM System Variables
|
||||
OllamaClient(host=ollamaHostName)
|
||||
@@ -22,6 +20,10 @@ llmChat_history = {}
|
||||
trap_list_llm = ("ask:", "askai")
|
||||
ragDEV = False
|
||||
|
||||
if ragDEV:
|
||||
import ollama # pip install ollama
|
||||
import chromadb # pip install chromadb
|
||||
|
||||
meshBotAI = """
|
||||
FROM {llmModel}
|
||||
SYSTEM
|
||||
|
||||
Reference in New Issue
Block a user