Spaces:
Runtime error
Runtime error
Update rag.py
Browse files
rag.py
CHANGED
@@ -70,8 +70,8 @@ class Rag:
|
|
70 |
partial_variables={"min_words": min_words, "max_words": max_words})
|
71 |
|
72 |
self.qa = ConversationalRetrievalChain.from_llm(
|
73 |
-
llm=ChatOpenAI(model_name="gpt-3.5-turbo
|
74 |
-
temperature=1,
|
75 |
openai_api_key=os.environ['OPENAI_KEY'],
|
76 |
max_tokens=int(int(max_words) + (int(max_words) / 2))), #número máximo de tokens para a resposta
|
77 |
memory=self.memory,
|
|
|
70 |
partial_variables={"min_words": min_words, "max_words": max_words})
|
71 |
|
72 |
self.qa = ConversationalRetrievalChain.from_llm(
|
73 |
+
llm=ChatOpenAI(model_name="gpt-3.5-turbo",
|
74 |
+
temperature=0.1,
|
75 |
openai_api_key=os.environ['OPENAI_KEY'],
|
76 |
max_tokens=int(int(max_words) + (int(max_words) / 2))), #número máximo de tokens para a resposta
|
77 |
memory=self.memory,
|