Spaces:
Build error
Build error
Update rag.py
Browse files
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"])
|