AreesaAshfaq commited on
Commit
63dc173
·
verified ·
1 Parent(s): 5b253c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -22,12 +22,11 @@ else:
22
  st.write("Please enter your LangChain API key.")
23
 
24
  # Initialize LangChain client (hypothetical example)
25
- lc_client = Client(api_key=LANGCHAIN_API_KEY)
26
 
27
  #from langchain import SomeLangChainClass # Replace with the correct class
28
  #client = SomeLangChainClass(api_key=api_key_langchain)
29
- #
30
- lc = LangChain(api_key=api_key_langchain)
31
 
32
 
33
  # Prompt the user to enter their Groq API key
@@ -93,7 +92,7 @@ question = st.text_input("Enter your question:")
93
 
94
  if question:
95
  retriever = vectorstore.as_retriever()
96
- prompt = hub.pull("rlm/rag-prompt")
97
 
98
  def format_docs(docs):
99
  return "\n\n".join(doc.page_content for doc in docs)
 
22
  st.write("Please enter your LangChain API key.")
23
 
24
  # Initialize LangChain client (hypothetical example)
25
+ #lc_client = Client(api_key=LANGCHAIN_API_KEY)
26
 
27
  #from langchain import SomeLangChainClass # Replace with the correct class
28
  #client = SomeLangChainClass(api_key=api_key_langchain)
29
+ #lc = LangChain(api_key=api_key_langchain)
 
30
 
31
 
32
  # Prompt the user to enter their Groq API key
 
92
 
93
  if question:
94
  retriever = vectorstore.as_retriever()
95
+ prompt = hub.pull("rlm/rag-prompt", api_key=api_key_langchain)
96
 
97
  def format_docs(docs):
98
  return "\n\n".join(doc.page_content for doc in docs)