captain-awesome commited on
Commit
48e3505
·
verified ·
1 Parent(s): e1b701a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -15,7 +15,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
15
  import os
16
  import transformers
17
  import torch
18
- from langchain_retrieval import BaseRetrieverChain
19
  # from dotenv import load_dotenv
20
 
21
  # load_dotenv()
@@ -78,11 +78,7 @@ def get_context_retriever_chain(vector_store,llm):
78
  # stuff_documents_chain = create_stuff_documents_chain(llm,prompt)
79
 
80
  # return create_retrieval_chain(retriever_chain, stuff_documents_chain)
81
- def get_conversational_rag_chain(
82
- retriever_chain: Optional[langchain_retrieval.BaseRetrieverChain],
83
- llm: Callable[[str], str],
84
- chat_history: Optional[langchain_core.prompts.chat.ChatPromptValue] = None,
85
- ) -> langchain_retrieval.BaseRetrieverChain:
86
 
87
  if not retriever_chain:
88
  raise ValueError("`retriever_chain` cannot be None or an empty object.")
 
15
  import os
16
  import transformers
17
  import torch
18
+ # from langchain_retrieval import BaseRetrieverChain
19
  # from dotenv import load_dotenv
20
 
21
  # load_dotenv()
 
78
  # stuff_documents_chain = create_stuff_documents_chain(llm,prompt)
79
 
80
  # return create_retrieval_chain(retriever_chain, stuff_documents_chain)
81
+ def get_conversational_rag_chain(retriever_chain,llm):
 
 
 
 
82
 
83
  if not retriever_chain:
84
  raise ValueError("`retriever_chain` cannot be None or an empty object.")