Spaces:
Build error
Build error
FauziIsyrinApridal
commited on
Commit
·
e31157e
1
Parent(s):
0a78bc6
no deployment
Browse files
app.py
CHANGED
@@ -82,13 +82,8 @@ def reorder_embedding(docs):
|
|
82 |
@traceable(name="Create RAG Conversational Chain")
|
83 |
def create_conversational_chain(vector_store):
|
84 |
"""Create a Conversational Retrieval Chain for RAG."""
|
85 |
-
# llm = Replicate(
|
86 |
-
# model="fauzi3007/sahabat-ai-replicate:c3fc398f441379bd3fb6a4498950f9302aa75b7a95e76978a689ceb5c4b4bf09",
|
87 |
-
# model_kwargs={"temperature": 0.1, "top_p": 0.9, "max_new_tokens": 10000}
|
88 |
-
# )
|
89 |
-
|
90 |
llm = Replicate(
|
91 |
-
model="fauzi3007/
|
92 |
model_kwargs={"temperature": 0.1, "top_p": 0.9, "max_new_tokens": 10000}
|
93 |
)
|
94 |
memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True, output_key="answer")
|
|
|
82 |
@traceable(name="Create RAG Conversational Chain")
|
83 |
def create_conversational_chain(vector_store):
|
84 |
"""Create a Conversational Retrieval Chain for RAG."""
|
|
|
|
|
|
|
|
|
|
|
85 |
llm = Replicate(
|
86 |
+
model="fauzi3007/sahabat-ai-replicate:c3fc398f441379bd3fb6a4498950f9302aa75b7a95e76978a689ceb5c4b4bf09",
|
87 |
model_kwargs={"temperature": 0.1, "top_p": 0.9, "max_new_tokens": 10000}
|
88 |
)
|
89 |
memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True, output_key="answer")
|