Private
Public Access
codebase: cleaning cruft part 1
This commit is contained in:
@@ -227,9 +227,6 @@ class RAGEngine:
|
||||
return self.collection.count() == 0
|
||||
|
||||
def add_documents(self, ids: List[str], texts: List[str], metadatas: Optional[List[Dict[str, Any]]] = None):
|
||||
"""
|
||||
[C: tests/test_rag_engine.py:test_rag_engine_chroma]
|
||||
"""
|
||||
if not self.config.enabled or self.collection == "mock":
|
||||
return
|
||||
embeddings = self.embedding_provider.embed(texts)
|
||||
@@ -389,9 +386,6 @@ class RAGEngine:
|
||||
return asyncio.run(_async_search_mcp())
|
||||
|
||||
def search(self, query: str, top_k: int = 5) -> List["RAGChunk"]:
|
||||
"""
|
||||
[C: tests/mock_concurrent_mma.py:main, tests/test_rag_engine.py:test_rag_engine_chroma]
|
||||
"""
|
||||
if not self.config.enabled: return []
|
||||
if self.config.vector_store.provider == 'mcp': return self._search_mcp(query, top_k)
|
||||
if self.collection == "mock": return []
|
||||
@@ -418,9 +412,6 @@ class RAGEngine:
|
||||
return ret
|
||||
|
||||
def delete_documents(self, ids: List[str]):
|
||||
"""
|
||||
[C: tests/test_rag_engine.py:test_rag_engine_chroma]
|
||||
"""
|
||||
if not self.config.enabled or self.collection == "mock":
|
||||
return
|
||||
self.collection.delete(ids=ids)
|
||||
|
||||
Reference in New Issue
Block a user