💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows
Python agentsaiai-agentsembeddingsinformation-retrievallanguage-modellarge-language-modelsllmnlppythonragretrieval-augmented-generationsearchsearch-enginesemantic-searchsentence-embeddingstransformerstxtaivector-databasevector-search
Reformat code
davidmezzetti2a63caf83e5e
diff --git a/test/python/testmodels/testpooling.py b/test/python/testmodels/testpooling.pyindex 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 prependedself.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 prependedself.assertEqual(pooling.preencode(["abc"], "query")[0], "abc")