Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ from langchain_core.prompts import ChatPromptTemplate, PromptTemplate
|
|
| 17 |
from langchain_core.runnables import RunnablePassthrough
|
| 18 |
from langchain_core.output_parsers import StrOutputParser
|
| 19 |
|
| 20 |
-
from manabUtils import retrieve_chunks
|
| 21 |
from technicalDocCompliance import compliance_tech, compliance_tech_pdf
|
| 22 |
from MyRules import manualRules
|
| 23 |
from manabCQgenetaion import compliance_import_OEM
|
|
@@ -72,7 +72,8 @@ PQC_rules="""
|
|
| 72 |
12. PQC should balance inclusion of capable vendors and exclusion of incapable ones."""
|
| 73 |
|
| 74 |
#===========================
|
| 75 |
-
retriever = retrieve_chunks(repo_id)
|
|
|
|
| 76 |
def create_qa_chain():
|
| 77 |
prompt = ChatPromptTemplate.from_template(
|
| 78 |
"Use context to answer: {context}\n\nQ: {input}"
|
|
|
|
| 17 |
from langchain_core.runnables import RunnablePassthrough
|
| 18 |
from langchain_core.output_parsers import StrOutputParser
|
| 19 |
|
| 20 |
+
from manabUtils import retrieve_chunks, retrieve_chunks_GPC
|
| 21 |
from technicalDocCompliance import compliance_tech, compliance_tech_pdf
|
| 22 |
from MyRules import manualRules
|
| 23 |
from manabCQgenetaion import compliance_import_OEM
|
|
|
|
| 72 |
12. PQC should balance inclusion of capable vendors and exclusion of incapable ones."""
|
| 73 |
|
| 74 |
#===========================
|
| 75 |
+
#retriever = retrieve_chunks(repo_id)
|
| 76 |
+
retriever=retrieve_chunks_GPC()
|
| 77 |
def create_qa_chain():
|
| 78 |
prompt = ChatPromptTemplate.from_template(
|
| 79 |
"Use context to answer: {context}\n\nQ: {input}"
|