Spaces:
Runtime error
Runtime error
Update processing.py
Browse files- processing.py +1 -1
processing.py
CHANGED
@@ -34,7 +34,7 @@ faiss_index.save_local("faiss_index")
|
|
34 |
# faiss_index = FAISS.load_local("faiss_index", embedding_model)
|
35 |
|
36 |
# Load the LLM using llm_loader.py
|
37 |
-
llm = load_model(openai_api_key) #
|
38 |
|
39 |
# Initialize the retrieval chain
|
40 |
qa_chain = RetrievalQA(llm=llm, retriever=faiss_index.as_retriever())
|
|
|
34 |
# faiss_index = FAISS.load_local("faiss_index", embedding_model)
|
35 |
|
36 |
# Load the LLM using llm_loader.py
|
37 |
+
llm = load_model(openai_api_key) # Load the model using your custom loader
|
38 |
|
39 |
# Initialize the retrieval chain
|
40 |
qa_chain = RetrievalQA(llm=llm, retriever=faiss_index.as_retriever())
|