ryanrwatkins commited on
Commit
12d4d39
1 Parent(s): 66443af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -519,7 +519,7 @@ and has {vector_store._collection.count()} chunks.")
519
 
520
 
521
 
522
- def instantiate_LLM(LLM_provider,api_key,temperature=0.5,top_p=0.95,model_name=None):
523
  """Instantiate LLM in Langchain.
524
  Parameters:
525
  LLM_provider (str): the LLM provider; in ["OpenAI","Google","HuggingFace"]
@@ -713,7 +713,7 @@ chain = ConversationalRetrievalChain.from_llm(
713
  memory=create_memory("gemini-pro"),
714
  retriever = base_retriever_HF, #base_retriever_HF
715
  llm=instantiate_LLM(
716
- LLM_provider="Google",api_key=google_api_key,temperature=0.5,
717
  model_name="gemini-pro"),
718
  chain_type= "stuff",
719
  verbose= True,
 
519
 
520
 
521
 
522
+ def instantiate_LLM(LLM_provider,api_key,temperature=0.7,top_p=0.95,model_name=None):
523
  """Instantiate LLM in Langchain.
524
  Parameters:
525
  LLM_provider (str): the LLM provider; in ["OpenAI","Google","HuggingFace"]
 
713
  memory=create_memory("gemini-pro"),
714
  retriever = base_retriever_HF, #base_retriever_HF
715
  llm=instantiate_LLM(
716
+ LLM_provider="Google",api_key=google_api_key,temperature=0.7,
717
  model_name="gemini-pro"),
718
  chain_type= "stuff",
719
  verbose= True,