Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Reformat code

davidmezzetti2a63caf83e5e
diff --git a/test/python/testmodels/testpooling.py b/test/python/testmodels/testpooling.py
index 5681fd0c..4c9b43e4 100644
--- a/test/python/testmodels/testpooling.py
+++ b/test/python/testmodels/testpooling.py
@@ -98,16 +98,10 @@ class TestPooling(unittest.TestCase):
# Test prompts are prepended
self.assertEqual(pooling.preencode(["abc"], "query")[0], "query: abc")
-
self.assertEqual(pooling.preencode(["text"], "data")[0], "document: text")
# Load model with prompts disabled (default)
- pooling = PoolingFactory.create(
- {
- "path": "neuml/bert-tiny-prompts",
- "device": self.device,
- }
- )
+ pooling = PoolingFactory.create({"path": "neuml/bert-tiny-prompts", "device": self.device})
# Test that prompts are not prepended
self.assertEqual(pooling.preencode(["abc"], "query")[0], "abc")