mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-06 17:03:04 +02:00
Update llm.py
This commit is contained in:
+4
-2
@@ -144,8 +144,10 @@ def llm_query(input, nodeID=0, location_name=None):
|
||||
# #ragQuery = langchain.generate_prompt(modelPrompt)
|
||||
|
||||
# Query the model with RAG context
|
||||
#result = ollamaClient.generate(model=llmModel, prompt=modelPrompt, context=ragContext)
|
||||
result = ollamaClient.generate(model=llmModel, prompt=modelPrompt)
|
||||
if ragContext:
|
||||
result = ollamaClient.generate(model=llmModel, prompt=modelPrompt, context=ragContext)
|
||||
else:
|
||||
result = ollamaClient.generate(model=llmModel, prompt=modelPrompt)
|
||||
else:
|
||||
# Query the model without RAG context
|
||||
result = ollamaClient.generate(model=llmModel, prompt=modelPrompt)
|
||||
|
||||
Reference in New Issue
Block a user