Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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://
|
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="https://0cc8-46-148-43-9.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)
|