Spaces:
Sleeping
Sleeping
Update rag_agent.py
Browse files- rag_agent.py +2 -2
rag_agent.py
CHANGED
|
@@ -19,7 +19,7 @@ load_dotenv()
|
|
| 19 |
|
| 20 |
# Define paths
|
| 21 |
BNI_CSV_FILE = "bni_pearl_chapter.csv"
|
| 22 |
-
BNI_JSON_FILE = "bni_pearl_chapter.json"
|
| 23 |
|
| 24 |
# Define the path to the structured BNI dataset (JSON file)
|
| 25 |
BNI_DATA_PATH = "bni_pearl_chapter.json"
|
|
@@ -53,7 +53,7 @@ vector_db = LanceDb(
|
|
| 53 |
|
| 54 |
# 3️⃣ **Create Knowledge Base from JSON**
|
| 55 |
knowledge_base = JSONKnowledgeBase(
|
| 56 |
-
file_path=
|
| 57 |
vector_db=vector_db, # Use vector DB for faster search
|
| 58 |
)
|
| 59 |
|
|
|
|
| 19 |
|
| 20 |
# Define paths
|
| 21 |
BNI_CSV_FILE = "bni_pearl_chapter.csv"
|
| 22 |
+
# BNI_JSON_FILE = "bni_pearl_chapter.json"
|
| 23 |
|
| 24 |
# Define the path to the structured BNI dataset (JSON file)
|
| 25 |
BNI_DATA_PATH = "bni_pearl_chapter.json"
|
|
|
|
| 53 |
|
| 54 |
# 3️⃣ **Create Knowledge Base from JSON**
|
| 55 |
knowledge_base = JSONKnowledgeBase(
|
| 56 |
+
file_path=BNI_DATA_PATH,
|
| 57 |
vector_db=vector_db, # Use vector DB for faster search
|
| 58 |
)
|
| 59 |
|