VcRlAgent commited on
Commit
45a0974
·
1 Parent(s): 74b575c

Debug retriever and search

Browse files
Files changed (2) hide show
  1. .env.example +1 -1
  2. app/services/retriever.py +1 -1
.env.example CHANGED
@@ -17,7 +17,7 @@ EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2
17
  # Server Configuration
18
  HOST=0.0.0.0
19
  PORT=7860
20
- LOG_LEVEL=info
21
 
22
  # CORS
23
  ALLOWED_ORIGINS=http://localhost:5173,https://your-frontend.pages.dev
 
17
  # Server Configuration
18
  HOST=0.0.0.0
19
  PORT=7860
20
+ LOG_LEVEL=debug
21
 
22
  # CORS
23
  ALLOWED_ORIGINS=http://localhost:5173,https://your-frontend.pages.dev
app/services/retriever.py CHANGED
@@ -33,7 +33,7 @@ class RetrieverService:
33
  score_threshold=settings.SCORE_THRESHOLD
34
  )
35
 
36
- logger.debug(f"FAISS total vectors: {index.ntotal}")
37
  D, I = self.vector_store.index.search(np.array([query_embedding]).astype("float32"), k=3)
38
  logger.debug(f"Distances: {D}, Indices: {I}")
39
 
 
33
  score_threshold=settings.SCORE_THRESHOLD
34
  )
35
 
36
+ logger.debug(f"FAISS total vectors: {self.vector_store.index.ntotal}")
37
  D, I = self.vector_store.index.search(np.array([query_embedding]).astype("float32"), k=3)
38
  logger.debug(f"Distances: {D}, Indices: {I}")
39