This commit is contained in:
2025-03-13 12:23:17 -03:00
parent 8721e1fc27
commit dfa10fa698
2 changed files with 0 additions and 15 deletions

View File

@@ -85,13 +85,6 @@ Uses Oracle's embedding model to transform texts into numerical vectors, facilit
![img_10.png](images/img_10.png)
### Storage in ChromaDB
ChromaDB is a vector database used to store documents and enable efficient queries.
Here, processed PDFs are stored for future searches.
![img_11.png](images/img_11.png)
### Define the Prompt

View File

@@ -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,