(self, texts)
| 170 | return [0.0, 1.0] |
| 171 | |
| 172 | def embed_batch(self, texts): |
| 173 | embeddings = [] |
| 174 | for text in texts: |
| 175 | if "interface automation" in text.lower() or "computer use" in text.lower(): |
| 176 | embeddings.append([1.0, 0.0]) |
| 177 | else: |
| 178 | embeddings.append([0.0, 1.0]) |
| 179 | return embeddings |
| 180 | |
| 181 | def cosine_similarity(self, vector1, vector2): |
| 182 | return sum(a * b for a, b in zip(vector1, vector2)) |
nothing calls this directly
no outgoing calls
no test coverage detected