MuhammadMubashir commited on
Commit
c56570d
·
verified ·
1 Parent(s): dde4c73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
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(model="claude-2", temperature=0, Anthropic_API_Key=os.getenv("Anthropic_API_Key")
 
 
 
 
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,