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:
@@ -85,13 +85,6 @@ Uses Oracle's embedding model to transform texts into numerical vectors, facilit
|
||||
|
||||

|
||||
|
||||
### Storage in ChromaDB
|
||||
|
||||
ChromaDB is a vector database used to store documents and enable efficient queries.
|
||||
|
||||
Here, processed PDFs are stored for future searches.
|
||||
|
||||

|
||||
|
||||
### Define the Prompt
|
||||
|
||||
|
||||
@@ -46,14 +46,6 @@ def chat():
|
||||
)
|
||||
retriever = vectorstore.as_retriever()
|
||||
|
||||
client = chromadb.PersistentClient(path="./Test")
|
||||
collection = client.get_or_create_collection(name="test")
|
||||
|
||||
collection.add(
|
||||
documents=caminhos_pdf,
|
||||
ids=ids
|
||||
)
|
||||
|
||||
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