mirror of
https://github.com/hoshikawa2/oci_graph_23ai.git
synced 2026-03-06 02:10:38 +00:00
First Commit
This commit is contained in:
@@ -266,6 +266,7 @@ def query_knowledge_graph(query_text):
|
||||
FETCH FIRST 20 ROWS ONLY
|
||||
"""
|
||||
|
||||
# Show the query formulated for Graph
|
||||
print(pgql)
|
||||
|
||||
try:
|
||||
@@ -377,11 +378,6 @@ def save_indexed_docs(docs):
|
||||
# Main Function
|
||||
# =========================
|
||||
def chat():
|
||||
# pdf_paths = [
|
||||
# './Manuals/SOASUITE.pdf',
|
||||
# './Manuals/using-integrations-oracle-integration-3.pdf'
|
||||
# ]
|
||||
|
||||
pdf_paths = ['AAAAAAAAAA.pdf'] # Your PDF Files as a Knowledge Base
|
||||
|
||||
already_indexed_docs = load_previously_indexed_docs()
|
||||
@@ -494,10 +490,6 @@ def chat():
|
||||
print(response)
|
||||
print("\n" + "=" * 80 + "\n")
|
||||
|
||||
# if __name__ == "__main__":
|
||||
# print("Iniciando")
|
||||
# print(query_knowledge_graph("gateway"))
|
||||
|
||||
# 🚀 Run
|
||||
if __name__ == "__main__":
|
||||
chat()
|
||||
Reference in New Issue
Block a user