@@ -225,6 +225,7 @@ def add_repo_chunks(self, chunks: List[Dict[str, Any]], document_id: str):
225225
226226 def query_pdf_collection (self , query : str , n_results : int = 3 ) -> List [Dict [str , Any ]]:
227227 """Query the PDF documents collection"""
228+ print ("🔍 [Oracle DB] Querying PDF Collection" )
228229 # Generate Embeddings
229230 embeddings = self .encoder .encode (query , batch_size = 32 , show_progress_bar = True )
230231 new_vector = array .array ("f" , embeddings )
@@ -250,10 +251,12 @@ def query_pdf_collection(self, query: str, n_results: int = 3) -> List[Dict[str,
250251 }
251252 formatted_results .append (result )
252253
254+ print (f"🔍 [Oracle DB] Retrieved { len (formatted_results )} chunks from PDF Collection" )
253255 return formatted_results
254256
255257 def query_web_collection (self , query : str , n_results : int = 3 ) -> List [Dict [str , Any ]]:
256258 """Query the web documents collection"""
259+ print ("🔍 [Oracle DB] Querying Web Collection" )
257260 # Generate Embeddings
258261 embeddings = self .encoder .encode (query , batch_size = 32 , show_progress_bar = True )
259262 new_vector = array .array ("f" , embeddings )
@@ -279,10 +282,12 @@ def query_web_collection(self, query: str, n_results: int = 3) -> List[Dict[str,
279282 }
280283 formatted_results .append (result )
281284
285+ print (f"🔍 [Oracle DB] Retrieved { len (formatted_results )} chunks from Web Collection" )
282286 return formatted_results
283287
284288 def query_general_collection (self , query : str , n_results : int = 3 ) -> List [Dict [str , Any ]]:
285289 """Query the general knowledge collection"""
290+ print ("🔍 [Oracle DB] Querying General Knowledge Collection" )
286291 # Generate Embeddings
287292 embeddings = self .encoder .encode (query , batch_size = 32 , show_progress_bar = True )
288293 new_vector = array .array ("f" , embeddings )
@@ -308,10 +313,12 @@ def query_general_collection(self, query: str, n_results: int = 3) -> List[Dict[
308313 }
309314 formatted_results .append (result )
310315
316+ print (f"🔍 [Oracle DB] Retrieved { len (formatted_results )} chunks from General Knowledge Collection" )
311317 return formatted_results
312318
313319 def query_repo_collection (self , query : str , n_results : int = 3 ) -> List [Dict [str , Any ]]:
314320 """Query the repository documents collection"""
321+ print ("🔍 [Oracle DB] Querying Repository Collection" )
315322 # Generate Embeddings
316323 embeddings = self .encoder .encode (query , batch_size = 32 , show_progress_bar = True )
317324 new_vector = array .array ("f" , embeddings )
@@ -337,6 +344,7 @@ def query_repo_collection(self, query: str, n_results: int = 3) -> List[Dict[str
337344 }
338345 formatted_results .append (result )
339346
347+ print (f"🔍 [Oracle DB] Retrieved { len (formatted_results )} chunks from Repository Collection" )
340348 return formatted_results
341349
342350 def get_collection_count (self , collection_name : str ) -> int :
0 commit comments