Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -66,9 +66,14 @@ pc = Pinecone(api_key=PINECONE_API_KEY)
|
|
| 66 |
vector_store = Pinecone.from_existing_index(index_name=INDEX_NAME, embedding=embeddings)
|
| 67 |
|
| 68 |
# Load LLM & Memory
|
| 69 |
-
llm = ChatAnthropic(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)
|
| 71 |
|
|
|
|
| 72 |
# Build RAG Chain
|
| 73 |
qa_chain = ConversationalRetrievalChain.from_llm(
|
| 74 |
llm=llm,
|
|
|
|
| 66 |
vector_store = Pinecone.from_existing_index(index_name=INDEX_NAME, embedding=embeddings)
|
| 67 |
|
| 68 |
# Load LLM & Memory
|
| 69 |
+
llm = ChatAnthropic(
|
| 70 |
+
model="claude-2",
|
| 71 |
+
temperature=0,
|
| 72 |
+
Anthropic_API_Key=os.getenv("Anthropic_API_Key")
|
| 73 |
+
)
|
| 74 |
memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)
|
| 75 |
|
| 76 |
+
|
| 77 |
# Build RAG Chain
|
| 78 |
qa_chain = ConversationalRetrievalChain.from_llm(
|
| 79 |
llm=llm,
|