summaryrefslogtreecommitdiff
path: root/rag/retriever/retriever.py
diff options
context:
space:
mode:
Diffstat (limited to 'rag/retriever/retriever.py')
-rw-r--r--rag/retriever/retriever.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rag/retriever/retriever.py b/rag/retriever/retriever.py
index deffae5..351cfb0 100644
--- a/rag/retriever/retriever.py
+++ b/rag/retriever/retriever.py
@@ -45,7 +45,7 @@ class Retriever:
else:
log.error("Invalid input!")
- def retrieve(self, query: str, limit: int = 5) -> List[Document]:
+ def retrieve(self, query: str) -> List[Document]:
log.debug(f"Finding documents matching query: {query}")
query_emb = self.encoder.encode_query(query)
- return self.vec_db.search(query_emb, limit)
+ return self.vec_db.search(query_emb)