mirror of
https://github.com/hoshikawa2/oci_genai_pdf.git
synced 2026-03-03 16:09:39 +00:00
adjust
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user