This commit is contained in:
2025-03-17 14:44:25 -03:00
parent dfa10fa698
commit e5ece37dc6

View File

@@ -1,4 +1,3 @@
import chromadb
from langchain_community.document_loaders import PyPDFLoader
from langchain_community.chat_models.oci_generative_ai import ChatOCIGenAI
from langchain_core.prompts import PromptTemplate
@@ -46,6 +45,8 @@ def chat():
)
retriever = vectorstore.as_retriever()
#### YOU CAN PERSIST YOUR VECTOR STORE HERE
template = """
If the query in question is not a comparison between SOA SUITE and OIC, consider only the documents relevant to the subject,
that is, if the question is about SOA SUITE, consider only the SOA SUITE documents. If the question is about OIC,