Skip to content

armgit / txtai

Public Imported from GitHub
0

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

Update test

davidmezzettibba76f5704d9
diff --git a/test/python/testlabels.py b/test/python/testlabels.py
index 62cb5cc1..95de9936 100644
--- a/test/python/testlabels.py
+++ b/test/python/testlabels.py
@@ -55,8 +55,9 @@ class TestLabels(unittest.TestCase):
# Get index of "POSITIVE" label
index = labels.labels().index("POSITIVE")
- # Run comparison
+ # Verify results
self.assertEqual(labels("This is the best sentence ever")[0][0], index)
+ self.assertEqual(labels("This is the best sentence ever", multilabel=True)[0][0], index)
def testSimilarity(self):
"""