(lst, chunk_size)
| 355 | cos_sim = lambda a,b: (a @ b.T) / (norm(a)*norm(b)) |
| 356 | |
| 357 | def chunk_list(lst, chunk_size): |
| 358 | return [lst[i:i + chunk_size] for i in range(0, len(lst), chunk_size)] |
| 359 | |
| 360 | if semantic_query != "": |
| 361 | embeddings = self.modle.encode( |
nothing calls this directly
no outgoing calls
no test coverage detected