Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update rag_chain/chain.py
Browse files- rag_chain/chain.py +1 -1
rag_chain/chain.py
CHANGED
@@ -34,7 +34,7 @@ def reorder_documents(docs: list[Document]) -> list[Document]:
|
|
34 |
|
35 |
|
36 |
def randomize_documents(documents: list[Document]) -> list[Document]:
|
37 |
-
"""Randomize the documents to
|
38 |
random.shuffle(documents)
|
39 |
return documents
|
40 |
|
|
|
34 |
|
35 |
|
36 |
def randomize_documents(documents: list[Document]) -> list[Document]:
|
37 |
+
"""Randomize the documents as an attempt to randomize the model recommendations."""
|
38 |
random.shuffle(documents)
|
39 |
return documents
|
40 |
|