ali121300 commited on
Commit
8f5360e
1 Parent(s): 4407e3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def get_vectorstore(texts):
28
  return db
29
  ############################################################################################
30
  def get_chain(db):
31
- llm=ChatOpenAI(base_url="https://bd4c-85-9-86-142.ngrok-free.app/v1", api_key="lm-studio",temperature=0.1,model="lmstudio-community/Meta-Llama-3-8B-Instruct-GGUF")
32
  #Build a chain
33
  qa_chain = ConversationalRetrievalChain.from_llm(
34
  llm,db.as_retriever (search_kwargs={'k':2}),return_source_documents=True)
 
28
  return db
29
  ############################################################################################
30
  def get_chain(db):
31
+ llm=ChatOpenAI(base_url="http://localhost:1234/v1", api_key="lm-studio",temperature=0.1,model="lmstudio-community/Meta-Llama-3-8B-Instruct-GGUF")
32
  #Build a chain
33
  qa_chain = ConversationalRetrievalChain.from_llm(
34
  llm,db.as_retriever (search_kwargs={'k':2}),return_source_documents=True)