Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,10 +33,10 @@ Question/Pregunta:
|
|
| 33 |
|
| 34 |
prompt_template = ChatPromptTemplate.from_template(PROMPT_TEMPLATE)
|
| 35 |
|
| 36 |
-
model = ChatOpenAI(api_key=OPENAI_API_KEY)
|
| 37 |
|
| 38 |
def get_response(query,history):
|
| 39 |
-
docs_chroma = db_chroma.similarity_search_with_score(query, k=
|
| 40 |
|
| 41 |
# generate an answer based on given user query and retrieved context information
|
| 42 |
context_text = "\n\n".join([doc.page_content for doc, _score in docs_chroma])
|
|
|
|
| 33 |
|
| 34 |
prompt_template = ChatPromptTemplate.from_template(PROMPT_TEMPLATE)
|
| 35 |
|
| 36 |
+
model = ChatOpenAI(api_key=OPENAI_API_KEY, model='gpt-3.5-turbo-0125')
|
| 37 |
|
| 38 |
def get_response(query,history):
|
| 39 |
+
docs_chroma = db_chroma.similarity_search_with_score(query, k=10)
|
| 40 |
|
| 41 |
# generate an answer based on given user query and retrieved context information
|
| 42 |
context_text = "\n\n".join([doc.page_content for doc, _score in docs_chroma])
|