bstraehle commited on
Commit
d6511a8
·
1 Parent(s): a22fd97

Update rag.py

Browse files
Files changed (1) hide show
  1. rag.py +6 -1
rag.py CHANGED
@@ -101,4 +101,9 @@ def rag_chain(llm, prompt, db):
101
  return_source_documents = True,
102
  verbose = False)
103
  completion = rag_chain({"query": prompt})
104
- return completion, rag_chain
 
 
 
 
 
 
101
  return_source_documents = True,
102
  verbose = False)
103
  completion = rag_chain({"query": prompt})
104
+ return completion, rag_chain
105
+
106
+ def get_llm():
107
+ return ChatOpenAI(model_name = config["model_name"],
108
+ openai_api_key = openai_api_key,
109
+ temperature = config["temperature"])