VietCat commited on
Commit
8f6f1f8
·
1 Parent(s): 97f67d5

fix cache

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. rag_core/retriever.py +2 -2
Dockerfile CHANGED
@@ -14,7 +14,7 @@ RUN apt-get update && apt-get install -y \
14
  # ✅ Tạo thư mục FAISS index và gán quyền đầy đủ
15
  RUN mkdir -p faiss_index && chmod -R 777 faiss_index
16
  # Tạo thư mục FAISS index cache
17
- RUN mkdir -p /data
18
 
19
  # Cài đặt dependencies
20
  RUN pip install --upgrade pip
 
14
  # ✅ Tạo thư mục FAISS index và gán quyền đầy đủ
15
  RUN mkdir -p faiss_index && chmod -R 777 faiss_index
16
  # Tạo thư mục FAISS index cache
17
+ RUN mkdir -p /data && chmod -R 777 /data
18
 
19
  # Cài đặt dependencies
20
  RUN pip install --upgrade pip
rag_core/retriever.py CHANGED
@@ -6,8 +6,8 @@ import logging
6
  from rag_core.utils import log_timed
7
 
8
  # ✅ Sử dụng thư mục tương đối, tránh bị hiểu nhầm sang /data (root)
9
- INDEX_PATH = "./data/index.faiss"
10
- META_PATH = "./data/meta.pkl"
11
 
12
  class Retriever:
13
  def __init__(self):
 
6
  from rag_core.utils import log_timed
7
 
8
  # ✅ Sử dụng thư mục tương đối, tránh bị hiểu nhầm sang /data (root)
9
+ INDEX_PATH = "faiss_index/index.faiss"
10
+ META_PATH = "faiss_index/meta.pkl"
11
 
12
  class Retriever:
13
  def __init__(self):