Spaces:
Running
Running
Oviya
commited on
Commit
·
76b0dda
1
Parent(s):
34efa08
fix
Browse files- ragg/ingest_all.py +2 -2
ragg/ingest_all.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
# ingest_all.py
|
| 2 |
import os
|
| 3 |
-
from
|
| 4 |
# from ragg.rag_backend import ingest_pdfs_from_folder, get_embeddings
|
| 5 |
from langchain_community.vectorstores import Chroma
|
| 6 |
|
|
@@ -38,7 +38,7 @@ def ingest_all_levels():
|
|
| 38 |
|
| 39 |
|
| 40 |
# ✅ Temporarily replace the function used in rag_backend
|
| 41 |
-
import
|
| 42 |
rag_backend.get_vectorstore = get_vectorstore_for_level
|
| 43 |
|
| 44 |
# ✅ Ingest PDFs for this level
|
|
|
|
| 1 |
# ingest_all.py
|
| 2 |
import os
|
| 3 |
+
from rag_backend import ingest_pdfs_from_folder, get_embeddings
|
| 4 |
# from ragg.rag_backend import ingest_pdfs_from_folder, get_embeddings
|
| 5 |
from langchain_community.vectorstores import Chroma
|
| 6 |
|
|
|
|
| 38 |
|
| 39 |
|
| 40 |
# ✅ Temporarily replace the function used in rag_backend
|
| 41 |
+
import rag_backend as rag_backend
|
| 42 |
rag_backend.get_vectorstore = get_vectorstore_for_level
|
| 43 |
|
| 44 |
# ✅ Ingest PDFs for this level
|