Chan-Y commited on
Commit
025938a
1 Parent(s): 28cf44b

Delete helper_functions.py

Browse files
Files changed (1) hide show
  1. helper_functions.py +0 -19
helper_functions.py DELETED
@@ -1,19 +0,0 @@
1
- def print_results(query: str, results):
2
- """
3
- Prints the retrieved documents and their scores.
4
-
5
- Args:
6
- query (str): The query string for which documents were retrieved.
7
- results (list): A list of tuples, each containing a Document object and its score.
8
-
9
- Example usage:
10
- ```python
11
- query = "Fee"
12
- hybrid_retriever = HybridRetriever(bm25_retriever=bm25_retriever, vector_retriever=vector_retriever)
13
- results = hybrid_retriever.best_docs(query)
14
- print_results(query, results)
15
- ```
16
- """
17
- print(f"\n\t\tQuery: {query}")
18
- for doc, score in results:
19
- print(f"Document: {doc} | Score: {score['score']:.4f}\n")