Spaces:
Running
Running
talexm
commited on
Commit
•
ae1fcbd
1
Parent(s):
0fa01ec
cvvv
Browse files- app.py +1 -1
- rag_sec/document_search_system.py +2 -2
app.py
CHANGED
@@ -53,7 +53,7 @@ if uploaded_files:
|
|
53 |
neo4j_handler = Neo4jHandler(
|
54 |
uri="neo4j+s://0ca71b10.databases.neo4j.io",
|
55 |
user="neo4j",
|
56 |
-
password="
|
57 |
)
|
58 |
|
59 |
for uploaded_file in uploaded_files:
|
|
|
53 |
neo4j_handler = Neo4jHandler(
|
54 |
uri="neo4j+s://0ca71b10.databases.neo4j.io",
|
55 |
user="neo4j",
|
56 |
+
password="XXX"
|
57 |
)
|
58 |
|
59 |
for uploaded_file in uploaded_files:
|
rag_sec/document_search_system.py
CHANGED
@@ -181,12 +181,12 @@ if __name__ == "__main__":
|
|
181 |
system = DocumentSearchSystem(
|
182 |
neo4j_uri="neo4j+s://0ca71b10.databases.neo4j.io",
|
183 |
neo4j_user="neo4j",
|
184 |
-
neo4j_password="
|
185 |
)
|
186 |
|
187 |
system.retriever.load_documents(data_dir)
|
188 |
# Perform a normal query
|
189 |
-
normal_query = "
|
190 |
print("\nNormal Query Result:")
|
191 |
result = system.process_query(normal_query)
|
192 |
print("Status:", result["status"])
|
|
|
181 |
system = DocumentSearchSystem(
|
182 |
neo4j_uri="neo4j+s://0ca71b10.databases.neo4j.io",
|
183 |
neo4j_user="neo4j",
|
184 |
+
neo4j_password="HwGDOxyGS1-79nLeTiX5bx5ohoFSpvHCmTv8IRgt-lY"
|
185 |
)
|
186 |
|
187 |
system.retriever.load_documents(data_dir)
|
188 |
# Perform a normal query
|
189 |
+
normal_query = "Good comedy ."
|
190 |
print("\nNormal Query Result:")
|
191 |
result = system.process_query(normal_query)
|
192 |
print("Status:", result["status"])
|