Spaces:
Running
Running
update app.py
Browse files
app.py
CHANGED
@@ -19,10 +19,10 @@ def format_docs(docs):
|
|
19 |
|
20 |
embeddings = OpenAIEmbeddings()
|
21 |
db = FAISS.load_local("faiss_index", embeddings, allow_dangerous_deserialization=True)
|
22 |
-
retriever = db.as_retriever(k=
|
23 |
|
24 |
|
25 |
-
llm = ChatOpenAI(model="gpt-
|
26 |
|
27 |
prompt = ChatPromptTemplate.from_messages([
|
28 |
('system',
|
|
|
19 |
|
20 |
embeddings = OpenAIEmbeddings()
|
21 |
db = FAISS.load_local("faiss_index", embeddings, allow_dangerous_deserialization=True)
|
22 |
+
retriever = db.as_retriever(k=5)
|
23 |
|
24 |
|
25 |
+
llm = ChatOpenAI(model="gpt-4o")
|
26 |
|
27 |
prompt = ChatPromptTemplate.from_messages([
|
28 |
('system',
|