Spaces:
Sleeping
Sleeping
Update app/policy_vector_db.py
Browse files- app/policy_vector_db.py +2 -2
app/policy_vector_db.py
CHANGED
|
@@ -75,8 +75,8 @@ class PolicyVectorDB:
|
|
| 75 |
|
| 76 |
def main():
|
| 77 |
"""Main function to build and verify the vector database."""
|
| 78 |
-
INPUT_CHUNKS_PATH = "processed_chunks.json"
|
| 79 |
-
PERSIST_DIRECTORY = "policy_vector_db"
|
| 80 |
|
| 81 |
if not os.path.exists(INPUT_CHUNKS_PATH):
|
| 82 |
print(f"FATAL ERROR: The input chunk file was not found at '{INPUT_CHUNKS_PATH}'")
|
|
|
|
| 75 |
|
| 76 |
def main():
|
| 77 |
"""Main function to build and verify the vector database."""
|
| 78 |
+
INPUT_CHUNKS_PATH = os.path.join(os.path.dirname(__file__), "../processed_chunks.json")
|
| 79 |
+
PERSIST_DIRECTORY = os.path.join(os.path.dirname(__file__), "../policy_vector_db")
|
| 80 |
|
| 81 |
if not os.path.exists(INPUT_CHUNKS_PATH):
|
| 82 |
print(f"FATAL ERROR: The input chunk file was not found at '{INPUT_CHUNKS_PATH}'")
|